FRED
Perceptions.h
00001 /*
00002   Copyright 2009 by the University of Pittsburgh
00003   Licensed under the Academic Free License version 3.0
00004   See the file "LICENSE" for more information
00005 */
00006 
00007 //
00008 //
00009 // File: Perceptions.h
00010 //
00011 
00012 #ifndef _FRED_PERCEPTIONS_H
00013 #define _FRED_PERCEPTIONS_H
00014 
00015 #include "Global.h"
00016 #include "Population.h"
00017 #include "Disease.h"
00018 #include "Epidemic.h"
00019 class Person;
00020 
00021 class Perceptions {
00022 public:
00023 
00028   Perceptions(Person *p) { self = p; }
00029 
00035   void update(int day) {}
00036 
00040   int get_global_cases(int disease) {
00041     return Global::Pop.get_disease(disease)->get_epidemic()->get_clinical_incidents();
00042   }
00043 
00047   int get_global_deaths(int disease) {
00048     return Global::Pop.get_disease(disease)->get_mortality_rate()*get_global_cases(disease);
00049   }
00050 
00055   int get_neighborhood_cases(int disease);
00056 
00061   int get_neighborhood_deaths(int disease);
00062 
00067   int get_workplace_cases(int disease);
00068 
00073   int get_workplace_deaths(int disease);
00074 
00079   int get_school_cases(int disease);
00080 
00085   int get_school_deaths(int disease);
00086 
00091   double get_household_school_incidence(int disease);
00092 
00098   int get_local_cases(int disease) { return 0.0; }
00099 
00105   int get_local_deaths(int disease) { return 0.0; }
00106 private:
00107   Person * self;
00108 protected:
00109   Perceptions() {}
00110   ~Perceptions() {}
00111 };
00112 
00113 #endif // _FRED_PERCEPTIONS_H
00114 
 All Classes Functions