1 #ifndef SIMPLEALGORITHM_H
3 #define SIMPLEALGORITHM_H
96 virtual const std::vector<EventBase *> &
getCurrentEvents()
const {
return m_dummyEventList; }
103 bool_t initEventTimes()
const;
105 void advanceEventTimes(
EventBase *pScheduledEvent,
double dt);
108 #ifdef ALGORITHM_SHOW_EVENTS
109 virtual void showEvents() { }
112 std::vector<EventBase *> m_dummyEventList;
113 const std::vector<EventBase *> *m_pTmpEventList;
118 std::vector<double> m_dtMinValues;
119 std::vector<int> m_minPosValues;
This class contains the core algorithm (as shown on the main page of the documentation) to execute th...
Definition: algorithm.h:82
This is the base class for events in the mNRM algorithm.
Definition: eventbase.h:56
This class allows you to generate random numbers, and uses the GNU Scientific Library for this.
Definition: gslrandomnumbergenerator.h:17
A very naive implementation of the necessary functions from the Algorithm class.
Definition: simplealgorithm.h:87
SimpleAlgorithm(State &state, GslRandomNumberGenerator &rng, bool parallel)
Constructor of this class, specifying whether a parallel version should be used to speed things up a ...
Definition: simplealgorithm.cpp:13
virtual const std::vector< EventBase * > & getCurrentEvents() const
This function should return the list of events that are currently scheduled.
Definition: simplealgorithm.h:96
virtual void onFiredEvent(EventBase *pEvt, int position)
This function is called after firing the event pEvt, stored at position position in the list that was...
Definition: simplealgorithm.h:101
This is a base class describing the simulation state of an mNRM algorithm.
Definition: algorithm.h:24
Type to return true/false with error description.
Definition: booltype.h:26