MultiAgentDecisionProcess
PlanningUnitMADPDiscreteParameters Class Reference

PlanningUnitMADPDiscreteParameters stores parameters of PlanningUnitMADPDiscrete. More...

#include <PlanningUnitMADPDiscreteParameters.h>

Public Member Functions

bool GetComputeIndividualActionHistories () const
 Are individual action histories generated or not. More...
 
bool GetComputeIndividualActionObservationHistories () const
 Are individual action-observation histories generated or not. More...
 
bool GetComputeIndividualObservationHistories () const
 Are individual observation histories generated or not. More...
 
bool GetComputeJointActionHistories () const
 Are joint action histories generated or not. More...
 
bool GetComputeJointActionObservationHistories () const
 Are joint action-observation histories generated or not. More...
 
bool GetComputeJointBeliefs () const
 Are the joint beliefs cached or not. More...
 
bool GetComputeJointObservationHistories () const
 Are joint observation histories generated or not. More...
 
bool GetEventObservability () const
 Observable states or observable transitions. More...
 
bool GetUseSparseJointBeliefs () const
 Are sparse beliefs used or not. More...
 
 PlanningUnitMADPDiscreteParameters ()
 Default constructor. More...
 
void Print () const
 Print out the parameters to cout. More...
 
void SanityCheck () const
 Ensures no illegal combination of parameters has been set. More...
 
void SetComputeAll (bool val)
 Switch on or off the generation of all histories. More...
 
void SetComputeAllIndividualHistories (bool val)
 Switch on or off the generation of all individual histories. More...
 
void SetComputeAllJointHistories (bool val)
 Switch on or off the generation of all joint histories. More...
 
void SetComputeIndividualActionHistories (bool val)
 Switch on or off the generation of individual action histories. More...
 
void SetComputeIndividualActionObservationHistories (bool val)
 Switch on or off the generation of individual action-observation histories. More...
 
void SetComputeIndividualObservationHistories (bool val)
 Switch on or off the generation of individual observation histories. More...
 
void SetComputeJointActionHistories (bool val)
 Switch on or off the generation of joint action histories. More...
 
void SetComputeJointActionObservationHistories (bool val)
 Switch on or off the generation of joint action-observation histories. More...
 
void SetComputeJointBeliefs (bool val)
 Switch on or off storing the joint beliefs. More...
 
void SetComputeJointObservationHistories (bool val)
 Switch on or off the generation of joint observation histories. More...
 
void SetEventObservability (bool val)
 Switch on or off the use of PS-dependent observation models. More...
 
void SetUseSparseJointBeliefs (bool val)
 Switch on or off whether joint beliefs should be represented sparsely. More...
 
 ~PlanningUnitMADPDiscreteParameters ()
 Destructor. More...
 

Private Attributes

bool _m_eventObservability
 Indicate whether the observation model is defined over (s',a,s) (an event-driven model) or the standard (s',a) More...
 
bool _m_individualActionHistories
 Generate individual action histories or not. More...
 
bool _m_individualActionObservationHistories
 Generate individual action-observation histories or not. More...
 
bool _m_individualObservationHistories
 Generate individual observation histories or not. More...
 
bool _m_jointActionHistories
 Generate joint action histories or not. More...
 
bool _m_jointActionObservationHistories
 Whether or not joint action observation histories are generated and stored. More...
 
bool _m_JointBeliefs
 Whether joint beliefs are cached. More...
 
bool _m_jointObservationHistories
 Generate joint observation histories or not. More...
 
bool _m_useSparseBeliefs
 Use sparse beliefs or the full representation. More...
 

Detailed Description

PlanningUnitMADPDiscreteParameters stores parameters of PlanningUnitMADPDiscrete.

It controls which types of histories are generated when initializing the PlanningUnitMADPDiscrete. What to generate depends on the particular planning algorithm derived from it, for instance, some algorithms use joint beliefs, others don't (in which case there is no point in generating and storing them). This class also indicates whether joint beliefs should represented sparsely or not.

Constructor & Destructor Documentation

PlanningUnitMADPDiscreteParameters::PlanningUnitMADPDiscreteParameters ( )

Default constructor.

By default, all histories are generated, joint beliefs are cached and not represented sparsely.

PlanningUnitMADPDiscreteParameters::~PlanningUnitMADPDiscreteParameters ( )

Destructor.

Member Function Documentation

