Simpact Cyan
Population based event driven simulation using mNRM
eventchronicstage.h
1 #ifndef EVENTCHRONICSTAGE_H
2 
3 #define EVENTCHRONICSTAGE_H
4 
5 #include "simpactevent.h"
6 
7 class ConfigSettings;
8 
9 class EventChronicStage : public SimpactEvent
10 {
11 public:
12  EventChronicStage(Person *pPerson);
13  ~EventChronicStage();
14 
15  std::string getDescription(double tNow) const;
16  void writeLogs(double tNow) const;
17 
18  void fire(State *pState, double t);
19 
20  static double getAcuteStageTime() { return m_acuteTime; }
21  static void processConfig(ConfigSettings &config);
22  static void obtainConfig(ConfigWriter &config);
23 private:
24  double getNewInternalTimeDifference(GslRandomNumberGenerator *pRndGen, const State *pState);
25 
26  static double m_acuteTime;
27 };
28 
29 #endif // EVENTCHRONICSTAGE_H
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
Helper class to read configuration settings, more advanced than ConfigReader.
Definition: configsettings.h:20
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16