|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.simulation.observer.Observer
fern.simulation.observer.IntervalObserver
fern.simulation.observer.ReactionIntervalObserver
public class ReactionIntervalObserver
Observes number of firings of reactions 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.
Constructor Summary | |
---|---|
ReactionIntervalObserver(Simulator sim,
double interval,
int... reactions)
Creates the observer for a given simulator, a given interval and given reaction indices. |
|
ReactionIntervalObserver(Simulator sim,
double interval,
String... speciesNames)
Creates the observer for a given simulator, a given interval and given neighbors. |
Method Summary | |
---|---|
void |
activateReaction(int mu,
double t,
Simulator.FireType fireType,
int times)
Record the firing of mu, if mu is registered. |
double |
getRecordStart()
Gets the moment in time where the recording starts |
String[] |
getStyles()
Gets the styles for the columns. |
void |
setRecordStart(double recordStart)
Sets the moment in time where the recording starts |
void |
started()
Clears the recorded values and registers (if needed) theta |
Methods inherited from class fern.simulation.observer.IntervalObserver |
---|
finished, getFinalValue, getRecentData, isPlotQuality, isThetaMethod, setPlotQuality, setThetaMethod, 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 |
---|
public ReactionIntervalObserver(Simulator sim, double interval, String... speciesNames)
sim
- simulatorinterval
- intervalspeciesNames
- the names of the species, each neighboring reaction of any of these is addedpublic ReactionIntervalObserver(Simulator sim, double interval, int... reactions)
sim
- simulatorinterval
- intervalreactions
- reaction indicesMethod Detail |
---|
public void activateReaction(int mu, double t, Simulator.FireType fireType, int times)
activateReaction
in class IntervalObserver
mu
- the reaction which is supposed to firet
- the time the reaction fires (at this time Simulator.getTime()
does not necessarily yield the firing time)fireType
- the type of the firingtimes
- TODOpublic void started()
IntervalObserver
theta
started
in class IntervalObserver
public double getRecordStart()
public void setRecordStart(double recordStart)
recordStart
- the recordStart to setpublic String[] getStyles()
GnuPlotObserver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |