1 #ifndef SIMPACTPOPULATION_H
3 #define SIMPACTPOPULATION_H
16 SimpactPopulationConfig();
17 ~SimpactPopulationConfig();
19 void setInitialMen(
int number) { m_initialMen = number; }
20 void setInitialWomen(
int number) { m_initialWomen = number; }
21 void setInitialInfectionFraction(
double f) { m_initialInfectionFraction = f; }
23 int getInitialMen()
const {
return m_initialMen; }
24 int getInitialWomen()
const {
return m_initialWomen; }
25 double getInitialInfectionFraction()
const {
return m_initialInfectionFraction; }
27 int m_initialMen, m_initialWomen;
28 double m_initialInfectionFraction;
43 int getInitialPopulationSize()
const {
return m_initialPopulationSize; }
44 double getDebutAge()
const {
return 15.0; }
45 double getAcuteStageTime()
const {
return 3.0/12.0; }
47 virtual void onScheduleInitialEvents();
51 int m_initialPopulationSize;
56 inline SimpactPopulation &SIMPACTPOPULATION(
State *pState)
59 return static_cast<SimpactPopulation &
>(*pState);
62 inline const SimpactPopulation &SIMPACTPOPULATION(
const State *pState)
65 return static_cast<const SimpactPopulation &
>(*pState);
68 #endif // SIMPACTPOPULATION_H
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
Base class which allows an error message to be set.
Definition: errorbase.h:49
virtual void onAboutToFire(EventBase *pEvt)
Called right before pEvt is fired.
Definition: state.h:132
Base class for picking random numbers according to some kind of age distribution. ...
Definition: populationdistribution.h:15
This class provides functions for a population-based simulation using the modified Next Reaction Meth...
Definition: population.h:77
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:15
PersonBase ** getMen()
Same as Population::getAllPeople, but only the men are returned.
Definition: population.cpp:429
PersonBase ** getWomen()
Same as Population::getAllPeople, but only the women are returned.
Definition: population.cpp:442
This is the base class for events in the mNRM algorithm.
Definition: eventbase.h:60
PersonBase ** getAllPeople()
Returns a list to the current living members in the population, introduced into the simulation using ...
Definition: population.h:106