MultiAgentDecisionProcess
|
QFunctionInterface is an abstract class for all Q-Functions. More...
#include <QFunctionInterface.h>
Public Member Functions | |
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 std::string | GetCacheFilename () const =0 |
Gets the filename where the Qvalues should be stored. 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 () |
QFunctionInterface is an abstract class for all Q-Functions.
|
inlinevirtual |
|
pure virtual |
Compute the heuristic.
Implemented in QAV< P >, QAV< PerseusBGPlanner >, QAV< PerseusBGNSPlanner >, QAV< PerseusPOMDPPlanner >, QHybrid, QFunctionJAOHTree, QMDP, QAlphaVector, FactoredQLastTimeStepOrElse, FactoredQLastTimeStepOrQBG, FactoredQLastTimeStepOrQMDP, FactoredQLastTimeStepOrQPOMDP, QMonahanBG, QMonahanPOMDP, and QTreeIncPruneBG.
Referenced by QHybrid::Compute(), and QFunctionJAOH::ComputeWithCachedQValues().
|
pure virtual |
Compute Qvalue function, while caching the Qvalues to disk.
Before computing them, the function checks whether the Qvalues have been computed before, and if so, loads them from disk. If not, it computes them, and afterwards saves them for re-use. This behavior can be changed by settings computeIfNotCached to false, in which case an Exception will be thrown if the Q function has not been previously stored on disk.
Implemented in QFunctionForFactoredDecPOMDP, QHybrid, QFunctionJAOH, and QFunctionJointBelief.
|
pure virtual |
Gets the filename where the Qvalues should be stored.
Implemented in QFunctionForFactoredDecPOMDP, and QFunctionForDecPOMDP.
Referenced by ArgumentUtils::GetHybridQheuristicFromArgs(), Load(), and Save().
|
inlinevirtual |
Load the Qvalues from disk.
References GetCacheFilename(), and Load().
Referenced by QHybrid::ComputeWithCachedQValues(), Load(), and QHybrid::Load().
|
pure virtual |
Load the Qvalues from disk from a file named filename.
Implemented in QAV< P >, QAV< PerseusBGPlanner >, QAV< PerseusBGNSPlanner >, QAV< PerseusPOMDPPlanner >, QMDP, QFunctionForFactoredDecPOMDP, QHybrid, QFunctionJAOHTree, and QFunctionJointBelief.
|
inlinevirtual |
Stores the Qvalues to disk.
References GetCacheFilename(), and Save().
Referenced by QHybrid::ComputeWithCachedQValues(), Save(), and QHybrid::Save().
|
pure virtual |
Stores the Qvalues to disk in file named filename.
Implemented in QAV< P >, QAV< PerseusBGPlanner >, QAV< PerseusBGNSPlanner >, QAV< PerseusPOMDPPlanner >, QMDP, QFunctionForFactoredDecPOMDP, QHybrid, QFunctionJAOHTree, and QFunctionJointBelief.
|
pure virtual |
Returns a short description of the heuristic, can be used for constructing filenames.
Implemented in QAV< P >, QAV< PerseusBGPlanner >, QAV< PerseusBGNSPlanner >, QAV< PerseusPOMDPPlanner >, QAlphaVector, QMDP, QHybrid, QBG, FactoredQLastTimeStepOrQBG, FactoredQLastTimeStepOrQMDP, FactoredQLastTimeStepOrQPOMDP, QMonahanBG, QMonahanPOMDP, QPOMDP, and QTreeIncPruneBG.
Referenced by ArgumentUtils::GetQheuristicFromArgs(), and QHybrid::SoftPrintBrief().