MultiAgentDecisionProcess
JointObservationHistoryTree Class Reference

JointObservationHistoryTree is a class that represents a wrapper for the JointObservationHistory class. More...

#include <JointObservationHistoryTree.h>

Inheritance diagram for JointObservationHistoryTree:
[legend]

Public Member Functions

JointObservationHistoryGetJointObservationHistory () const
 
size_t GetLength () const
 Destructor. More...
 
JointObservationHistoryTreeGetPredecessor () const
 
JointObservationHistoryTreeGetSuccessor (Index jObsI)
 
 JointObservationHistoryTree (JointObservationHistory *const joh)
 Create a joint observation history tree for joh. More...
 
 JointObservationHistoryTree (const JointObservationHistoryTree &a)
 Copy constructor. More...
 
- Public Member Functions inherited from TreeNode< JointObservationHistory >
bool ExistsSuccessor (LIndex sucI)
 Check whether a particular successor sucI exists. More...
 
JointObservationHistoryGetContainedElement () const
 Returns a pointer to the contained element (Tcontained) More...
 
LIndex GetIndex () const
 Returns the index of this TreeNode (and thus corresponding to the contained element). More...
 
TreeNodeGetPredecessor () const
 Get the predecessor TreeNode*. More...
 
TreeNodeGetSuccessor (LIndex sucI)
 Get the succesor TreeNode* for the sucI'th successor. More...
 
void Print () const
 Prints the tree starting from this node of the history tree (including the successors). More...
 
void PrintThisNode () const
 Prints only this node of the history tree (not the successors). More...
 
void SetIndex (LIndex i)
 Sets the index to i. More...
 
void SetPredeccessor (TreeNode< JointObservationHistory > *pred)
 Sets the predecessor of this node to be pred. More...
 
void SetSuccessor (LIndex sucI, TreeNode< JointObservationHistory > *suc)
 Sets the sucI'th successor of this TreeNode to suc. More...
 
 TreeNode ()
 (default) Constructor More...
 
 TreeNode (JointObservationHistory *const oh)
 
 TreeNode (const TreeNode &a)
 Copy constructor. More...
 
virtual ~TreeNode ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from TreeNode< JointObservationHistory >
JointObservationHistory_m_containedElem
 The contained element. More...
 
LIndex _m_index
 The index of this TreeNode (and thus of the contained Tcontained - typically an observation history). More...
 
bool _m_indexValid
 Whether the index is valid. More...
 
TreeNode
< JointObservationHistory > * 
_m_pred
 A Pointer to the predecessor. More...
 
std::map< LIndex, TreeNode
< JointObservationHistory > * > 
_m_successor
 The map that stores the pointers to the successor TreeNodes. More...
 

Detailed Description

JointObservationHistoryTree is a class that represents a wrapper for the JointObservationHistory class.

An JointObservationHistoryTree actually represents a node in the tree of observation histories. But each node also specifies a (sub-)tree so there is no actual difference between a tree and a node. This implementation assumes that ObservationHistories are always contained in exactly 1 JointObservationHistoryTree: i.e., deleting an object of JointObservationHistoryTree will free the memory of the node and the subtree represented by it as well as the memory of all the contained ObservationHistories.

Constructor & Destructor Documentation

JointObservationHistoryTree::JointObservationHistoryTree ( JointObservationHistory *const  joh)
inline

Create a joint observation history tree for joh.

JointObservationHistoryTree::JointObservationHistoryTree ( const JointObservationHistoryTree a)
inline

Copy constructor.

Member Function Documentation

JointObservationHistory* JointObservationHistoryTree::GetJointObservationHistory ( ) const
inline
size_t JointObservationHistoryTree::GetLength ( ) const
inline

Destructor.

Returns the length of the contained ObservationHistory.

References TreeNode< JointObservationHistory >::GetContainedElement().

JointObservationHistoryTree* JointObservationHistoryTree::GetPredecessor ( ) const
inline
JointObservationHistoryTree* JointObservationHistoryTree::GetSuccessor ( Index  jObsI)
inline