Simpact Cyan
Population based event driven simulation using mNRM
eventmortality.h
1 #ifndef EVENTMORTALITY_H
2 
3 #define EVENTMORTALITY_H
4 
5 #include "eventmortalitybase.h"
6 
7 class ConfigSettings;
8 
9 // Non-AIDS (normal) mortality
10 class EventMortality : public EventMortalityBase
11 {
12 public:
13  EventMortality(Person *pPerson);
14  ~EventMortality();
15 
16  std::string getDescription(double tNow) const;
17  void writeLogs(double tNow) const;
18 
19  static void processConfig(ConfigSettings &config);
20  static void obtainConfig(ConfigWriter &config);
21 private:
22  double getNewInternalTimeDifference(GslRandomNumberGenerator *pRndGen, const State *pState);
23 
24  static double m_shape;
25  static double m_scale;
26  static double m_genderDiff;
27 };
28 
29 #endif // EVENTMORTALITY_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