fern.simulation.observer
Class AmountIntervalObserver

java.lang.Object
  extended by fern.simulation.observer.Observer
      extended by fern.simulation.observer.IntervalObserver
          extended by fern.simulation.observer.AmountIntervalObserver
All Implemented Interfaces:
GnuPlotObserver

public class AmountIntervalObserver
extends IntervalObserver

Observes amounts of molecule species repeatedly after certain intervals.

This observer does take repeats into account. If you repeat the simulation, you will get an average over the results of each run.

Author:
Florian Erhard

Constructor Summary
AmountIntervalObserver(Simulator sim, double interval, int... species)
          Creates the observer for a given simulator, a given interval and given species indices
AmountIntervalObserver(Simulator sim, double interval, String... speciesName)
          Creates the observer for a given simulator, a given interval and given species names.
 
Method Summary
 String[] getStyles()
          Gets the styles for the columns.
 
Methods inherited from class fern.simulation.observer.IntervalObserver
activateReaction, finished, getFinalValue, getRecentData, isPlotQuality, isThetaMethod, setPlotQuality, setThetaMethod, started, step, theta, toGnuplot, toGnuplot, toGnuplotRecent, toGnuplotRecent, toString
 
Methods inherited from class fern.simulation.observer.Observer
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setTheta
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmountIntervalObserver

public AmountIntervalObserver(Simulator sim,
                              double interval,
                              int... species)
Creates the observer for a given simulator, a given interval and given species indices

Parameters:
sim - simulator
interval - interval
species - species indices

AmountIntervalObserver

public AmountIntervalObserver(Simulator sim,
                              double interval,
                              String... speciesName)
Creates the observer for a given simulator, a given interval and given species names.

Parameters:
sim - simulator
interval - interval
speciesName - species names
Method Detail

getStyles

public String[] getStyles()
Description copied from interface: GnuPlotObserver
Gets the styles for the columns. If you don't want styles, just return null!

Returns:
styles for the columns