MultiAgentDecisionProcess
QMonahanBG Class Reference

QMonahanBG implements a QFunctionJAOH using MonahanBGPlanner. More...

#include <QMonahanBG.h>

Inheritance diagram for QMonahanBG:
[legend]

Public Member Functions

void Compute ()
 Compute the heuristic. More...
 
MonahanBGPlannerGetPlanner ()
 
double GetQ (Index jaohI, Index jaI) const
 Returns Q(joint A-O history jaohI, jaI). More...
 
 QMonahanBG (const PlanningUnitDecPOMDPDiscrete *pu, bool doIncPrune=true)
 (default) Constructor More...
 
 QMonahanBG (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...
 
 ~QMonahanBG ()
 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

MonahanBGPlanner_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

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

(default) Constructor

References _m_p.

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

References _m_p.

QMonahanBG::~QMonahanBG ( )

Destructor.

References _m_p.

Member Function Documentation

void QMonahanBG::Compute ( )
virtual

Compute the heuristic.

Implements QFunctionInterface.

References _m_p, and MonahanPlanner::Plan().

void QMonahanBG::DeInitialize ( )
inlineprivate
MonahanBGPlanner* QMonahanBG::GetPlanner ( )
inline
double QMonahanBG::GetQ ( Index  jaohI,
Index  jaI 
) const
virtual

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

Implements QFunctionJAOHInterface.

References _m_p, and MonahanPlanner::GetQ().

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

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

Implements QFunctionInterface.

Member Data Documentation

MonahanBGPlanner* QMonahanBG::_m_p
private

Referenced by Compute(), GetQ(), QMonahanBG(), and ~QMonahanBG().