MultiAgentDecisionProcess
QPOMDP Class Reference

QPOMDP is a class that represents the QPOMDP heuristic. More...

#include <QPOMDP.h>

Inheritance diagram for QPOMDP:
[legend]

Public Member Functions

 QPOMDP (const PlanningUnitDecPOMDPDiscrete *pu)
 (default) Constructor More...
 
 QPOMDP (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
std::string SoftPrintBrief () const
 Returns a short description of the heuristic, can be used for constructing filenames. More...
 
 ~QPOMDP ()
 
- Public Member Functions inherited from QFunctionJAOHTree
void Compute ()
 Compute the heuristic. More...
 
double GetQ (Index jaohI, Index jaI) const
 Return the Qvalue for JointActionObservationHistory Index jaohI and JointAction index jaI. More...
 
void Load (const std::string &filename)
 Load the Qvalues from disk from a file named filename. More...
 
 QFunctionJAOHTree (const PlanningUnitDecPOMDPDiscrete *pu)
 Default constructor, requires a planning unit. More...
 
 QFunctionJAOHTree (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
void Save (const std::string &filename) const
 Stores the Qvalues to disk in file named filename. More...
 
void SetPU (const PlanningUnitDecPOMDPDiscrete *pu)
 
void SetPU (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
virtual ~QFunctionJAOHTree ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJAOH
virtual void ComputeWithCachedQValues (bool computeIfNotCached=true)
 Compute Qvalue function, while caching the Qvalues to disk. More...
 
 QFunctionJAOH (const PlanningUnitDecPOMDPDiscrete *pu)
 Default constructor, requires a planning unit. More...
 
 QFunctionJAOH (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
virtual ~QFunctionJAOH ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJAOHInterface
 QFunctionJAOHInterface ()
 
virtual ~QFunctionJAOHInterface ()
 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)
 

Private Member Functions

double ComputeRecursively (size_t time_step, LIndex joahI, Index lastJAI)
 Recursively compute the heuristic. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QFunctionJAOH
virtual void ComputeWithCachedQValues (const std::string &filenameCache, bool computeIfNotCached=true)
 See ComputeWithCachedQValues(), this version accepts a filename. More...
 
- Protected Attributes inherited from QFunctionJAOH
QTable _m_QValues
 Table in which the Qvalues are stored. More...
 

Detailed Description

QPOMDP is a class that represents the QPOMDP heuristic.

It is associated with a PlanningUnitDecPOMDPDiscrete which it uses for things as horizon, action-/observation(history) indices, etc.

Constructor & Destructor Documentation

QPOMDP::QPOMDP ( const PlanningUnitDecPOMDPDiscrete pu)

(default) Constructor

QPOMDP::QPOMDP ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu)
QPOMDP::~QPOMDP ( )

Member Function Documentation

std::string QPOMDP::SoftPrintBrief ( ) const
inlinevirtual

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

Implements QFunctionInterface.