HOG2
|
A search algorithm which combines direction maps with abstraction. More...
#include <AbstractWeightedSearchAlgorithm.h>
Public Member Functions | |
AbstractWeightedSearchAlgorithm () | |
virtual | ~AbstractWeightedSearchAlgorithm () |
bool | InitializeSearch (environment *env, const state &from, const state &to, std::vector< state > &thePath) |
virtual void | GetPath (environment *env, const state &from, const state &to, std::vector< state > &thePath) |
virtual void | GetPath (environment *, const state &, const state &, std::vector< action > &) |
virtual const char * | GetName () |
virtual uint64_t | GetNodesExpanded () const |
virtual uint64_t | GetNodesTouched () const |
virtual void | LogFinalStats (StatCollection *) |
void | SetWeightedEnvironment (WeightedMap2DEnvironment *w) |
Set the weighted environment This must be set for the algorithm to work. More... | |
void | SetSkipAbsNode (double pathPerc) |
Set skip abstract nodes, and partial path refinement If set to 'true', the algorithm plans to the one-after-next abstract node, and cuts off the path after pathPerc. More... | |
Public Member Functions inherited from GenericSearchAlgorithm< state, action, environment > | |
GenericSearchAlgorithm () | |
virtual | ~GenericSearchAlgorithm () |
virtual bool | DoSingleSearchStep (std::vector< state > &thePath) |
virtual void | OpenGLDraw () const |
virtual void | OpenGLDraw (const environment *env) const |
Private Attributes | |
uint64_t | nodesExpanded |
uint64_t | nodesTouched |
WeightedMap2DEnvironment * | wenv |
bool | partialSkip |
double | refinePart |
A search algorithm which combines direction maps with abstraction.
This algorithm requires an abstraction environment with a MapSectorAbstraction as well as a WeightedMap2DEnvironment.
Definition at line 320 of file AbstractWeightedSearchAlgorithm.h.
AbstractWeightedSearchAlgorithm< state, action, environment >::AbstractWeightedSearchAlgorithm |
Definition at line 355 of file AbstractWeightedSearchAlgorithm.h.
|
virtual |
Definition at line 361 of file AbstractWeightedSearchAlgorithm.h.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 329 of file AbstractWeightedSearchAlgorithm.h.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 330 of file AbstractWeightedSearchAlgorithm.h.
References AbstractWeightedSearchAlgorithm< state, action, environment >::nodesExpanded.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 331 of file AbstractWeightedSearchAlgorithm.h.
References AbstractWeightedSearchAlgorithm< state, action, environment >::nodesTouched.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 328 of file AbstractWeightedSearchAlgorithm.h.
|
virtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 375 of file AbstractWeightedSearchAlgorithm.h.
References node::GetLabelL(), Graph::GetNode(), TemplateAStar< state, action, environment, openList >::GetNodesExpanded(), TemplateAStar< state, action, environment, openList >::GetNodesTouched(), node::GetNum(), TemplateAStar< state, action, environment, openList >::GetPath(), GraphEnvironment::GetSuccessors(), GraphAbstractionConstants::kFirstData, GraphAbstractionConstants::kParent, AbsGraphEnvironment::SetAbsGraph(), GraphEnvironment::SetDirected(), AbsGraphEnvironment::SetFindExactGoal(), AbsGraphEnvironment::SetNoDummyGoal(), AbsGraphEnvironment::SetWeightedEnvironment(), xyLoc::x, and xyLoc::y.
|
virtual |
Reimplemented from GenericSearchAlgorithm< state, action, environment >.
Definition at line 367 of file AbstractWeightedSearchAlgorithm.h.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 332 of file AbstractWeightedSearchAlgorithm.h.
|
inline |
Set skip abstract nodes, and partial path refinement If set to 'true', the algorithm plans to the one-after-next abstract node, and cuts off the path after pathPerc.
0 < pathPerc <= 1
Definition at line 343 of file AbstractWeightedSearchAlgorithm.h.
References AbstractWeightedSearchAlgorithm< state, action, environment >::partialSkip, and AbstractWeightedSearchAlgorithm< state, action, environment >::refinePart.
|
inline |
Set the weighted environment This must be set for the algorithm to work.
Definition at line 337 of file AbstractWeightedSearchAlgorithm.h.
References AbstractWeightedSearchAlgorithm< state, action, environment >::wenv.
|
private |
Definition at line 346 of file AbstractWeightedSearchAlgorithm.h.
Referenced by AbstractWeightedSearchAlgorithm< state, action, environment >::GetNodesExpanded().
|
private |
Definition at line 347 of file AbstractWeightedSearchAlgorithm.h.
Referenced by AbstractWeightedSearchAlgorithm< state, action, environment >::GetNodesTouched().
|
private |
Definition at line 350 of file AbstractWeightedSearchAlgorithm.h.
Referenced by AbstractWeightedSearchAlgorithm< state, action, environment >::SetSkipAbsNode().
|
private |
Definition at line 351 of file AbstractWeightedSearchAlgorithm.h.
Referenced by AbstractWeightedSearchAlgorithm< state, action, environment >::SetSkipAbsNode().
|
private |
Definition at line 348 of file AbstractWeightedSearchAlgorithm.h.
Referenced by AbstractWeightedSearchAlgorithm< state, action, environment >::SetWeightedEnvironment().