MultiAgentDecisionProcess
Release 0.2.1
|
QFunctionJAOHInterface is a class that is an interface for heuristics of the shape Q(JointActionObservationHistory, JointAction) More...
#include <QFunctionJAOHInterface.h>
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. | |
![]() | |
virtual const PlanningUnitDecPOMDPDiscrete * | GetPU () const =0 |
QFunctionForDecPOMDPInterface () | |
(default) Constructor | |
virtual void | SetPU (const PlanningUnitDecPOMDPDiscrete &pu)=0 |
virtual | ~QFunctionForDecPOMDPInterface () |
Destructor. | |
![]() | |
virtual void | Compute ()=0 |
virtual | ~QFunctionInterface () |
Compute the heuristic. |
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.
|
inline |
Definition at line 54 of file QFunctionJAOHInterface.h.
|
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.
|
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().
|
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().
|
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().
|
inlinevirtual |
Stores the Qvalues to disk in file named filename.
Reimplemented in QMDP, and QFunctionJAOHTree.
Definition at line 80 of file QFunctionJAOHInterface.h.