Simpact Cyan
Population based event driven simulation using mNRM
eventbirth.h
1 #ifndef EVENTBIRTH_H
2 
3 #define EVENTBIRTH_H
4 
5 #include "simpactevent.h"
6 
7 class Person;
8 class Man;
9 
10 class EventBirth : public SimpactEvent
11 {
12 public:
13  EventBirth(Person *pPerson);
14  ~EventBirth();
15 
16  std::string getDescription(double tNow) const;
17  void fire(State *pState, double t);
18 
19  void setFather(Person *pFather);
20 private:
21  double getNewInternalTimeDifference(GslRandomNumberGenerator *pRndGen, const State *pState);
22 
23  Man *m_pFather;
24 };
25 
26 #endif // EVENTBIRTH_H
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:15