fern.simulation.observer
Class AmountIntervalObserver
java.lang.Object
fern.simulation.observer.Observer
fern.simulation.observer.IntervalObserver
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. |
Methods inherited from class fern.simulation.observer.IntervalObserver |
activateReaction, finished, getFinalValue, getRecentData, isPlotQuality, isThetaMethod, setPlotQuality, setThetaMethod, started, step, theta, toGnuplot, toGnuplot, toGnuplotRecent, toGnuplotRecent, toString |
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
- simulatorinterval
- intervalspecies
- 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
- simulatorinterval
- intervalspeciesName
- species names
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