FRED
|
Public Member Functions | |
Person () | |
Person (int index, int age, char sex, int marital, int rel, int occ, Place *house, Place *school, Place *work, int day, bool today_is_birthday) | |
void | become_unsusceptible (Disease *disease) |
void | become_exposed (Disease *disease, Transmission *transmission) |
void | become_immune (Disease *disease) |
void | print (FILE *fp, int disease) const |
int | add_infectee (int disease) |
int | is_new_case (int day, int disease) const |
int | addInfected (int disease, vector< int > strains) |
void | infect (Person *infectee, int disease, Transmission *transmission) |
void | addIncidence (int disease, vector< int > strains) |
void | addPrevalence (int disease, vector< int > strains) |
void | set_changed () |
void | update_demographics (int day) |
void | update_health (int day) |
void | update_behavior (int day) |
void | prepare_activities () |
void | update_activity_profile () |
void | update_household_mobility () |
void | become_susceptible (Disease *disease) |
void | become_infectious (Disease *disease) |
void | become_symptomatic (Disease *disease) |
void | recover (Disease *disease) |
Person * | give_birth (int day) |
void | assign_classroom () |
void | assign_office () |
string | to_string () |
int | get_id () const |
Demographics * | get_demographics () const |
int | get_age () const |
int | get_init_age () const |
int | get_init_profession () const |
int | get_init_marital_status () const |
double | get_real_age (int day) const |
char | get_sex () const |
int | get_marital_status () const |
int | get_relationship () |
void | set_relationship (int rel) |
int | get_profession () const |
bool | is_deceased () |
bool | is_adult () |
bool | is_child () |
Health * | get_health () const |
int | is_symptomatic () |
bool | is_susceptible (int dis) |
bool | is_infectious (int dis) |
double | get_susceptibility (int disease) const |
double | get_infectivity (int disease, int day) const |
int | get_exposure_date (int disease) const |
int | get_infectious_date (int disease) const |
int | get_recovered_date (int disease) const |
int | get_infector (int disease) const |
int | get_infected_place (int disease) const |
char * | get_infected_place_label (int disease) const |
char | get_infected_place_type (int disease) const |
int | get_infectees (int disease) const |
Activities * | get_activities () const |
Place * | get_neighborhood () const |
Place * | get_household () |
bool | is_householder () |
Place * | get_neighborhood () |
Place * | get_school () |
Place * | get_classroom () |
Place * | get_workplace () |
Place * | get_office () |
int | get_degree () |
int | get_household_size () |
int | get_neighborhood_size () |
int | get_school_size () |
int | get_classroom_size () |
int | get_workplace_size () |
int | get_office_size () |
void | start_traveling (Person *visited) |
void | stop_traveling () |
bool | get_travel_status () |
Behavior * | get_behavior () const |
void | select_adult_decision_maker (Person *old_adult) |
Person * | get_adult_decision_maker () |
bool | adult_is_staying_home (int day) |
bool | child_is_staying_home (int day) |
bool | acceptance_of_vaccine () |
bool | acceptance_of_another_vaccine_dose () |
void | become_an_adult_decision_maker () |
bool | is_sick_leave_available () |
void | terminate () |
Person::Person | ( | ) |
Default constructor
Person::Person | ( | int | index, |
int | age, | ||
char | sex, | ||
int | marital, | ||
int | rel, | ||
int | occ, | ||
Place * | house, | ||
Place * | school, | ||
Place * | work, | ||
int | day, | ||
bool | today_is_birthday | ||
) |
Constructor that sets all of the attributes of a Person object
int Person::add_infectee | ( | int | disease | ) |
disease | the disease in question |
void Person::assign_classroom | ( | ) | [inline] |
Assign the agent to a Classroom
void Person::assign_office | ( | ) | [inline] |
Assign the agent to an Office
void Person::become_exposed | ( | Disease * | disease, |
Transmission * | transmission | ||
) | [inline] |
Make this agent infected by the given disease
disease | the disease to reference |
transmission | the transmission event |
void Person::become_immune | ( | Disease * | disease | ) |
Make this agent immune to the given disease
disease | the disease to reference |
void Person::become_infectious | ( | Disease * | disease | ) | [inline] |
This agent will become infectious with the disease
disease | a pointer to the Disease |
void Person::become_susceptible | ( | Disease * | disease | ) | [inline] |
This agent will become susceptible to the disease
disease | the disease |
void Person::become_symptomatic | ( | Disease * | disease | ) | [inline] |
This agent will become symptomatic with the disease
disease | a pointer to the Disease |
void Person::become_unsusceptible | ( | Disease * | disease | ) | [inline] |
Make this agent unsusceptible to the given disease
disease | the disease to reference |
Activities* Person::get_activities | ( | ) | const [inline] |
int Person::get_age | ( | ) | const [inline] |
Place* Person::get_classroom | ( | ) | [inline] |
int Person::get_degree | ( | ) | [inline] |
Demographics* Person::get_demographics | ( | ) | const [inline] |
int Person::get_exposure_date | ( | int | disease | ) | const [inline] |
disease | the disease to check |
Place* Person::get_household | ( | ) | [inline] |
int Person::get_id | ( | ) | const [inline] |
The id is generated at runtime
int Person::get_infected_place | ( | int | disease | ) | const [inline] |
disease | the disease to check |
char* Person::get_infected_place_label | ( | int | disease | ) | const [inline] |
disease | the disease to check |
char Person::get_infected_place_type | ( | int | disease | ) | const [inline] |
disease | the disease to check |
int Person::get_infectees | ( | int | disease | ) | const [inline] |
disease | the disease in question |
int Person::get_infectious_date | ( | int | disease | ) | const [inline] |
disease | the disease to check |
double Person::get_infectivity | ( | int | disease, |
int | day | ||
) | const [inline] |
disease | the disease to check |
int Person::get_infector | ( | int | disease | ) | const [inline] |
disease | the disease to check |
int Person::get_init_age | ( | ) | const [inline] |
int Person::get_init_marital_status | ( | ) | const [inline] |
int Person::get_init_profession | ( | ) | const [inline] |
int Person::get_marital_status | ( | ) | const [inline] |
Place* Person::get_neighborhood | ( | ) | const [inline] |
Place* Person::get_neighborhood | ( | ) | [inline] |
Place* Person::get_office | ( | ) | [inline] |
int Person::get_profession | ( | ) | const [inline] |
double Person::get_real_age | ( | int | day | ) | const [inline] |
int Person::get_recovered_date | ( | int | disease | ) | const [inline] |
disease | the disease to check |
Place* Person::get_school | ( | ) | [inline] |
char Person::get_sex | ( | ) | const [inline] |
double Person::get_susceptibility | ( | int | disease | ) | const [inline] |
disease | the disease to check |
bool Person::get_travel_status | ( | ) | [inline] |
true
if the Person is traveling, false
if not Place* Person::get_workplace | ( | ) | [inline] |
Person * Person::give_birth | ( | int | day | ) |
This agent creates a new agent
bool Person::is_adult | ( | ) | [inline] |
true
if this agent is an adult, false
otherwise bool Person::is_deceased | ( | ) | [inline] |
true
if this agent is deceased, false
otherwise bool Person::is_infectious | ( | int | dis | ) | [inline] |
dis | the disease to check |
true
if this agent is infectious with disease, false
otherwise int Person::is_new_case | ( | int | day, |
int | disease | ||
) | const [inline] |
day | the simulation day |
disease | the disease to check |
true
if the exposure day to the disease = day, false
otherwise bool Person::is_susceptible | ( | int | dis | ) | [inline] |
dis | the disease to check |
true
if this agent is susceptible to disease, false
otherwise int Person::is_symptomatic | ( | ) | [inline] |
true
if this agent is symptomatic, false
otherwise void Person::prepare_activities | ( | ) | [inline] |
::prepare()
void Person::print | ( | FILE * | fp, |
int | disease | ||
) | const |
Print out information about this object with regards to a disease to a file.
fp | a pointer to the file where this print should write |
disease | the disease about which to get information |
void Person::recover | ( | Disease * | disease | ) | [inline] |
This agent will recover from the disease
disease | a pointer to the Disease |
void Person::set_changed | ( | ) |
Notify the population that this Person has changed
void Person::start_traveling | ( | Person * | visited | ) | [inline] |
void Person::stop_traveling | ( | ) | [inline] |
Have this Person stop traveling
string Person::to_string | ( | ) |
void Person::update_activity_profile | ( | ) | [inline] |
::update_profile()
void Person::update_behavior | ( | int | day | ) | [inline] |
day | the simulation day |
void Person::update_demographics | ( | int | day | ) | [inline] |
day | the simulation day |
void Person::update_health | ( | int | day | ) | [inline] |
day | the simulation day |
void Person::update_household_mobility | ( | ) | [inline] |