MultiAgentDecisionProcess  Release 0.2.1
ObservationHistory.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _OBSERVATIONHISTORY_H_
30 #define _OBSERVATIONHISTORY_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
35 #include "Referrer.h"
36 #include "E.h"
37 #include "IndividualHistory.h"
38 
39 class PlanningUnitMADPDiscrete; //forward declaration to avoid including each other
40 
41 
42 
44 
48 class ObservationHistory : public Referrer<PlanningUnitMADPDiscrete>,
49  public IndividualHistory
50 {
51  private:
52 
55 
66  protected:
67 
68  public:
69  // Constructor, destructor and copy assignment.
76  Index obsI);
81  //ObservationHistory(const ObservationHistory& a);
84 
85  //operators:
86 
87  //data manipulation (set) functions:
88 
89  //get (data) functions:
91  bool ContainsEmptyOI() const
92  {return _m_containsEmptyOI;}
95  {return _m_pred;}
98  { return _m_observationI; }
99 
100  //other
102  virtual ObservationHistory* Clone() const
103  { return new ObservationHistory(*this); }
104 
106  std::string SoftPrint() const;
108  void Print() const
109  { std::cout << SoftPrint();}
110 };
111 
112 
113 #endif /* !_OBSERVATIONHISTORY_H_ */
114 
115 // Local Variables: ***
116 // mode:c++ ***
117 // End: ***