FRED
Health Class Reference

List of all members.

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
Personget_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
Infectionget_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_Healthget_av_health (int i) const
Vaccine_Healthget_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

Constructor & Destructor Documentation

Health::Health ( Person person)

Default constructor that sets the Person to which this Health object applies

Parameters:
persona pointer to a Person object

Member Function Documentation

void Health::become_exposed ( Disease disease,
Transmission transmission 
)
Parameters:
diseasepointer to a Disease object
transmissionpointer to a Transmission object
void Health::become_immune ( Disease disease)

Agent is immune to the disease

Parameters:
diseasepointer to the Disease object
void Health::become_infectious ( Disease disease)

Agent is infectious

Parameters:
diseasepointer to the Disease object
void Health::become_removed ( int  disease_id)

Agent is removed from the susceptible population to a given disease

Parameters:
diseasewhich disease
void Health::become_susceptible ( int  disease_id)

Agent is susceptible to the disease

Parameters:
diseasewhich disease
void Health::become_symptomatic ( Disease disease)

Agent is symptomatic

Parameters:
diseasepointer to the Disease object
void Health::become_unsusceptible ( Disease disease)

Agent is unsusceptible to the disease

Parameters:
diseasewhich disease
void Health::declare_at_risk ( Disease disease)

Agent is 'At Risk' to a given Disease

Parameters:
diseasepointer to the Disease object
void Health::flip_checked_for_av ( int  s) [inline]

Set the checked_for_av value at the given index to 1

Parameters:
sthe index of the av to set
AV_Health* Health::get_av_health ( int  i) const [inline]
Returns:
a pointer to this instance's AV_Health object
int Health::get_checked_for_av ( int  s) const [inline]
Parameters:
sthe index of the av to check
Returns:
the checked_for_av with the given index
int Health::get_exposure_date ( int  disease_id) const
Parameters:
disease
Returns:
the simulation day that this agent became exposed to the disease
int Health::get_infected_place ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
char * Health::get_infected_place_label ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
the label of the infected place
char Health::get_infected_place_type ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
the type of place
int Health::get_infectees ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
Infection* Health::get_infection ( int  disease_id) const [inline]
Parameters:
diseasethe disease to check
Returns:
a pointer to the Infection object
int Health::get_infectious_date ( int  disease_id) const
Parameters:
disease
Returns:
the simulation day that this agent became infectious with the disease
double Health::get_infectivity ( int  disease_id,
int  day 
) const
Parameters:
diseasethe disease to check
daythe simulation day
Returns:
int Health::get_infector ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
int Health::get_number_av_taken ( ) const [inline]
Returns:
a count of the antivirals this agent has already taken
int Health::get_number_vaccines_taken ( ) const [inline]
Returns:
the number of vaccines this agent has taken
int Health::get_recovered_date ( int  disease_id) const
Parameters:
disease
Returns:
the simulation day that this agent recovered from the disease
Person* Health::get_self ( ) const [inline]

Get the Person object with which this Health object is associated

Returns:
a pointer to a Person object
double Health::get_susceptibility ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
int Health::get_symptomatic_date ( int  disease_id) const
Parameters:
diseasethe disease to check
Returns:
the simulation day that this agent became symptomatic to the disease
Vaccine_Health* Health::get_vaccine_health ( int  i) const [inline]
Returns:
a pointer to this instance's Vaccine_Health object
void Health::infect ( Person infectee,
int  disease_id,
Transmission transmission 
)

Infect an agent with a disease

Parameters:
infecteea pointer to the Person that this agent is trying to infect
diseasethe disease with which to infect the Person
transmissiona pointer to a Transmission object
bool Health::is_at_risk ( Disease disease) const [inline]

Is the agent 'At Risk' to a given disease

Parameters:
diseasepointer to the disease in question
Returns:
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

Parameters:
diseasewhich disease
Returns:
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

Parameters:
diseasepointer to the disease in question
Returns:
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

Parameters:
diseasewhich disease
Returns:
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

Parameters:
daythe simulation day
diseasethe disease to check
Returns:
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

Parameters:
diseasewhich disease
Returns:
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

Returns:
true if the agent is symptomatic, false otherwise
bool Health::is_vaccinated ( ) const [inline]
Returns:
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.

Parameters:
diseasethe disease with which the agent is asymptomatic
multpthe multiplier to apply
cur_daythe 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.

Parameters:
diseasethe disease with which the agent is asymptomatic
symptomswhether or not the agent is showing symptoms
cur_daythe 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.

Parameters:
diseasethe disease with which the agent is infectious
multpthe multiplier to apply
cur_daythe simulation day
void Health::modify_infectivity ( int  disease_id,
double  multp 
)

Alter the infectivity of the agent to the given disease by a multiplier

Parameters:
diseasethe disease with which the agent is infectious
multpthe 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

Parameters:
diseasethe disease to which the agent is suceptible
multpthe 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.

Parameters:
diseasethe disease with which the agent is symptomatic
multpthe multiplier to apply
cur_daythe simulation day
void Health::recover ( Disease disease)

Agent recovers from a given Disease

Parameters:
diseasepointer to the Disease object
void Health::take ( Vaccine vacc,
int  day,
Vaccine_Manager vm 
)

Agent will take a vaccine

Parameters:
vaccpointer to the Vaccine to take
daythe simulation day
vma pointer to the Manager of the Vaccinations
void Health::take ( Antiviral av,
int  day 
)

Agent will take an antiviral

Parameters:
avpointer to the Antiviral to take
daythe simulation day
void Health::update ( int  day)

Perform the daily update for this object

Parameters:
daythe simulation day

The documentation for this class was generated from the following files:
 All Classes Functions