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: Cognition.h 00010 // 00011 00012 #ifndef _FRED_COGNITION_H 00013 #define _FRED_COGNITION_H 00014 00015 #include "Global.h" 00016 #include "Cognitive_Model.h" 00017 00018 class Person; 00019 extern int V_count; 00020 00021 class Cognition { 00022 public: 00023 Cognition(Person *p); 00024 ~Cognition() {} 00025 void reset() { model->reset(); } 00026 void update(int day) { model->update(day); V_count += will_accept_vaccine(0); } 00027 bool will_accept_vaccine(int strain) { return model->will_accept_vaccine(strain); } 00028 bool will_keep_kids_home() { return false; } 00029 private: 00030 void get_parameters(); 00031 Cognitive_Model * model; // cognitive model does all the real work 00032 }; 00033 00034 #endif // _FRED_COGNITION_H 00035