MultiAgentDecisionProcess  Release 0.2.1
ActionObservationHistory Class Reference

ActionObservationHistory represents an action-observation history of an agent. More...

#include <ActionObservationHistory.h>

+ Inheritance diagram for ActionObservationHistory:
+ Collaboration diagram for ActionObservationHistory:

Public Member Functions

 ActionObservationHistory (PlanningUnitMADPDiscrete &pu, Index agentI)
 (default) Constructor - creates a new initial (=empty) ObservationHistory for agent agentI
 ActionObservationHistory (Index aI, Index oI, ActionObservationHistory *pred)
 Creates the action-observation history resulting from action aI and obs.
virtual ActionObservationHistoryClone () const
 Returns a pointer to a copy of this class.
Index GetActionHistoryIndex () const
 Gets the action history index corresponding to this ActObsHist.
Index GetObservationHistoryIndex () const
 Gets the observation history index corresponding to this ActObsHist.
void Print () const
void SetActionHistoryIndex (Index ahI)
 Sets the action history index corresponding to this ActObsHist.
void SetObservationHistoryIndex (Index ohI)
 Sets the observation history index corresponding to this ActObsHist.
std::string SoftPrint () const
- Public Member Functions inherited from Referrer< PlanningUnitMADPDiscrete >
PlanningUnitMADPDiscreteGetReferred () const
 Return the referred thing...
 Referrer (PlanningUnitMADPDiscrete *t_p=0)
 (default) Constructor
 Referrer (PlanningUnitMADPDiscrete &t)
 Alternative constructor.
 Referrer (const Referrer &a)
 Copy constructor.
void SetReferred (PlanningUnitMADPDiscrete *t_p)
 Change the referred thing...
virtual ~Referrer ()
 Destructor.
- Public Member Functions inherited from IndividualHistory
 IndividualHistory (Index agentI)
 (default) Constructor
virtual ~IndividualHistory ()
 Destructor.
- Public Member Functions inherited from History
size_t GetLength () const
 Returns the length of the history, i.e., the number of time steps.
 History ()
 (default) Constructor
void SetLength (size_t length)
 Set the length of the history, i.e., the number of time steps.
virtual ~History ()
 Destructor.

Private Attributes

Index _m_ahI
 The index of the action history contained.
Index _m_ohI
 The index of the observation history contained.
ActionObservationHistory_m_pred
 The predecessor together with the last joint actionObservation (_m_actionObservationI) this gives a full description of this joint actionObservation history.

Additional Inherited Members

- Protected Attributes inherited from IndividualHistory
Index _m_agentI
 The agent this history belongs to.

Detailed Description

ActionObservationHistory represents an action-observation history of an agent.

Definition at line 44 of file ActionObservationHistory.h.

Constructor & Destructor Documentation

ActionObservationHistory::ActionObservationHistory ( PlanningUnitMADPDiscrete pu,
Index  agentI 
)

(default) Constructor - creates a new initial (=empty) ObservationHistory for agent agentI

Definition at line 40 of file ActionObservationHistory.cpp.

References _m_ahI, _m_ohI, _m_pred, and History::SetLength().

Referenced by Clone().

Member Function Documentation

virtual ActionObservationHistory* ActionObservationHistory::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements History.

Definition at line 91 of file ActionObservationHistory.h.

References ActionObservationHistory().

Index ActionObservationHistory::GetActionHistoryIndex ( ) const
inline

Gets the action history index corresponding to this ActObsHist.

Definition at line 84 of file ActionObservationHistory.h.

References _m_ahI.

Index ActionObservationHistory::GetObservationHistoryIndex ( ) const
inline

Gets the observation history index corresponding to this ActObsHist.

Definition at line 87 of file ActionObservationHistory.h.

References _m_ohI.

void ActionObservationHistory::Print ( ) const
inlinevirtual
void ActionObservationHistory::SetActionHistoryIndex ( Index  ahI)
inline

Sets the action history index corresponding to this ActObsHist.

Definition at line 75 of file ActionObservationHistory.h.

References _m_ahI.

void ActionObservationHistory::SetObservationHistoryIndex ( Index  ohI)
inline

Sets the observation history index corresponding to this ActObsHist.

Definition at line 78 of file ActionObservationHistory.h.

References _m_ohI.

Member Data Documentation

Index ActionObservationHistory::_m_ahI
private

The index of the action history contained.

Definition at line 52 of file ActionObservationHistory.h.

Referenced by ActionObservationHistory(), GetActionHistoryIndex(), SetActionHistoryIndex(), and SoftPrint().

Index ActionObservationHistory::_m_ohI
private

The index of the observation history contained.

Definition at line 50 of file ActionObservationHistory.h.

Referenced by ActionObservationHistory(), GetObservationHistoryIndex(), SetObservationHistoryIndex(), and SoftPrint().

ActionObservationHistory* ActionObservationHistory::_m_pred
private

The predecessor together with the last joint actionObservation (_m_actionObservationI) this gives a full description of this joint actionObservation history.

Definition at line 57 of file ActionObservationHistory.h.

Referenced by ActionObservationHistory(), and SoftPrint().


The documentation for this class was generated from the following files: