FRED
|
#include <Policy.h>
Public Member Functions | |
Policy () | |
Policy (Manager *mgr) | |
virtual int | choose (Person *person, int disease, int current_day) |
virtual bool | choose_first_positive (Person *person, int disease, int current_day) |
virtual bool | choose_first_negative (Person *person, int disease, int current_day) |
Manager * | get_manager () const |
void | reset () |
void | print () const |
Protected Attributes | |
vector< Decision * > | decision_list |
string | Name |
Manager * | manager |
A Policy is a class that is accessed by the manager to decide something. Will be used for mitigation strategies.
Policy::Policy | ( | ) |
Default constructor
Policy::Policy | ( | Manager * | mgr | ) |
Constructor that sets this Policy's manager.
mgr | the manager of this Policy |
int Policy::choose | ( | Person * | person, |
int | disease, | ||
int | current_day | ||
) | [virtual] |
person | a pointer to a person object |
disease | the disease |
current_day | the simulation day |
Reimplemented in AV_Policy_Distribute_To_Symptomatics, and AV_Policy_Distribute_To_Everyone.
bool Policy::choose_first_negative | ( | Person * | person, |
int | disease, | ||
int | current_day | ||
) | [virtual] |
person | a pointer to a person object |
disease | the disease |
current_day | the simulation day |
bool Policy::choose_first_positive | ( | Person * | person, |
int | disease, | ||
int | current_day | ||
) | [virtual] |
person | a pointer to a person object |
disease | the disease |
current_day | the simulation day |
void Policy::print | ( | ) | const |
Print out information about this object
void Policy::reset | ( | ) |
Put this object back to its original state