public class ReactionIntervalObserver extends IntervalObserver
This observer does take repeats into account. If you repeat the simulation, you will get an average over the results of each run.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
finished, getAvgLog, getFinalValue, getRecentData, isPlotQuality, isThetaMethod, setPlotQuality, setThetaMethod, step, theta, toGnuplot, toGnuplot, toGnuplotRecent, toGnuplotRecent, toString
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setTheta
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 indicespublic 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
Copyright © 2007–2021. All rights reserved.