MultiAgentDecisionProcess  Release 0.2.1
JointActionHistory.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _JOINTACTIONHISTORY_H_
30 #define _JOINTACTIONHISTORY_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include <vector>
35 
36 #include "Globals.h"
37 #include "Referrer.h"
38 #include "TreeNode.h"
39 #include "JointHistory.h"
40 
41 //#include "PlanningUnitMADPDiscrete.h"
42 class PlanningUnitMADPDiscrete; //forward declaration to avoid including each other
43 
45 
49 class JointActionHistory : public Referrer<PlanningUnitMADPDiscrete>,
50  public JointHistory
51 {
52  private:
53 
60  bool _m_isEmpty;
68  std::vector<Index> _m_individualActionHistories;
69 
70 
71  protected:
72 
73  public:
74  // Constructor, destructor and copy assignment.
89 
90  //operators:
91 
92  //data manipulation (set) functions:
93 
94  //get (data) functions:
96  const std::vector<Index>& GetIndividualActionHistoryIndices() const;
97  //other
99  virtual JointActionHistory* Clone() const
100  { return new JointActionHistory(*this); }
101 
103  std::string SoftPrint() const;
105  void Print() const { std::cout << SoftPrint(); }
106 
107 };
108 
109 #endif /* !_JOINTACTIONHISTORY_H_ */
110 
111 
112 // Local Variables: ***
113 // mode:c++ ***
114 // End: ***