public class GillespieSimple extends Simulator
For reference see Daniel T. Gillespie., A General Method for Numerically Simulating the Stochastic Time Evolution of Coupled Chemical Reactions, J.Comp.Phys. 22, 403 (1976)
Simulator.FireType
Constructor and Description |
---|
GillespieSimple(Network net) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the algorithm.
|
void |
performStep(SimulationController control)
Performs one simulation step.
|
void |
reinitialize()
Reset propensities when a event has been executed.
|
addObserver, getAmount, getNet, getNextThetaEvent, getPropensity, getPropensityCalculator, getTime, getVolume, initialize, initializePropensities, isInterpolateTheta, postRun, preRun, registerNewTheta, run, setAmount, setInterpolateTheta, setStochasticSeed, setVolume, start, start
public GillespieSimple(Network net)
public void reinitialize()
Simulator
reinitialize
in class Simulator
public void performStep(SimulationController control)
Simulator
Simulator.setAmount(int, long)
and Simulator.setVolume(double)
if they need correct values!performStep
in class Simulator
control
- the simulators controllerCopyright © 2007–2021. All rights reserved.