MultiAgentDecisionProcess
Release 0.2.1
|
History is a general class for histories. More...
#include <History.h>
Public Member Functions | |
virtual History * | Clone () const =0 |
Returns a pointer to a copy of this class. | |
size_t | GetLength () const |
Returns the length of the history, i.e., the number of time steps. | |
History () | |
(default) Constructor | |
virtual void | Print () const =0 |
void | SetLength (size_t length) |
Set the length of the history, i.e., the number of time steps. | |
virtual | ~History () |
Destructor. |
Protected Attributes | |
size_t | _m_length |
How long (how many time-steps) is this history? |
|
pure virtual |
Returns a pointer to a copy of this class.
Implemented in JointActionObservationHistory, ObservationHistory, JointActionHistory, JointObservationHistory, ActionObservationHistory, and ActionHistory.
|
inline |
Returns the length of the history, i.e., the number of time steps.
Definition at line 58 of file History.h.
References _m_length.
Referenced by ActionHistory::ActionHistory(), ActionObservationHistory::ActionObservationHistory(), PlanningUnitMADPDiscrete::CreateActionObservationHistoryTree(), PlanningUnitMADPDiscrete::CreateObservationHistoryTree(), PlanningUnitMADPDiscrete::InitializeJointActionObservationHistories(), PlanningUnitMADPDiscrete::InitializeJointObservationHistories(), JointActionHistory::JointActionHistory(), JointActionObservationHistory::JointActionObservationHistory(), JointObservationHistory::JointObservationHistory(), and ObservationHistory::ObservationHistory().
|
pure virtual |
|
inline |
Set the length of the history, i.e., the number of time steps.
Definition at line 64 of file History.h.
References _m_length.
Referenced by ActionHistory::ActionHistory(), ActionObservationHistory::ActionObservationHistory(), JointActionHistory::JointActionHistory(), JointActionObservationHistory::JointActionObservationHistory(), JointObservationHistory::JointObservationHistory(), and ObservationHistory::ObservationHistory().
|
protected |
How long (how many time-steps) is this history?
For example, history at... ts 0 - length 0 (received no action yet... ) ts 1 - length 1 (hist= (a0) ) ts 2 - length 2 (hist= (a0,a1) )
Definition at line 48 of file History.h.
Referenced by JointActionObservationHistory::GetJointActionObservationHistoryVectorsRecursive(), GetLength(), SetLength(), JointActionObservationHistory::SoftPrint(), ActionHistory::SoftPrint(), ActionObservationHistory::SoftPrint(), JointActionHistory::SoftPrint(), JointObservationHistory::SoftPrint(), ObservationHistory::SoftPrint(), and JointActionObservationHistory::SoftPrintJointIndices().