FRED
Decision.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: Decision.h
00010 //
00011 
00012 #ifndef _FRED_DECISION_H
00013 #define _FRED_DECISION_H
00014 
00015 #include <iostream>
00016 #include <string>
00017 #include <list>
00018 
00019 class Policy;
00020 class Person;
00021 
00022 using namespace std;
00023 
00024 class Decision{
00025   
00026 protected:
00027   string name;
00028   string type; 
00029   Policy *policy;  // This is the policy that the decision belongs to
00030   
00031 public:
00032   Decision();
00033   Decision(Policy *p);
00034   ~Decision();
00035   
00039   string get_name() const { return name; }
00040 
00044   string get_type() const { return type; }
00045   
00055   virtual int evaluate(Person* person, int disease, int current_day) = 0;  
00056 };
00057 #endif
 All Classes Functions