FRED
Office Class Reference

#include <Office.h>

Inheritance diagram for Office:
Place

List of all members.

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)

Detailed Description

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.

See also:
Place

Constructor & Destructor Documentation

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

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

Member Function Documentation

double Office::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 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.

int Office::get_group ( int  disease,
Person per 
) [virtual]
void Office::get_parameters ( int  diseases) [virtual]
double Office::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 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.

Parameters:
daythe simulation day
diseasean integer representation of the disease
Returns:
whether or not the office 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