MultiAgentDecisionProcess  Release 0.2.1
JointObservationHistoryTree.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _JOINTOBSERVATIONHISTORYTREE_H_
30 #define _JOINTOBSERVATIONHISTORYTREE_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include <vector>
35 #include "Globals.h"
37 #include "TreeNode.h"
38 //#include "PlanningUnitMADPDiscrete.h"
39 class PlanningUnitMADPDiscrete; //forward declaration to avoid including each other
40 
41 
42 
57 class JointObservationHistoryTree : public TreeNode<JointObservationHistory>
58 {
59  private:
60 
61  protected:
62 
63  public:
64  // Constructor, destructor and copy assignment.
65 
69  {}
73  {}
75  //~JointObservationHistoryTree();
76 
77  //operators:
78 
79  //data manipulation (set) functions:
80 
81  //get (data) functions:
83  size_t GetLength() const
84  {
85  return(
86  (GetContainedElement()!=0)?
88  throw E("_m_jObsHist undefined!")
89  );
90  };
92  {return GetContainedElement();}
93 
95  {return (JointObservationHistoryTree*) //we know we only put pointers
96  //to JointObservationHistoryTree's in here.
98 
100  {return (JointObservationHistoryTree*) //we know we only put pointers
101  //to JointObservationHistoryTree's in here.
103 };
104 
105 
106 #endif /* !_JOINTOBSERVATIONHISTORYTREE_H_ */
107 
108 // Local Variables: ***
109 // mode:c++ ***
110 // End: ***