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 STATE_SHOW_EVENTS
109 virtual void showEvents() { }
110 #endif // STATE_SHOW_EVENTS
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;
123 #endif // SIMPLEALGORITHM_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:20
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
virtual const std::vector< EventBase * > & getCurrentEvents() const
This function should return the list of events that are currently scheduled.
Definition: simplealgorithm.h:96
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
This class contains the core algorithm (as shown on the main page of the documentation) to execute th...
Definition: algorithm.h:66
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
This is the base class for events in the mNRM algorithm.
Definition: eventbase.h:55
A very naive implementation of the necessary functions from the Algorithm class.
Definition: simplealgorithm.h:86