MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
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
"
36
#include "
JointObservationHistory.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
67
JointObservationHistoryTree
(
JointObservationHistory
*
const
joh) :
68
TreeNode
<
JointObservationHistory
> (joh)
69
{}
71
JointObservationHistoryTree
(
const
JointObservationHistoryTree
& a):
72
TreeNode
<
JointObservationHistory
> (a)
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)?
87
GetContainedElement
()->
GetLength
() :
88
throw
E
(
"_m_jObsHist undefined!"
)
89
);
90
};
91
JointObservationHistory
*
GetJointObservationHistory
()
const
92
{
return
GetContainedElement
();}
93
94
JointObservationHistoryTree
*
GetPredecessor
()
const
95
{
return
(
JointObservationHistoryTree
*)
//we know we only put pointers
96
//to JointObservationHistoryTree's in here.
97
TreeNode<JointObservationHistory>::GetPredecessor
();}
98
99
JointObservationHistoryTree
*
GetSuccessor
(
Index
jObsI)
100
{
return
(
JointObservationHistoryTree
*)
//we know we only put pointers
101
//to JointObservationHistoryTree's in here.
102
TreeNode<JointObservationHistory>::GetSuccessor
(jObsI);}
103
};
104
105
106
#endif
/* !_JOINTOBSERVATIONHISTORYTREE_H_ */
107
108
// Local Variables: ***
109
// mode:c++ ***
110
// End: ***
src
support
JointObservationHistoryTree.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2