MultiAgentDecisionProcess  Release 0.2.1
ActionHistory.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _ACTIONHISTORY_H_
30 #define _ACTIONHISTORY_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 
42 
46 class ActionHistory : public Referrer<PlanningUnitMADPDiscrete>,
47  public IndividualHistory
48 {
49  private:
50 
56  bool _m_isEmpty;
61  protected:
62 
63  public:
64  // Constructor, destructor and copy assignment.
68 
72 
75 
76  //operators:
77 
78  //data manipulation (set) functions:
79 
80  //get (data) functions:
82  bool IsEmpty() const
83  {return _m_isEmpty;}
86  { return _m_actionI; }
87  //other
89  virtual ActionHistory* Clone() const
90  { return new ActionHistory(*this); }
91 
93  std::string SoftPrint() const;
95  void Print() const
96  { std::cout << SoftPrint();}
97 };
98 
99 
100 #endif /* !_ACTIONHISTORY_H_ */
101 
102 // Local Variables: ***
103 // mode:c++ ***
104 // End: ***