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