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