FRED
|
Public Member Functions | |
Workplace () | |
Workplace (int, const char *, double, double, Place *, Population *pop) | |
void | get_parameters (int diseases) |
void | prepare () |
int | get_group (int disease, Person *per) |
double | get_transmission_prob (int disease, Person *i, Person *s) |
double | get_contacts_per_day (int disease) |
void | setup_offices () |
Place * | assign_office (Person *per) |
bool | should_be_open (int day, int disease) |
Workplace::Workplace | ( | ) | [inline] |
Default constructor
Workplace::Workplace | ( | int | loc, |
const char * | lab, | ||
double | lon, | ||
double | lat, | ||
Place * | container, | ||
Population * | pop | ||
) |
Convenience constructor that sets most of the values by calling Place::setup
double Workplace::get_contacts_per_day | ( | int | disease | ) | [virtual] |
This method returns the value from the static array Workplace::Workplace_contacts_per_day
that corresponds to a particular disease.
The static array Workplace_contacts_per_day
will be filled with values from the parameter file for the key workplace_contacts[]
.
Implements Place.
void Workplace::get_parameters | ( | int | diseases | ) | [virtual] |
This method is called by the constructor Workplace(int loc, const char *lab, double lon, double lat, Place *container, Population* pop)
Implements Place.
This method returns the value from the static array Workplace::Workplace_contact_prob
that corresponds to a particular age-related value for each person.
The static array Workplace_contact_prob
will be filled with values from the parameter file for the key workplace_prob[]
.
Implements Place.
void Workplace::prepare | ( | ) | [virtual] |
Initialize the workplace and its offices
Reimplemented from Place.
void Workplace::setup_offices | ( | ) |
Setup the offices within this Workplace
bool Workplace::should_be_open | ( | int | day, |
int | disease | ||
) | [inline, virtual] |