MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
ObservationHistoryTree.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _OBSERVATIONHISTORYTREE_H_
30
#define _OBSERVATIONHISTORYTREE_H_ 1
31
32
/* the include directives */
33
#include "
ObservationHistory.h
"
34
#include "
TreeNode.h
"
35
37
46
class
ObservationHistoryTree
:
public
TreeNode
<ObservationHistory>
47
{
48
private
:
49
50
protected
:
51
52
public
:
53
// Constructor, destructor and copy assignment.
55
ObservationHistoryTree
(
ObservationHistory
*
const
oh) :
56
TreeNode
<
ObservationHistory
> (oh)
57
{}
59
ObservationHistoryTree
(
const
ObservationHistoryTree
& a):
60
TreeNode
<
ObservationHistory
> (a)
61
{}
62
63
//operators:
64
65
//data manipulation (set) functions:
66
67
//get (data) functions:
69
size_t
GetLength
()
const
70
{
71
return
(
72
(
GetContainedElement
()!=0)?
73
GetContainedElement
()->
GetLength
() :
74
throw
E
(
"_m_jObsHist undefined!"
)
75
);
76
};
77
ObservationHistory
*
GetObservationHistory
()
const
78
{
return
GetContainedElement
();}
79
80
ObservationHistoryTree
*
GetPredecessor
()
const
81
{
return
(
ObservationHistoryTree
*)
//we know we only put pointers
82
//to ObservationHistoryTree's in here.
83
TreeNode<ObservationHistory>::GetPredecessor
();}
84
85
ObservationHistoryTree
*
GetSuccessor
(
Index
jObsI)
86
{
return
(
ObservationHistoryTree
*)
//we know we only put pointers
87
//to ObservationHistoryTree's in here.
88
TreeNode<ObservationHistory>::GetSuccessor
(jObsI);}
89
90
};
91
92
93
#endif
/* !_OBSERVATIONHISTORYTREE_H_ */
94
95
96
// Local Variables: ***
97
// mode:c++ ***
98
// End: ***
src
support
ObservationHistoryTree.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2