FRED
|
Public Member Functions | |
Health (Person *person) | |
void | update (int day) |
void | become_susceptible (int disease_id) |
void | become_susceptible (Disease *disease) |
void | become_unsusceptible (Disease *disease) |
void | become_infectious (Disease *disease) |
void | become_symptomatic (Disease *disease) |
void | become_immune (Disease *disease) |
void | become_removed (int disease_id) |
void | declare_at_risk (Disease *disease) |
void | recover (Disease *disease) |
bool | is_susceptible (int disease_id) const |
bool | is_infectious (int disease_id) const |
bool | is_symptomatic () const |
bool | is_symptomatic (int disease_id) |
bool | is_immune (Disease *disease) const |
bool | is_at_risk (Disease *disease) const |
bool | is_at_risk (int disease_id) const |
Person * | get_self () const |
int | get_exposure_date (int disease_id) const |
int | get_infectious_date (int disease_id) const |
int | get_recovered_date (int disease_id) const |
int | get_symptomatic_date (int disease_id) const |
int | get_infector (int disease_id) const |
int | get_infected_place (int disease_id) const |
char * | get_infected_place_label (int disease_id) const |
char | get_infected_place_type (int disease_id) const |
int | get_infectees (int disease_id) const |
double | get_susceptibility (int disease_id) const |
double | get_infectivity (int disease_id, int day) const |
Infection * | get_infection (int disease_id) const |
bool | is_on_av_for_disease (int day, int disease_id) const |
void | infect (Person *infectee, int disease_id, Transmission *transmission) |
void | become_exposed (Disease *disease, Transmission *transmission) |
void | take (Vaccine *vacc, int day, Vaccine_Manager *vm) |
void | take (Antiviral *av, int day) |
int | get_number_av_taken () const |
int | get_checked_for_av (int s) const |
void | flip_checked_for_av (int s) |
bool | is_vaccinated () const |
int | get_number_vaccines_taken () const |
AV_Health * | get_av_health (int i) const |
Vaccine_Health * | get_vaccine_health (int i) const |
void | modify_susceptibility (int disease_id, double multp) |
void | modify_infectivity (int disease_id, double multp) |
void | modify_infectious_period (int disease_id, double multp, int cur_day) |
void | modify_symptomatic_period (int disease_id, double multp, int cur_day) |
void | modify_asymptomatic_period (int disease_id, double multp, int cur_day) |
void | modify_develops_symptoms (int disease_id, bool symptoms, int cur_day) |
void | terminate () |
Public Attributes | |
bool | takes_av |
bool | takes_vaccine |
Health::Health | ( | Person * | person | ) |
void Health::become_exposed | ( | Disease * | disease, |
Transmission * | transmission | ||
) |
disease | pointer to a Disease object |
transmission | pointer to a Transmission object |
void Health::become_immune | ( | Disease * | disease | ) |
Agent is immune to the disease
disease | pointer to the Disease object |
void Health::become_infectious | ( | Disease * | disease | ) |
Agent is infectious
disease | pointer to the Disease object |
void Health::become_removed | ( | int | disease_id | ) |
Agent is removed from the susceptible population to a given disease
disease | which disease |
void Health::become_susceptible | ( | int | disease_id | ) |
Agent is susceptible to the disease
disease | which disease |
void Health::become_symptomatic | ( | Disease * | disease | ) |
Agent is symptomatic
disease | pointer to the Disease object |
void Health::become_unsusceptible | ( | Disease * | disease | ) |
Agent is unsusceptible to the disease
disease | which disease |
void Health::declare_at_risk | ( | Disease * | disease | ) |
void Health::flip_checked_for_av | ( | int | s | ) | [inline] |
Set the checked_for_av value at the given index to 1
s | the index of the av to set |
AV_Health* Health::get_av_health | ( | int | i | ) | const [inline] |
int Health::get_checked_for_av | ( | int | s | ) | const [inline] |
s | the index of the av to check |
int Health::get_exposure_date | ( | int | disease_id | ) | const |
disease |
int Health::get_infected_place | ( | int | disease_id | ) | const |
disease | the disease to check |
char * Health::get_infected_place_label | ( | int | disease_id | ) | const |
disease | the disease to check |
char Health::get_infected_place_type | ( | int | disease_id | ) | const |
disease | the disease to check |
int Health::get_infectees | ( | int | disease_id | ) | const |
disease | the disease to check |
Infection* Health::get_infection | ( | int | disease_id | ) | const [inline] |
disease | the disease to check |
int Health::get_infectious_date | ( | int | disease_id | ) | const |
disease |
double Health::get_infectivity | ( | int | disease_id, |
int | day | ||
) | const |
disease | the disease to check |
day | the simulation day |
int Health::get_infector | ( | int | disease_id | ) | const |
disease | the disease to check |
int Health::get_number_av_taken | ( | ) | const [inline] |
int Health::get_number_vaccines_taken | ( | ) | const [inline] |
int Health::get_recovered_date | ( | int | disease_id | ) | const |
disease |
Person* Health::get_self | ( | ) | const [inline] |
double Health::get_susceptibility | ( | int | disease_id | ) | const |
disease | the disease to check |
int Health::get_symptomatic_date | ( | int | disease_id | ) | const |
disease | the disease to check |
Vaccine_Health* Health::get_vaccine_health | ( | int | i | ) | const [inline] |
void Health::infect | ( | Person * | infectee, |
int | disease_id, | ||
Transmission * | transmission | ||
) |
Infect an agent with a disease
infectee | a pointer to the Person that this agent is trying to infect |
disease | the disease with which to infect the Person |
transmission | a pointer to a Transmission object |
bool Health::is_at_risk | ( | Disease * | disease | ) | const [inline] |
Is the agent 'At Risk' to a given disease
disease | pointer to the disease in question |
true
if the agent is at risk, false
otherwise bool Health::is_at_risk | ( | int | disease_id | ) | const [inline] |
Is the agent 'At Risk' to a given disease
disease | which disease |
true
if the agent is at risk, false
otherwise bool Health::is_immune | ( | Disease * | disease | ) | const [inline] |
Is the agent immune to a given disease
disease | pointer to the disease in question |
true
if the agent is immune, false
otherwise bool Health::is_infectious | ( | int | disease_id | ) | const [inline] |
Is the agent infectious for a given disease
disease | which disease |
true
if the agent is infectious, false
otherwise bool Health::is_on_av_for_disease | ( | int | day, |
int | disease_id | ||
) | const |
Determine whether or not the agent is on Anti-Virals for a given disease on a given day
day | the simulation day |
disease | the disease to check |
true
if the agent is on Anti-Virals, false
otherwise bool Health::is_susceptible | ( | int | disease_id | ) | const [inline] |
Is the agent susceptible to a given disease
disease | which disease |
true
if the agent is susceptible, false
otherwise bool Health::is_symptomatic | ( | ) | const [inline] |
Is the agent symptomatic - note that this is independent of disease
true
if the agent is symptomatic, false
otherwise bool Health::is_vaccinated | ( | ) | const [inline] |
true
if the agent is vaccinated, false
if not void Health::modify_asymptomatic_period | ( | int | disease_id, |
double | multp, | ||
int | cur_day | ||
) |
Alter the asymptomatic period of the agent for the given disease by a multiplier. Current day is needed to modify symptomatic period, because we can't cause this infection to recover in the past.
disease | the disease with which the agent is asymptomatic |
multp | the multiplier to apply |
cur_day | the simulation day |
void Health::modify_develops_symptoms | ( | int | disease_id, |
bool | symptoms, | ||
int | cur_day | ||
) |
Alter the whether or not the agent will develop symptoms. Can't change develops_symptoms if this person is not asymptomatic ('i' or 'E') Current day is needed to modify symptomatic period, because we can't change symptomaticity that is in the past.
disease | the disease with which the agent is asymptomatic |
symptoms | whether or not the agent is showing symptoms |
cur_day | the simulation day |
void Health::modify_infectious_period | ( | int | disease_id, |
double | multp, | ||
int | cur_day | ||
) |
Alter the infectious period of the agent for the given disease by a multiplier. Modifying infectious period is equivalent to modifying symptomatic and asymptomatic periods by the same amount. Current day is needed to modify infectious period, because we can't cause this infection to recover in the past.
disease | the disease with which the agent is infectious |
multp | the multiplier to apply |
cur_day | the simulation day |
void Health::modify_infectivity | ( | int | disease_id, |
double | multp | ||
) |
Alter the infectivity of the agent to the given disease by a multiplier
disease | the disease with which the agent is infectious |
multp | the multiplier to apply |
void Health::modify_susceptibility | ( | int | disease_id, |
double | multp | ||
) |
Alter the susceptibility of the agent to the given disease by a multiplier
disease | the disease to which the agent is suceptible |
multp | the multiplier to apply |
void Health::modify_symptomatic_period | ( | int | disease_id, |
double | multp, | ||
int | cur_day | ||
) |
Alter the symptomatic period of the agent for the given disease by a multiplier. Current day is needed to modify symptomatic period, because we can't cause this infection to recover in the past.
disease | the disease with which the agent is symptomatic |
multp | the multiplier to apply |
cur_day | the simulation day |
void Health::recover | ( | Disease * | disease | ) |
void Health::take | ( | Vaccine * | vacc, |
int | day, | ||
Vaccine_Manager * | vm | ||
) |
void Health::take | ( | Antiviral * | av, |
int | day | ||
) |
Agent will take an antiviral
av | pointer to the Antiviral to take |
day | the simulation day |
void Health::update | ( | int | day | ) |
Perform the daily update for this object
day | the simulation day |