45 void setAbortAlgorithm(
const std::string &reason)
const;
49 bool shouldAbortAlgorithm()
const {
return m_abort; }
50 std::string getAbortReason()
const;
55 mutable Mutex *m_pAbortMutex;
56 mutable std::string m_abortReason;
152 bool_t evolve(
double &tMax, int64_t &maxEvents,
double startTime = 0,
bool initEvents =
true);
165 virtual bool_t initEventTimes()
const;
173 virtual void advanceEventTimes(
EventBase *pScheduledEvent,
double dt);
190 #endif // ALGORITHM_H Type to return true/false with error description.
Definition: booltype.h:25
This is a base class describing the simulation state of an mNRM algorithm.
Definition: algorithm.h:23
virtual void onAboutToFire(EventBase *pEvt)
Called right before pEvt is fired.
Definition: algorithm.h:176
virtual void onFiredEvent(EventBase *pEvt)
Called after pEvt is fired.
Definition: algorithm.h:179
void setTime(double t)
Set the simulation time, which is normally only done by the Algorithm in use (but may be necessary wh...
Definition: algorithm.h:42
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: algorithm.h:183
double getTime() const
Retrieve the current simulation time, which is stored by the Algorithm instance in use (note that unt...
Definition: algorithm.h:35
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
double getTime() const
This function returns the current time of the simulation.
Definition: algorithm.h:155
GslRandomNumberGenerator * getRandomNumberGenerator() const
Returns the random number generator that was specified in the constructor.
Definition: algorithm.h:158
This class contains the core algorithm (as shown on the main page of the documentation) to execute th...
Definition: algorithm.h:81
State * getState() const
Returns the simulation state instance that was specified in the constructor.
Definition: algorithm.h:161
This is the base class for events in the mNRM algorithm.
Definition: eventbase.h:55