MultiAgentDecisionProcess
QFunctionForDecPOMDP Class Reference

QFunctionForDecPOMDP is a class that represents a Q function for a Dec-POMDP. More...

#include <QFunctionForDecPOMDP.h>

Inheritance diagram for QFunctionForDecPOMDP:
[legend]

Public Member Functions

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 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 ComputeWithCachedQValues (bool computeIfNotCached=true)=0
 Compute Qvalue function, while caching the Qvalues to disk. More...
 
virtual void Load ()
 Load the Qvalues from disk. More...
 
virtual void Load (const std::string &filename)=0
 Load the Qvalues from disk from a file named filename. More...
 
virtual void Save () const
 Stores the Qvalues to disk. More...
 
virtual void Save (const std::string &filename) const =0
 Stores the Qvalues to disk in file named filename. More...
 
virtual std::string SoftPrintBrief () const =0
 Returns a short description of the heuristic, can be used for constructing filenames. More...
 
virtual ~QFunctionInterface ()
 

Private Attributes

const
PlanningUnitDecPOMDPDiscrete
_m_pu
 
boost::shared_ptr< const
PlanningUnitDecPOMDPDiscrete
_m_puShared
 

Detailed Description

QFunctionForDecPOMDP is a class that represents a Q function for a Dec-POMDP.

This is a base class that only stores a pointer to the Dec-POMDP planning unit.

Constructor & Destructor Documentation

QFunctionForDecPOMDP::QFunctionForDecPOMDP ( const PlanningUnitDecPOMDPDiscrete pu)
inline

(default) Constructor

QFunctionForDecPOMDP::QFunctionForDecPOMDP ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu)
inline

Member Function Documentation

string QFunctionForDecPOMDP::GetCacheFilename ( ) const
virtual

Gets the filename where the Qvalues should be stored.

Implements QFunctionInterface.

References directories::MADPGetResultsDir().

Referenced by QFunctionJAOH::ComputeWithCachedQValues(), and QHybrid::ComputeWithCachedQValues().

void QFunctionForDecPOMDP::SetPU ( const PlanningUnitDecPOMDPDiscrete pu)
inlinevirtual

Implements QFunctionForDecPOMDPInterface.

Reimplemented in QMDP, and QFunctionJAOHTree.

Referenced by QFunctionJAOHTree::SetPU(), and QMDP::SetPU().

void QFunctionForDecPOMDP::SetPU ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu)
inlinevirtual

Implements QFunctionForDecPOMDPInterface.

Reimplemented in QMDP, and QFunctionJAOHTree.

Member Data Documentation

const PlanningUnitDecPOMDPDiscrete* QFunctionForDecPOMDP::_m_pu
private
boost::shared_ptr<const PlanningUnitDecPOMDPDiscrete> QFunctionForDecPOMDP::_m_puShared
private