MultiAgentDecisionProcess
ActionObservationHistory Class Reference

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

#include <ActionObservationHistory.h>

Inheritance diagram for ActionObservationHistory:
[legend]

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from IndividualHistory
Index _m_agentI
 The agent this history belongs to. More...
 
- Protected Attributes inherited from History
size_t _m_length
 How long (how many time-steps) is this history? More...
 

Detailed Description

ActionObservationHistory represents an action-observation history of an agent.

Constructor & Destructor Documentation

ActionObservationHistory::ActionObservationHistory ( PlanningUnitMADPDiscrete pu,
Index  agentI 
)

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

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.

References ActionObservationHistory().

Index ActionObservationHistory::GetActionHistoryIndex ( ) const
inline

Gets the action history index corresponding to this ActObsHist.

References _m_ahI.

Index ActionObservationHistory::GetObservationHistoryIndex ( ) const
inline

Gets the observation history index corresponding to this ActObsHist.

References _m_ohI.

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

Sets the action history index corresponding to this ActObsHist.

void ActionObservationHistory::SetObservationHistoryIndex ( Index  ohI)
inline

Sets the observation history index corresponding to this ActObsHist.

Member Data Documentation

Index ActionObservationHistory::_m_ahI
private

The index of the action history contained.

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

Index ActionObservationHistory::_m_ohI
private

The index of the observation history contained.

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

PlanningUnitMADPDiscrete* ActionObservationHistory::_m_planningUnitMADPDiscrete
private
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.

Referenced by ActionObservationHistory(), and SoftPrint().