96 virtual const std::vector<EventBase *> &
getCurrentEvents()
const {
return m_dummyEventList; }
103 bool initEventTimes()
const;
104 EventBase *getNextScheduledEvent(
double &dt);
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 // SIMPLESTATE_H
SimpleState(bool parallel, GslRandomNumberGenerator *pRng)
Constructor of this class, specifying whether a parallel version should be used to speed things up a ...
Definition: simplestate.cpp:13
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
virtual const std::vector< EventBase * > & getCurrentEvents() const
This function should return the list of events that are currently scheduled.
Definition: simplestate.h:96
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
This is the base class for events in the mNRM algorithm.
Definition: eventbase.h:62
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: simplestate.h:101
A very naive implementation of the necessary functions from the State class.
Definition: simplestate.h:86