MultiAgentDecisionProcess
QMonahanPOMDP Class Reference

QMonahanPOMDP implements a QFunctionJAOH using MonahanPOMDPPlanner. More...

#include <QMonahanPOMDP.h>

Inheritance diagram for QMonahanPOMDP:
[legend]

Public Member Functions

void Compute ()
 Compute the heuristic. More...
 
double GetQ (Index jaohI, Index jaI) const
 Returns Q(joint A-O history jaohI, jaI). More...
 
 QMonahanPOMDP (const PlanningUnitDecPOMDPDiscrete *pu, bool doIncPrune=true)
 (default) Constructor More...
 
 QMonahanPOMDP (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu, bool doIncPrune=true)
 
std::string SoftPrintBrief () const
 Returns a short description of the heuristic, can be used for constructing filenames. More...
 
 ~QMonahanPOMDP ()
 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 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 ~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)
 

Private Member Functions

void DeInitialize ()
 
void Initialize ()
 

Private Attributes

MonahanPOMDPPlanner_m_p
 

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

Constructor & Destructor Documentation

QMonahanPOMDP::QMonahanPOMDP ( const PlanningUnitDecPOMDPDiscrete pu,
bool  doIncPrune = true 
)

(default) Constructor

References _m_p.

QMonahanPOMDP::QMonahanPOMDP ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu,
bool  doIncPrune = true 
)

References _m_p.

QMonahanPOMDP::~QMonahanPOMDP ( )

Destructor.

References _m_p.

Member Function Documentation

void QMonahanPOMDP::Compute ( )
virtual

Compute the heuristic.

Implements QFunctionInterface.

References _m_p, and MonahanPlanner::Plan().

void QMonahanPOMDP::DeInitialize ( )
inlineprivate
double QMonahanPOMDP::GetQ ( Index  jaohI,
Index  jaI 
) const
virtual

Returns Q(joint A-O history jaohI, jaI).

Implements QFunctionJAOHInterface.

References _m_p, and MonahanPlanner::GetQ().

void QMonahanPOMDP::Initialize ( )
inlineprivate
std::string QMonahanPOMDP::SoftPrintBrief ( ) const
inlinevirtual

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

Implements QFunctionInterface.

Member Data Documentation

MonahanPOMDPPlanner* QMonahanPOMDP::_m_p
private