FRED
|
#include <Office.h>
Public Member Functions | |
Office () | |
Office (int loc, const char *lab, double lon, double lat, Place *container, Population *pop) | |
void | get_parameters (int diseases) |
int | get_group (int disease, Person *per) |
double | get_transmission_prob (int disease, Person *i, Person *s) |
double | get_contacts_per_day (int disease) |
bool | should_be_open (int day, int disease) |
This class represents an office location in the FRED application. It inherits from Place
. The class contains static variables that will be filled with values from the parameter file.
Office::Office | ( | ) | [inline] |
Default constructor
Office::Office | ( | 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 Office::get_contacts_per_day | ( | int | disease | ) | [virtual] |
This method returns the value from the static array Office::Office_contacts_per_day
that corresponds to a particular disease.
The static array Office_contacts_per_day
will be filled with values from the parameter file for the key office_contacts[]
.
Implements Place.
void Office::get_parameters | ( | int | diseases | ) | [virtual] |
This method is called by the constructor Office(int loc, const char *lab, double lon, double lat, Place *container, Population* pop)
Implements Place.
This method returns the value from the static array Office::Office_contact_prob
that corresponds to a particular age-related value for each person.
The static array Office_contact_prob
will be filled with values from the parameter file for the key office_prob[]
.
Implements Place.
bool Office::should_be_open | ( | int | day, |
int | disease | ||
) | [inline, virtual] |
Determine if the office should be open. It is dependent on the disease and simulation day.
day | the simulation day |
disease | an integer representation of the disease |
Implements Place.