Stride Reference Manual
1.0
|
#include <Health.h>
Public Member Functions | |
Health (unsigned int start_infectiousness, unsigned int start_symptomatic, unsigned int time_infectious, unsigned int time_symptomatic) | |
HealthStatus | getHealthStatus () const |
unsigned int | getEndInfectiousness () const |
unsigned int | getEndSymptomatic () const |
unsigned int | getStartInfectiousness () const |
unsigned int | getStartSymptomatic () const |
bool | isImmune () const |
bool | isInfected () const |
bool | isInfectious () const |
bool | isRecovered () const |
bool | isSusceptible () const |
Is this person susceptible? More... | |
bool | isSymptomatic () const |
Is this person symptomatic? More... | |
void | setImmune () |
Set immune to true. More... | |
void | startInfection () |
Start the infection. More... | |
void | stopInfection () |
Stop the infection. More... | |
void | update () |
Update progress of the disease. More... | |
Private Member Functions | |
unsigned int | getDiseaseCounter () const |
Get the disease counter. More... | |
void | incrementDiseaseCounter () |
Increment disease counter. More... | |
void | resetDiseaseCounter () |
Reset the disease counter. More... | |
Private Attributes | |
unsigned int | m_disease_counter |
The disease counter. More... | |
HealthStatus | m_status |
The current status of the person w.r.t. the disease. More... | |
unsigned int | m_start_infectiousness |
Days after infection to become infectious. More... | |
unsigned int | m_start_symptomatic |
Days after infection to become symptomatic. More... | |
unsigned int | m_end_infectiousness |
Days after infection to end infectious state. More... | |
unsigned int | m_end_symptomatic |
Days after infection to end symptomatic state. More... | |
Friends | |
class | Hdf5Loader |
class | Hdf5Saver |
stride::Health::Health | ( | unsigned int | start_infectiousness, |
unsigned int | start_symptomatic, | ||
unsigned int | time_infectious, | ||
unsigned int | time_symptomatic | ||
) |
Definition at line 23 of file Health.cpp.
References m_end_infectiousness, m_end_symptomatic, and stride::Susceptible.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 47 of file Health.h.
References stride::Immune.
|
inline |
Definition at line 50 of file Health.h.
References stride::Exposed, stride::Infectious, stride::InfectiousAndSymptomatic, and stride::Symptomatic.
|
inline |
Definition at line 58 of file Health.h.
References stride::Infectious, and stride::InfectiousAndSymptomatic.
|
inline |
Definition at line 64 of file Health.h.
References stride::Recovered.
|
inline |
Is this person susceptible?
Definition at line 67 of file Health.h.
References stride::Susceptible.
Referenced by stride::PopulationBuilder::build().
|
inline |
Is this person symptomatic?
Definition at line 70 of file Health.h.
References stride::InfectiousAndSymptomatic, and stride::Symptomatic.
void stride::Health::setImmune | ( | ) |
Set immune to true.
Definition at line 31 of file Health.cpp.
References stride::Immune, m_end_infectiousness, m_end_symptomatic, m_start_infectiousness, m_start_symptomatic, and m_status.
Referenced by stride::PopulationBuilder::build().
void stride::Health::startInfection | ( | ) |
Start the infection.
Definition at line 39 of file Health.cpp.
References stride::Exposed, m_status, and resetDiseaseCounter().
Referenced by stride::PopulationBuilder::build().
void stride::Health::stopInfection | ( | ) |
Stop the infection.
Definition at line 47 of file Health.cpp.
References stride::Exposed, stride::Infectious, stride::InfectiousAndSymptomatic, m_status, stride::Recovered, and stride::Symptomatic.
Referenced by update().
void stride::Health::update | ( | ) |
Update progress of the disease.
Definition at line 54 of file Health.cpp.
References stride::Exposed, getDiseaseCounter(), incrementDiseaseCounter(), stride::Infectious, stride::InfectiousAndSymptomatic, m_end_infectiousness, m_end_symptomatic, m_start_infectiousness, m_start_symptomatic, m_status, stopInfection(), and stride::Symptomatic.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
friend |
|
private |
|
private |
The current status of the person w.r.t. the disease.
Definition at line 99 of file Health.h.
Referenced by setImmune(), startInfection(), stopInfection(), and update().
|
private |
Days after infection to become infectious.
Definition at line 101 of file Health.h.
Referenced by setImmune(), and update().
|
private |
Days after infection to become symptomatic.
Definition at line 102 of file Health.h.
Referenced by setImmune(), and update().
|
private |
Days after infection to end infectious state.
Definition at line 103 of file Health.h.
Referenced by Health(), setImmune(), and update().
|
private |
Days after infection to end symptomatic state.
Definition at line 104 of file Health.h.
Referenced by Health(), setImmune(), and update().