List of all members.
Public Member Functions |
| Infection (Disease *s, Person *infector, Person *infectee, Place *place, int day) |
void | update (int today) |
Disease * | get_disease () const |
Person * | get_infector () const |
Place * | get_infected_place () const |
int | get_infectee_count () const |
int | add_infectee () |
void | print () const |
void | report_infection (int day) const |
int | get_exposure_date () const |
int | get_infectious_date () const |
int | get_symptomatic_date () const |
int | get_asymptomatic_date () const |
int | get_recovery_date () const |
int | get_susceptible_date () const |
int | set_susceptibility_period (int period) |
int | get_unsusceptible_date () const |
void | modify_asymptomatic_period (double multp, int cur_day) |
void | modify_symptomatic_period (double multp, int cur_day) |
void | modify_infectious_period (double multp, int cur_day) |
bool | is_infectious () |
bool | is_symptomatic () |
double | get_susceptibility () const |
double | get_symptoms () const |
void | modify_develops_symptoms (bool symptoms, int cur_day) |
void | modify_susceptibility (double multp) |
void | modify_infectivity (double multp) |
double | get_infectivity (int day) const |
void | transmit (Person *infectee, Transmission *transmission) |
void | addTransmission (Transmission *transmission) |
void | setTrajectory (Trajectory *trajectory) |
Trajectory * | get_trajectory () |
Static Public Member Functions |
static Infection * | get_dummy_infection (Disease *s, Person *host, int day) |
Member Function Documentation
int Infection::add_infectee |
( |
| ) |
[inline] |
Increment the infectee_count
- Returns:
- the new infectee_count
void Infection::addTransmission |
( |
Transmission * |
transmission | ) |
|
int Infection::get_asymptomatic_date |
( |
| ) |
const [inline] |
- Returns:
- the asymptomatic_date - offset
Disease* Infection::get_disease |
( |
| ) |
const [inline] |
- Returns:
- a pointer to the Disease object
- Parameters:
-
s | the disease we are trying to infect a person with |
host | the host Person |
day | the simulation day |
- Returns:
- an infection for the given host and disease with exposed date and recovered date both equal to day (instant resistance to the given disease);
int Infection::get_exposure_date |
( |
| ) |
const [inline] |
- Returns:
- the exposure_date
Place* Infection::get_infected_place |
( |
| ) |
const [inline] |
- Returns:
- the pointer to the place where the infection occured
int Infection::get_infectee_count |
( |
| ) |
const [inline] |
- Returns:
- the infectee_count
int Infection::get_infectious_date |
( |
| ) |
const [inline] |
- Returns:
- the infectious_date - offset
double Infection::get_infectivity |
( |
int |
day | ) |
const [inline] |
- Parameters:
-
- Returns:
- the infectivity of this infection for a given day
Person* Infection::get_infector |
( |
| ) |
const [inline] |
- Returns:
- the a pointer to the Person who was the infector for this Infection
int Infection::get_recovery_date |
( |
| ) |
const [inline] |
- Returns:
- the recovery_date - offset
double Infection::get_susceptibility |
( |
| ) |
const [inline] |
- Returns:
- the susceptibility
int Infection::get_susceptible_date |
( |
| ) |
const [inline] |
- Returns:
- the recovery_date + the recovery_period
int Infection::get_symptomatic_date |
( |
| ) |
const [inline] |
- Returns:
- the symptomatic_date - offset
double Infection::get_symptoms |
( |
| ) |
const [inline] |
Trajectory* Infection::get_trajectory |
( |
| ) |
[inline] |
- Returns:
- a pointer to this Infection's trajectory attribute
int Infection::get_unsusceptible_date |
( |
| ) |
const [inline] |
- Returns:
- exposure_date + susceptibility_period
bool Infection::is_infectious |
( |
| ) |
[inline] |
- Returns:
true
if the agent is infectious, false
if not
bool Infection::is_symptomatic |
( |
| ) |
[inline] |
- Returns:
true
if the agent is symptomatic, false
if not
void Infection::modify_asymptomatic_period |
( |
double |
multp, |
|
|
int |
cur_day |
|
) |
| |
- Parameters:
-
multp | the multiplier |
day | the simulation day |
void Infection::modify_develops_symptoms |
( |
bool |
symptoms, |
|
|
int |
cur_day |
|
) |
| |
- Parameters:
-
symptoms | whether or not the agent has symptoms |
cur_day | the simulation day |
void Infection::modify_infectious_period |
( |
double |
multp, |
|
|
int |
cur_day |
|
) |
| |
- Parameters:
-
multp | the multiplier |
day | the simulation day |
void Infection::modify_infectivity |
( |
double |
multp | ) |
[inline] |
- Parameters:
-
multp | the multiplier to be applied to infectivity |
void Infection::modify_susceptibility |
( |
double |
multp | ) |
[inline] |
- Parameters:
-
multp | the multiplier to be applied to susceptibility |
void Infection::modify_symptomatic_period |
( |
double |
multp, |
|
|
int |
cur_day |
|
) |
| |
- Parameters:
-
multp | the multiplier |
day | the simulation day |
void Infection::print |
( |
| ) |
const |
Print out information about this object
void Infection::report_infection |
( |
int |
day | ) |
const |
Print infection information to the log files
int Infection::set_susceptibility_period |
( |
int |
period | ) |
[inline] |
- Parameters:
-
period | the new susceptibility_period |
void Infection::setTrajectory |
( |
Trajectory * |
trajectory | ) |
|
- Parameters:
-
infectee | agent that this agent should try to infect |
transmission | |
void Infection::update |
( |
int |
today | ) |
|
Perform the daily update for this object
- Parameters:
-
The documentation for this class was generated from the following files: