Simpact Cyan
Population based event driven simulation using mNRM
eventstopbreastfeeding.h
1 #ifndef EVENTSTOPBREASTFEEDING_H
2 
3 #define EVENTSTOPBREASTFEEDING_H
4 
5 #include "simpactevent.h"
6 
7 class EventStopBreastFeeding : public SimpactEvent
8 {
9 public:
10  EventStopBreastFeeding(Person *pPerson);
11  ~EventStopBreastFeeding();
12 
13  std::string getDescription(double tNow) const;
14  void fire(State *pState, double t);
15 private:
16  double getNewInternalTimeDifference(GslRandomNumberGenerator *pRndGen, const State *pState);
17 };
18 
19 #endif // EVENTSTOPBREASTFEEDING_H
20 
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