https://github.com/PublicHealthDynamicsLab/FRED
Tip revision: b0b5f0baa6b2796f194a61dfbcbc66a170b0e86a authored by David Galloway on 13 January 2015, 15:14:03 UTC
Update README.md
Update README.md
Tip revision: b0b5f0b
AV_Decisions.h
/*
Copyright 2009 by the University of Pittsburgh
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
//
//
// File: AV_Decision.h
//
#ifndef _FRED_AV_DECISIONS_H
#define _FRED_AV_DECISIONS_H
#include "AV_Policies.h"
#include "Decision.h"
class Policy;
/**
* This policy defines that each agent can only have one AV throughout
* the course of the simulation
*/
class AV_Decision_Allow_Only_One: public Decision {
public:
AV_Decision_Allow_Only_One(Policy * p);
AV_Decision_Allow_Only_One();
/**
* @see Decision::evaluate(Person* person, int disease, int current_day);
*/
int evaluate(Person* person, int disease, int current_day);
};
/**
* This policy defines that each agent only has one chance to get AV,
* i.e. only check once.
*/
class AV_Decision_Give_One_Chance: public Decision {
public:
AV_Decision_Give_One_Chance(Policy *p);
AV_Decision_Give_One_Chance();
/**
* @see Decision::evaluate(Person* person, int disease, int current_day);
*/
int evaluate(Person* person, int disease, int current_day);
};
/**
* This policy defines that an agent will receive AV if symptomatic
*/
class AV_Decision_Give_to_Sympt: public Decision {
public:
AV_Decision_Give_to_Sympt(Policy *p);
AV_Decision_Give_to_Sympt();
/**
* @see Decision::evaluate(Person* person, int disease, int current_day);
*/
int evaluate(Person* person, int disease, int current_day);
};
/**
* This policy defines that agent begins AV on a given day
*/
class AV_Decision_Begin_AV_On_Day: public Decision {
public:
AV_Decision_Begin_AV_On_Day(Policy *p);
AV_Decision_Begin_AV_On_Day();
/**
* @see Decision::evaluate(Person* person, int disease, int current_day);
*/
int evaluate(Person* person, int disease, int current_day);
};
#endif