HOG2
|
#include <LRTAStar.h>
Public Member Functions | |
LRTAStar () | |
virtual | ~LRTAStar (void) |
void | GetPath (environment *env, const state &from, const state &to, std::vector< state > &thePath) |
The core routine of LRTAStar – computes at most one-move path. More... | |
void | GetPath (environment *, const state &, const state &, std::vector< action > &) |
virtual const char * | GetName () |
void | SetHCost (environment *env, const state &where, const state &to, double val) |
double | HCost (environment *env, const state &from, const state &to) const |
virtual uint64_t | GetNodesExpanded () const |
virtual uint64_t | GetNodesTouched () const |
virtual void | LogFinalStats (StatCollection *s) |
double | GetAmountLearned () |
void | OpenGLDraw () const |
void | OpenGLDraw (const environment *env) const |
Public Member Functions inherited from GenericSearchAlgorithm< state, action, environment > | |
GenericSearchAlgorithm () | |
virtual | ~GenericSearchAlgorithm () |
virtual bool | InitializeSearch (environment *env, const state &from, const state &to, std::vector< state > &thePath) |
virtual bool | DoSingleSearchStep (std::vector< state > &thePath) |
Private Types | |
typedef std::unordered_map< uint64_t, learnedData< state >, Hash64 > | LearnedHeuristic |
Private Attributes | |
LearnedHeuristic | heur |
state | goal |
double | fAmountLearned |
uint64_t | nodesExpanded |
uint64_t | nodesTouched |
Definition at line 29 of file LRTAStar.h.
|
private |
Definition at line 67 of file LRTAStar.h.
|
inline |
Definition at line 31 of file LRTAStar.h.
References LRTAStar< state, action, environment >::fAmountLearned.
|
inlinevirtual |
Definition at line 33 of file LRTAStar.h.
|
inlinevirtual |
Implements LearningAlgorithm< state, action, environment >.
Definition at line 63 of file LRTAStar.h.
References LRTAStar< state, action, environment >::fAmountLearned.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 37 of file LRTAStar.h.
Referenced by LRTAStar< state, action, environment >::LogFinalStats().
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 56 of file LRTAStar.h.
References LRTAStar< state, action, environment >::nodesExpanded.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 57 of file LRTAStar.h.
References LRTAStar< state, action, environment >::nodesTouched.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 36 of file LRTAStar.h.
|
virtual |
The core routine of LRTAStar – computes at most one-move path.
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 77 of file LRTAStar.h.
References fequal(), fgreater(), and fless().
|
inline |
Definition at line 43 of file LRTAStar.h.
References LRTAStar< state, action, environment >::heur.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 58 of file LRTAStar.h.
References StatCollection::AddStat(), LRTAStar< state, action, environment >::fAmountLearned, and LRTAStar< state, action, environment >::GetName().
|
inlinevirtual |
Reimplemented from GenericSearchAlgorithm< state, action, environment >.
Definition at line 64 of file LRTAStar.h.
|
virtual |
Reimplemented from GenericSearchAlgorithm< state, action, environment >.
Definition at line 185 of file LRTAStar.h.
|
inline |
Definition at line 38 of file LRTAStar.h.
References LRTAStar< state, action, environment >::heur.
|
private |
Definition at line 71 of file LRTAStar.h.
Referenced by LRTAStar< state, action, environment >::GetAmountLearned(), LRTAStar< state, action, environment >::LogFinalStats(), and LRTAStar< state, action, environment >::LRTAStar().
|
private |
Definition at line 70 of file LRTAStar.h.
|
private |
Definition at line 69 of file LRTAStar.h.
Referenced by LRTAStar< state, action, environment >::HCost(), and LRTAStar< state, action, environment >::SetHCost().
|
private |
Definition at line 72 of file LRTAStar.h.
Referenced by LRTAStar< state, action, environment >::GetNodesExpanded().
|
private |
Definition at line 72 of file LRTAStar.h.
Referenced by LRTAStar< state, action, environment >::GetNodesTouched().