bool PlanningUnitMADPDiscreteParameters::GetComputeIndividualActionHistories ( ) const
inline
bool PlanningUnitMADPDiscreteParameters::GetComputeIndividualActionObservationHistories ( ) const
inline
bool PlanningUnitMADPDiscreteParameters::GetComputeJointActionHistories ( ) const
inline
bool PlanningUnitMADPDiscreteParameters::GetComputeJointObservationHistories ( ) const
inline
bool PlanningUnitMADPDiscreteParameters::GetEventObservability ( ) const
inline

Observable states or observable transitions.

Referenced by AlphaVectorPlanning::BackProjectFull(), and AlphaVectorConstrainedPOMDP::BeliefBackupQ().

void PlanningUnitMADPDiscreteParameters::Print ( ) const

Print out the parameters to cout.

Referenced by PlanningUnitMADPDiscrete::Print().

void PlanningUnitMADPDiscreteParameters::SanityCheck ( void  ) const

Ensures no illegal combination of parameters has been set.

Sanity check is called by the constructor of PlanningUnitMADPDiscrete.

The old procedure "Is called after each call to a Set function." made no sense, as it was not possible to do params.SetComputeJointActionHistories(false); params.SetComputeJointBeliefs(false); as it started complaining at the first call...

Referenced by PlanningUnitMADPDiscrete::PlanningUnitMADPDiscrete().

void PlanningUnitMADPDiscreteParameters::SetComputeAll ( bool  val)
void PlanningUnitMADPDiscreteParameters::SetComputeAllIndividualHistories ( bool  val)

Switch on or off the generation of all individual histories.

void PlanningUnitMADPDiscreteParameters::SetComputeAllJointHistories ( bool  val)

Switch on or off the generation of all joint histories.

void PlanningUnitMADPDiscreteParameters::SetComputeIndividualActionHistories ( bool  val)
inline

Switch on or off the generation of individual action histories.

void PlanningUnitMADPDiscreteParameters::SetComputeIndividualActionObservationHistories ( bool  val)
inline

Switch on or off the generation of individual action-observation histories.

void PlanningUnitMADPDiscreteParameters::SetComputeIndividualObservationHistories ( bool  val)
inline

Switch on or off the generation of individual observation histories.

void PlanningUnitMADPDiscreteParameters::SetComputeJointActionHistories ( bool  val)
inline

Switch on or off the generation of joint action histories.

void PlanningUnitMADPDiscreteParameters::SetComputeJointActionObservationHistories ( bool  val)
inline

Switch on or off the generation of joint action-observation histories.

void PlanningUnitMADPDiscreteParameters::SetComputeJointBeliefs ( bool  val)
inline

Switch on or off storing the joint beliefs.

void PlanningUnitMADPDiscreteParameters::SetComputeJointObservationHistories ( bool  val)
inline

Switch on or off the generation of joint observation histories.

void PlanningUnitMADPDiscreteParameters::SetEventObservability ( bool  val)
inline

Switch on or off the use of PS-dependent observation models.

void PlanningUnitMADPDiscreteParameters::SetUseSparseJointBeliefs ( bool  val)
inline

Switch on or off whether joint beliefs should be represented sparsely.

Member Data Documentation

bool PlanningUnitMADPDiscreteParameters::_m_eventObservability
private

Indicate whether the observation model is defined over (s',a,s) (an event-driven model) or the standard (s',a)

bool PlanningUnitMADPDiscreteParameters::_m_individualActionHistories
private

Generate individual action histories or not.

bool PlanningUnitMADPDiscreteParameters::_m_individualActionObservationHistories
private

Generate individual action-observation histories or not.

bool PlanningUnitMADPDiscreteParameters::_m_individualObservationHistories
private

Generate individual observation histories or not.

bool PlanningUnitMADPDiscreteParameters::_m_jointActionHistories
private

Generate joint action histories or not.

bool PlanningUnitMADPDiscreteParameters::_m_jointActionObservationHistories
private

Whether or not joint action observation histories are generated and stored.

If they are stored, also their (conditional) probabilities are cached.

bool PlanningUnitMADPDiscreteParameters::_m_JointBeliefs
private

Whether joint beliefs are cached.

Only applicable when jointActionObservationHistories are generated.).

bool PlanningUnitMADPDiscreteParameters::_m_jointObservationHistories
private

Generate joint observation histories or not.

bool PlanningUnitMADPDiscreteParameters::_m_useSparseBeliefs
private

Use sparse beliefs or the full representation.