public class RandomNumberGeneratorCallObserver extends Observer implements GnuPlotObserver
This observer does take repeats into account. If you repeat the simulation, you will get an average over the results each run.
Stochastics| Constructor and Description |
|---|
RandomNumberGeneratorCallObserver(Simulator sim)
Creates the observer for the given simulator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateReaction(int mu,
double tau,
Simulator.FireType fireType,
int times)
Do nothing.
|
void |
finished()
Calculates the average.
|
String[] |
getStyles()
Gets the styles for the columns.
|
void |
started()
Resets the count variables of the random number generator calls.
|
void |
step()
Do nothing.
|
void |
theta(double theta)
Do nothing.
|
GnuPlot |
toGnuplot()
Creates a new
GnuPlot object and passes the actual observer data to it. |
GnuPlot |
toGnuplot(GnuPlot gnuplot)
Passes the actual observer data to a
GnuPlot object. |
String |
toString() |
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setThetapublic RandomNumberGeneratorCallObserver(Simulator sim)
sim - simulatorpublic void activateReaction(int mu,
double tau,
Simulator.FireType fireType,
int times)
activateReaction in class Observermu - the reaction which is supposed to firetau - 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()
started in class ObserverStochastics.resetCounts()public void theta(double theta)
public String[] getStyles()
GnuPlotObservergetStyles in interface GnuPlotObserverpublic GnuPlot toGnuplot()
GnuPlotObserverGnuPlot object and passes the actual observer data to it.toGnuplot in interface GnuPlotObserverGnuPlot objectpublic GnuPlot toGnuplot(GnuPlot gnuplot)
GnuPlotObserverGnuPlot object.toGnuplot in interface GnuPlotObservergnuplot - the GnuPlot object to pass the data toGnuPlot objectCopyright © 2007–2021. All rights reserved.