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, startpublic GillespieSimple(Network net)
public void reinitialize()
Simulatorreinitialize in class Simulatorpublic void performStep(SimulationController control)
SimulatorSimulator.setAmount(int, long)
and Simulator.setVolume(double) if they need correct values!performStep in class Simulatorcontrol - the simulators controllerCopyright © 2007–2021. All rights reserved.