Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _FRED_HEALTH_BELIEF_MODEL_H
00013 #define _FRED_HEALTH_BELIEF_MODEL_H
00014
00015 #include "Cognitive_Model.h"
00016 #include "Perceptions.h"
00017
00018 class Person;
00019
00020 class Health_Belief_Model : public Cognitive_Model {
00021 public:
00022 Health_Belief_Model(Person *p);
00023 void reset();
00024 void update(int day);
00025 bool will_accept_vaccine(int strain) { return accept_vaccine[strain]; }
00026 private:
00027 void get_parameters();
00028 bool decide_whether_to_accept_vaccine(int strain);
00029
00030
00031 Person * self;
00032
00033
00034 double * cumm_susceptibility;
00035 double * cumm_severity;
00036 double memory_decay;
00037 int total_deaths;
00038
00039
00040 Perceptions * perceptions;
00041 int * perceived_susceptibility;
00042 int * perceived_severity;
00043 double * perceived_benefits_accept_vaccine;
00044 double * perceived_barriers_accept_vaccine;
00045
00046
00047 double susceptibility_threshold;
00048 double severity_threshold;
00049 double benefits_threshold;
00050 double barriers_threshold;
00051
00052
00053 bool * accept_vaccine;
00054
00055 protected:
00056 ~Health_Belief_Model() { }
00057 };
00058
00059 #endif // _FRED_HEALTH_BELIEF_MODEL_H
00060