111 bool evolve(
double &tMax, int64_t &maxEvents,
double startTime = 0,
bool initEvents =
true);
GslRandomNumberGenerator * getRandomNumberGenerator() const
Returns the random number generator that was specified in the constructor.
Definition: state.h:117
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
virtual void onFiredEvent(EventBase *pEvt)
Called after pEvt is fired.
Definition: state.h:135
Base class which allows an error message to be set.
Definition: errorbase.h:49
virtual bool initEventTimes() const
Generate the internal times for the events present in the algorithm (called by State::evolve dependin...
Definition: state.cpp:87
virtual void onAboutToFire(EventBase *pEvt)
Called right before pEvt is fired.
Definition: state.h:132
double getTime() const
This function returns the current time of the simulation.
Definition: state.h:114
virtual EventBase * getNextScheduledEvent(double &dt)
Return the next event to be fired and store the real world time that will have passed until it fires ...
Definition: state.cpp:93
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
virtual void onAlgorithmLoop(bool finished)
Called at the end of each algorithm loop, with finished set to true if the loop will be exited...
Definition: state.h:139
State(GslRandomNumberGenerator *pRng)
Constructor of the class, to which the random number generator to be used internally must be specifie...
Definition: state.cpp:9
virtual void advanceEventTimes(EventBase *pScheduledEvent, double dt)
Advance the times of the necessary events to the time when dt has passed, ignoring pScheduledEvent si...
Definition: state.cpp:99
This is the base class for events in the mNRM algorithm.
Definition: eventbase.h:62
bool evolve(double &tMax, int64_t &maxEvents, double startTime=0, bool initEvents=true)
This advances the simulation state using the core mNRM.
Definition: state.cpp:23