FRED
|
#include <Manager.h>
Public Member Functions | |
Manager () | |
Manager (Population *_pop) | |
virtual int | poll_manager (Person *p, int disease, int day) |
Population * | get_population () const |
int | get_current_policy () const |
virtual void | update (int day) |
virtual void | reset () |
virtual void | print () |
Protected Attributes | |
vector< Policy * > | policies |
vector< int > | results |
Population * | pop |
int | current_policy |
Manager is an abstract class that is the embodiment of a mitigation manager. The Manager: 1. Handles a stock of mitigation supplies 2. Holds the policy for doling out a mitigation strategy
Manager::Manager | ( | ) |
Default constructor
Manager::Manager | ( | Population * | _pop | ) |
Constructor that sets the Population to which this Manager is tied
int Manager::get_current_policy | ( | ) | const [inline] |
Population* Manager::get_population | ( | ) | const [inline] |
int Manager::poll_manager | ( | Person * | p, |
int | disease, | ||
int | day | ||
) | [virtual] |
Member to allow someone to see if they fit the current policy
p | a pointer to a Person object |
disease | the disease to poll for |
day | the simulation day |
virtual void Manager::print | ( | ) | [inline, virtual] |
Print out information about this object
Reimplemented in AV_Manager, and Vaccine_Manager.
virtual void Manager::reset | ( | ) | [inline, virtual] |
Put this object back to its original state
Reimplemented in AV_Manager, and Vaccine_Manager.
virtual void Manager::update | ( | int | day | ) | [inline, virtual] |
Perform the daily update for this object
day | the simulation day |
Reimplemented in AV_Manager, and Vaccine_Manager.