Simpact Cyan
Population based event driven simulation using mNRM
eventdissolution.h
1 #ifndef EVENTDISSOLUTION_H
2 
3 #define EVENTDISSOLUTION_H
4 
5 #include "simpactevent.h"
6 
7 class EventConception;
8 
9 class EventDissolution : public SimpactEvent
10 {
11 public:
12  EventDissolution(Person *pPerson1, Person *pPerson2, double formationTime);
13  ~EventDissolution();
14 
15  std::string getDescription(double tNow) const;
16  void fire(State *pState, double t);
17 protected:
18  double calculateInternalTimeInterval(const State *pState, double t0, double dt);
19  double solveForRealTimeInterval(const State *pState, double Tdiff, double t0);
20 
21  double m_formationTime;
22 };
23 
24 #endif // EVENTDISSOLUTION_H
25 
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40