MultiAgentDecisionProcess
QAlphaVector Class Reference

QAlphaVector implements a QFunctionJointBelief using an alpha-vector based value function loaded from disk. More...

#include <QAlphaVector.h>

Inheritance diagram for QAlphaVector:
[legend]

Public Member Functions

void Compute ()
 Compute the heuristic. More...
 
double GetQ (const JointBeliefInterface &b, Index jaI) const
 Returns Q(b, jaI). More...
 
double GetQ (const JointBeliefInterface &b, Index jaI, AlphaVector::BGPolicyIndex &betaMaxI) const
 
double GetQ (const JointBeliefInterface &b, Index t, Index jaI) const
 Returns Q(b, jaI) for a particular time_step. More...
 
double GetQ (const JointBeliefInterface &b, Index t, Index jaI, AlphaVector::BGPolicyIndex &betaMaxI) const
 
double GetQ (Index jaohI, Index jaI) const
 Returns Q(joint A-O history jaohI, jaI). More...
 
 QAlphaVector (const PlanningUnitDecPOMDPDiscrete *pu, const std::string &filename)
 (default) Constructor More...
 
 QAlphaVector (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu, const std::string &filename)
 
std::string SoftPrintBrief () const
 Returns a short description of the heuristic, can be used for constructing filenames. More...
 
 ~QAlphaVector ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJointBelief
virtual void ComputeWithCachedQValues (bool computeIfNotCached=true)
 Compute Qvalue function, while caching the Qvalues to disk. More...
 
double GetQ (Index jaohI, Index jaI) const
 Returns Q(jaohI, jaI). More...
 
virtual void Load (const std::string &filename)
 Load the Qvalues from disk from a file named filename. More...
 
 QFunctionJointBelief (const PlanningUnitDecPOMDPDiscrete *pu)
 (default) Constructor More...
 
 QFunctionJointBelief (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
virtual void Save (const std::string &filename) const
 Stores the Qvalues to disk in file named filename. More...
 
virtual ~QFunctionJointBelief ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJointBeliefInterface
 QFunctionJointBeliefInterface ()
 (default) Constructor More...
 
virtual ~QFunctionJointBeliefInterface ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionForDecPOMDPInterface
 QFunctionForDecPOMDPInterface ()
 (default) Constructor More...
 
virtual ~QFunctionForDecPOMDPInterface ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionInterface
virtual void Load ()
 Load the Qvalues from disk. More...
 
virtual void Save () const
 Stores the Qvalues to disk. More...
 
virtual ~QFunctionInterface ()
 
- Public Member Functions inherited from QFunctionForDecPOMDP
virtual std::string GetCacheFilename () const
 Gets the filename where the Qvalues should be stored. More...
 
const
PlanningUnitDecPOMDPDiscrete
GetPU () const
 
 QFunctionForDecPOMDP (const PlanningUnitDecPOMDPDiscrete *pu)
 (default) Constructor More...
 
 QFunctionForDecPOMDP (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
void SetPU (const PlanningUnitDecPOMDPDiscrete *pu)
 
void SetPU (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
- Public Member Functions inherited from QFunctionJAOHInterface
 QFunctionJAOHInterface ()
 
virtual ~QFunctionJAOHInterface ()
 Destructor. More...
 

Private Member Functions

void Initialize ()
 

Private Attributes

std::string _m_filename
 
QFunctionsDiscreteNonStationary _m_Q
 

Detailed Description

QAlphaVector implements a QFunctionJointBelief using an alpha-vector based value function loaded from disk.

Constructor & Destructor Documentation

QAlphaVector::QAlphaVector ( const PlanningUnitDecPOMDPDiscrete pu,
const std::string &  filename 
)
inline

(default) Constructor

References Initialize().

QAlphaVector::QAlphaVector ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu,
const std::string &  filename 
)
inline

References Initialize().

QAlphaVector::~QAlphaVector ( )
inline

Destructor.

Member Function Documentation

void QAlphaVector::Compute ( )
inlinevirtual

Compute the heuristic.

Implements QFunctionInterface.

double QAlphaVector::GetQ ( const JointBeliefInterface b,
Index  jaI 
) const
inlinevirtual

Returns Q(b, jaI).

Implements QFunctionJointBeliefInterface.

Referenced by GetQ().

double QAlphaVector::GetQ ( const JointBeliefInterface b,
Index  jaI,
AlphaVector::BGPolicyIndex betaMaxI 
) const
inline
double QAlphaVector::GetQ ( const JointBeliefInterface b,
Index  time_step,
Index  jaI 
) const
inlinevirtual

Returns Q(b, jaI) for a particular time_step.

Implements QFunctionJointBeliefInterface.

References BeliefValue::GetValue().

double QAlphaVector::GetQ ( const JointBeliefInterface b,
Index  t,
Index  jaI,
AlphaVector::BGPolicyIndex betaMaxI 
) const
inline
double QAlphaVector::GetQ ( Index  jaohI,
Index  jaI 
) const
inlinevirtual
std::string QAlphaVector::SoftPrintBrief ( ) const
inlinevirtual

Returns a short description of the heuristic, can be used for constructing filenames.

Implements QFunctionInterface.

Member Data Documentation

std::string QAlphaVector::_m_filename
private
QFunctionsDiscreteNonStationary QAlphaVector::_m_Q
private