27 Health::Health(
unsigned short int start_infectiousness,
unsigned short int start_symptomatic,
28 unsigned short int time_infectious,
unsigned short int time_symptomatic)
30 m_start_symptomatic(start_symptomatic), m_end_infectiousness(start_infectiousness + time_infectious),
31 m_end_symptomatic(start_symptomatic + time_symptomatic)
unsigned short int m_end_infectiousness
Days after infection to end infectious state.
unsigned short int m_end_symptomatic
Days after infection to end symptomatic state.
unsigned short int GetDiseaseCounter() const
Get the disease counter.
HealthStatus m_status
The current status of the person w.r.t. the disease.
#define AssertThrow(CONDITION, MESSAGE, LOGGER)
Header for the Health class.
HealthStatus
Enumerate the various health states with respect to the infection.
bool IsInfected() const
Is this person infected?
Health(unsigned short int start_infectiousness=0U, unsigned int short start_symptomatic=0U, unsigned short int time_infectious=0U, unsigned short int time_symptomatic=0U)
unsigned short int m_start_symptomatic
Days after infection to become symptomatic.
unsigned short int m_start_infectiousness
Days after infection to become infectious.
void Update()
Update progress of the disease.
Namespace for the simulator and related classes.
void StopInfection()
Stop the infection.
void StartInfection()
Start the infection.
void ResetDiseaseCounter()
Reset the disease counter.
void IncrementDiseaseCounter()
Increment disease counter.