MultiAgentDecisionProcess
JointActionObservationHistory Class Reference

JointActionObservationHistory represents a joint action observation history. More...

#include <JointActionObservationHistory.h>

Inheritance diagram for JointActionObservationHistory:
[legend]

Public Member Functions

virtual
JointActionObservationHistory
Clone () const
 Returns a pointer to a copy of this class. More...
 
const std::vector< Index > & GetIndividualActionObservationHistoryIndices () const
 Returns the indices of the indiv. action observation histories. More...
 
Index GetJointActionIndex () const
 Gets the last joint action index. More...
 
void GetJointActionObservationHistoryVectors (std::vector< Index > &jaIs, std::vector< Index > &joIs)
 Get vectors of joint action and observation indices stored by this history. More...
 
Index GetJointObservationIndex () const
 Gets the last joint observation index. More...
 
PlanningUnitMADPDiscreteGetPlanningUnitMADPDiscrete ()
 Returns PlanningUnitMADPDiscrete. More...
 
 JointActionObservationHistory (PlanningUnitMADPDiscrete &pu)
 (default) Constructor - creates a new initial (=empty) JointActionObservationHistory. More...
 
 JointActionObservationHistory (Index jaI, Index joI, JointActionObservationHistory *pred)
 Creates the joint action-obs. More...
 
void Print () const
 Prints the history. More...
 
std::string SoftPrint () const
 SoftPrints the history. More...
 
std::string SoftPrintJointIndices () const
 SoftPrints the history in terms of joint action/observation indices. More...
 
- Public Member Functions inherited from JointHistory
 JointHistory ()
 (default) Constructor More...
 
virtual ~JointHistory ()
 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 Member Functions

void GetJointActionObservationHistoryVectorsRecursive (std::vector< Index > &jaIs, std::vector< Index > &joIs)
 

Private Attributes

std::vector< Index_m_individualActionObservationHistories
 A vector of Indices which are the indices of individual ActionObservationHistories this gives an alternate description of the current JointActionObservation History. More...
 
Index _m_jaI
 The last joint action (index). More...
 
Index _m_joI
 The last joint observation (index). More...
 
PlanningUnitMADPDiscrete_m_planningUnitMADPDiscrete
 pointer to the pu More...
 
JointActionObservationHistory_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 History
size_t _m_length
 How long (how many time-steps) is this history? More...
 

Detailed Description

JointActionObservationHistory represents a joint action observation history.

Constructor & Destructor Documentation

JointActionObservationHistory::JointActionObservationHistory ( PlanningUnitMADPDiscrete pu)

Member Function Documentation

virtual JointActionObservationHistory* JointActionObservationHistory::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements History.

References JointActionObservationHistory().

const std::vector<Index>& JointActionObservationHistory::GetIndividualActionObservationHistoryIndices ( ) const
inline

Returns the indices of the indiv. action observation histories.

References _m_individualActionObservationHistories.

Referenced by JointActionObservationHistory().

Index JointActionObservationHistory::GetJointActionIndex ( ) const
inline

Gets the last joint action index.

References _m_jaI.

void JointActionObservationHistory::GetJointActionObservationHistoryVectors ( std::vector< Index > &  jaIs,
std::vector< Index > &  joIs 
)

Get vectors of joint action and observation indices stored by this history.

References GetJointActionObservationHistoryVectorsRecursive(), SoftPrint(), and PrintTools::SoftPrintVector().

void JointActionObservationHistory::GetJointActionObservationHistoryVectorsRecursive ( std::vector< Index > &  jaIs,
std::vector< Index > &  joIs 
)
private
Index JointActionObservationHistory::GetJointObservationIndex ( ) const
inline

Gets the last joint observation index.

References _m_joI.

PlanningUnitMADPDiscrete* JointActionObservationHistory::GetPlanningUnitMADPDiscrete ( )
inline
string JointActionObservationHistory::SoftPrintJointIndices ( ) const

Member Data Documentation

std::vector<Index> JointActionObservationHistory::_m_individualActionObservationHistories
private

A vector of Indices which are the indices of individual ActionObservationHistories this gives an alternate description of the current JointActionObservation History.

Referenced by GetIndividualActionObservationHistoryIndices(), and JointActionObservationHistory().

Index JointActionObservationHistory::_m_jaI
private
Index JointActionObservationHistory::_m_joI
private
PlanningUnitMADPDiscrete* JointActionObservationHistory::_m_planningUnitMADPDiscrete
private
JointActionObservationHistory* JointActionObservationHistory::_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 GetJointActionObservationHistoryVectorsRecursive(), JointActionObservationHistory(), SoftPrint(), and SoftPrintJointIndices().