MultiAgentDecisionProcess
QFunctionJointBelief Class Reference

QFunctionJointBelief represents a Q-function that operates on joint beliefs. More...

#include <QFunctionJointBelief.h>

Inheritance diagram for QFunctionJointBelief:
[legend]

Public Member Functions

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
virtual double GetQ (const JointBeliefInterface &b, Index jaI) const =0
 Returns Q(b, jaI). More...
 
virtual double GetQ (const JointBeliefInterface &b, Index time_step, Index jaI) const =0
 Returns Q(b, jaI) for a particular time_step. More...
 
 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 Compute ()=0
 Compute the heuristic. More...
 
virtual void Load ()
 Load the Qvalues from disk. More...
 
virtual void Save () const
 Stores the Qvalues to disk. More...
 
virtual std::string SoftPrintBrief () const =0
 Returns a short description of the heuristic, can be used for constructing filenames. 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)
 

Detailed Description

QFunctionJointBelief represents a Q-function that operates on joint beliefs.

Constructor & Destructor Documentation

QFunctionJointBelief::QFunctionJointBelief ( const PlanningUnitDecPOMDPDiscrete pu)
inline

(default) Constructor

QFunctionJointBelief::QFunctionJointBelief ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu)
inline
virtual QFunctionJointBelief::~QFunctionJointBelief ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void QFunctionJointBelief::ComputeWithCachedQValues ( bool  computeIfNotCached = true)
inlinevirtual

Compute Qvalue function, while caching the Qvalues to disk.

Before computing them, the function checks whether the Qvalues have been computed before, and if so, loads them from disk. If not, it computes them, and afterwards saves them for re-use. This behavior can be changed by settings computeIfNotCached to false, in which case an Exception will be thrown if the Q function has not been previously stored on disk.

Implements QFunctionInterface.

double QFunctionJointBelief::GetQ ( Index  jaohI,
Index  jaI 
) const
virtual void QFunctionJointBelief::Load ( const std::string &  filename)
inlinevirtual

Load the Qvalues from disk from a file named filename.

Implements QFunctionInterface.

Reimplemented in QAV< P >, QAV< PerseusBGPlanner >, QAV< PerseusBGNSPlanner >, and QAV< PerseusPOMDPPlanner >.

virtual void QFunctionJointBelief::Save ( const std::string &  filename) const
inlinevirtual

Stores the Qvalues to disk in file named filename.

Implements QFunctionInterface.

Reimplemented in QAV< P >, QAV< PerseusBGPlanner >, QAV< PerseusBGNSPlanner >, and QAV< PerseusPOMDPPlanner >.