MultiAgentDecisionProcess  Release 0.2.1
QFunctionJAOHInterface Class Reference

QFunctionJAOHInterface is a class that is an interface for heuristics of the shape Q(JointActionObservationHistory, JointAction) More...

#include <QFunctionJAOHInterface.h>

+ Inheritance diagram for QFunctionJAOHInterface:
+ Collaboration diagram for QFunctionJAOHInterface:

Public Member Functions

virtual std::string GetCacheFilename () const
 Gets the filename where the Qvalues should be stored.
virtual double GetQ (Index jaohI, Index jaI) const =0
 Returns Q(joint A-O history jaohI, jaI).
void Load ()
 Load the Qvalues from disk.
virtual void Load (std::string filename)
 Load the Qvalues from disk from a file named filename.
 QFunctionJAOHInterface ()
void Save () const
 Stores the Qvalues to disk.
virtual void Save (std::string filename) const
 Stores the Qvalues to disk in file named filename.
virtual ~QFunctionJAOHInterface ()
 Destructor.
- Public Member Functions inherited from QFunctionForDecPOMDPInterface
virtual const
PlanningUnitDecPOMDPDiscrete
GetPU () const =0
 QFunctionForDecPOMDPInterface ()
 (default) Constructor
virtual void SetPU (const PlanningUnitDecPOMDPDiscrete &pu)=0
virtual ~QFunctionForDecPOMDPInterface ()
 Destructor.
- Public Member Functions inherited from QFunctionInterface
virtual void Compute ()=0
virtual ~QFunctionInterface ()
 Compute the heuristic.

Detailed Description

QFunctionJAOHInterface is a class that is an interface for heuristics of the shape Q(JointActionObservationHistory, JointAction)

(As these type of heuristics specify only 1 reward, they are (implicitly) for Dec-POMDPs only.)

Definition at line 46 of file QFunctionJAOHInterface.h.

Constructor & Destructor Documentation

QFunctionJAOHInterface::QFunctionJAOHInterface ( )
inline

Definition at line 54 of file QFunctionJAOHInterface.h.

virtual QFunctionJAOHInterface::~QFunctionJAOHInterface ( )
inlinevirtual

Destructor.

there is a (big) chance that we will call delete base_class_pointer where base_class_pointer actually points to a derived object. To make sure that the derived destructor is called, this destructor is declared virtual.

Definition at line 60 of file QFunctionJAOHInterface.h.

Member Function Documentation

virtual std::string QFunctionJAOHInterface::GetCacheFilename ( ) const
inlinevirtual

Gets the filename where the Qvalues should be stored.

Definition at line 84 of file QFunctionJAOHInterface.h.

Referenced by QFunctionJAOH::ComputeWithCachedQValues(), Load(), and Save().

virtual double QFunctionJAOHInterface::GetQ ( Index  jaohI,
Index  jaI 
) const
pure virtual

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

Implemented in QMDP, and QFunctionJAOHTree.

Referenced by GeneralizedMAAStarPlannerForDecPOMDPDiscrete::GetHeuristicQ(), and BayesianGameForDecPOMDPStage::Initialize().

void QFunctionJAOHInterface::Load ( )

Load the Qvalues from disk.

Definition at line 36 of file QFunctionJAOHInterface.cpp.

References GetCacheFilename().

virtual void QFunctionJAOHInterface::Load ( std::string  filename)
inlinevirtual

Load the Qvalues from disk from a file named filename.

Reimplemented in QMDP, and QFunctionJAOHTree.

Definition at line 75 of file QFunctionJAOHInterface.h.

void QFunctionJAOHInterface::Save ( ) const

Stores the Qvalues to disk.

Definition at line 31 of file QFunctionJAOHInterface.cpp.

References GetCacheFilename().

virtual void QFunctionJAOHInterface::Save ( std::string  filename) const
inlinevirtual

Stores the Qvalues to disk in file named filename.

Reimplemented in QMDP, and QFunctionJAOHTree.

Definition at line 80 of file QFunctionJAOHInterface.h.


The documentation for this class was generated from the following files: