FRED
|
#include <Hospital.h>
Public Member Functions | |
Hospital () | |
Hospital (int, const char *, double, double, Place *, Population *) | |
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 a hospital location in the FRED application. It inherits from Place
. The class contains static variables that will be filled with values from the parameter file.
Hospital::Hospital | ( | ) | [inline] |
Default constructor
Hospital::Hospital | ( | 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 Hospital::get_contacts_per_day | ( | int | disease | ) | [virtual] |
This method returns the value from the static array Hospital::Hospital_contacts_per_day
that corresponds to a particular disease.
The static array Hospital_contacts_per_day
will be filled with values from the parameter file for the key hospital_contacts[]
.
Implements Place.
void Hospital::get_parameters | ( | int | diseases | ) | [virtual] |
This method is called by the constructor Hospital(int,const char *,double,double,Place *, Population *)
Implements Place.
This method returns the value from the static array Hospital::Hospital_contact_prob
that corresponds to a particular age-related value for each person.
The static array Hospital_contact_prob
will be filled with values from the parameter file for the key hospital_prob[]
.
Implements Place.
bool Hospital::should_be_open | ( | int | day, |
int | disease | ||
) | [inline, virtual] |