FRED
Hospital Class Reference

#include <Hospital.h>

Inheritance diagram for Hospital:
Place

List of all members.

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)

Detailed Description

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.

See also:
Place

Constructor & Destructor Documentation

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

See also:
Place::setup(int loc_id, const char *lab, double lon, double lat, Place* cont, Population *pop)

Member Function Documentation

double Hospital::get_contacts_per_day ( int  disease) [virtual]
See also:
Place::get_contacts_per_day(int disease)

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.

int Hospital::get_group ( int  disease,
Person per 
) [virtual]
void Hospital::get_parameters ( int  diseases) [virtual]
double Hospital::get_transmission_prob ( int  disease,
Person i,
Person s 
) [virtual]
See also:
Place::get_transmission_prob(int disease, Person * i, Person * s)

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]

Determine if the Hospital should be open. It is dependent on the disease and simulation day.

Parameters:
daythe simulation day
diseasean integer representation of the disease
Returns:
whether or not the household is open on the given day for the given disease

Implements Place.


The documentation for this class was generated from the following files:
 All Classes Functions