MultiAgentDecisionProcess
Type_PointerTuple Class Reference

Type_PointerTuple is a implementation (extenstion) of Type and represents a type in e.g. More...

#include <Type_PointerTuple.h>

Inheritance diagram for Type_PointerTuple:
[legend]

Public Member Functions

TypeClone () const
 
Index GetAction () const
 
Index GetObservation () const
 
const TypeClusterGetPredecessor () const
 
Type_PointerTupleoperator= (const Type_PointerTuple &o)
 Copy assignment operator. More...
 
std::string SoftPrint () const
 SoftPrints all of the represented histories recursively. More...
 
 Type_PointerTuple (const TypeCluster *_m_pred, Index aI, Index oI)
 (default) Constructor More...
 
 Type_PointerTuple (const Type_PointerTuple &a)
 Copy constructor. More...
 
virtual ~Type_PointerTuple ()
 Destructor. More...
 
- Public Member Functions inherited from Type
SubClass GetSubClass () const
 
Typeoperator= (const Type &o)
 Copy assignment operator. More...
 
 Type (SubClass s=AOHINDEX)
 (default) Constructor More...
 
 Type (const Type &a)
 Copy constructor. More...
 
virtual ~Type ()
 Destructor. More...
 

Private Attributes

Index _m_aI
 The (index of) the individual action taken since previous_p. More...
 
Index _m_oI
 The (index of) the received individual observation since previous_p. More...
 
const TypeCluster_m_pred
 The previous TypeCluster. More...
 

Additional Inherited Members

- Public Types inherited from Type
enum  SubClass { UNDEFINED, AOHINDEX, POINTERTUPLE }
 
- Protected Attributes inherited from Type
SubClass _m_sc
 

Detailed Description

Type_PointerTuple is a implementation (extenstion) of Type and represents a type in e.g.

a BG.

In particular this implementation of Type is a tuple <p, a, o> where p is a pointer to a type of the (BG of the) previous stage, a is the action taken and o the observation received since then.

Constructor & Destructor Documentation

Type_PointerTuple::Type_PointerTuple ( const TypeCluster _m_pred,
Index  aI,
Index  oI 
)

(default) Constructor

Referenced by Clone().

Type_PointerTuple::Type_PointerTuple ( const Type_PointerTuple a)

Copy constructor.

Type_PointerTuple::~Type_PointerTuple ( )
virtual

Destructor.

Member Function Documentation

Type * Type_PointerTuple::Clone ( ) const
virtual

Implements Type.

References Type_PointerTuple().

Index Type_PointerTuple::GetAction ( ) const
inline
Index Type_PointerTuple::GetObservation ( ) const
inline
const TypeCluster* Type_PointerTuple::GetPredecessor ( ) const
inline
Type_PointerTuple & Type_PointerTuple::operator= ( const Type_PointerTuple o)

Copy assignment operator.

References _m_aI, _m_oI, _m_pred, and Type::operator=().

string Type_PointerTuple::SoftPrint ( void  ) const
virtual

SoftPrints all of the represented histories recursively.

Implements Type.

References _m_aI, _m_oI, _m_pred, and TypeCluster::SoftPrint().

Member Data Documentation

Index Type_PointerTuple::_m_aI
private

The (index of) the individual action taken since previous_p.

Referenced by GetAction(), operator=(), and SoftPrint().

Index Type_PointerTuple::_m_oI
private

The (index of) the received individual observation since previous_p.

Referenced by GetObservation(), operator=(), and SoftPrint().

const TypeCluster* Type_PointerTuple::_m_pred
private

The previous TypeCluster.

Referenced by GetPredecessor(), operator=(), and SoftPrint().