|
| MM (double epsilon=1.0) |
|
virtual | ~MM () |
|
void | GetPath (environment *env, const state &from, const state &to, Heuristic< state > *forward, Heuristic< state > *backward, std::vector< state > &thePath) |
|
bool | InitializeSearch (environment *env, const state &from, const state &to, Heuristic< state > *forward, Heuristic< state > *backward, std::vector< state > &thePath) |
|
bool | DoSingleSearchStep (std::vector< state > &thePath) |
|
virtual const char * | GetName () |
|
void | ResetNodeCount () |
|
const int | GetNumForwardItems () |
|
const AStarOpenClosedData< state > & | GetForwardItem (unsigned int which) |
|
const int | GetNumBackwardItems () |
|
const AStarOpenClosedData< state > & | GetBackwardItem (unsigned int which) |
|
uint64_t | GetUniqueNodesExpanded () const |
|
uint64_t | GetNodesExpanded () const |
|
uint64_t | GetNodesTouched () const |
|
uint64_t | GetNecessaryExpansions () const |
|
std::string | SVGDraw () const |
|
void | OpenGLDraw () const |
|
void | PrintHDist () |
|
void | PrintOpenStats (std::unordered_map< std::pair< double, double >, int > &s) |
|
|
void | ExtractPathToGoal (state &node, std::vector< state > &thePath) |
|
void | ExtractPathToGoalFromID (uint64_t node, std::vector< state > &thePath) |
|
void | ExtractPathToStart (state &node, std::vector< state > &thePath) |
|
void | ExtractPathToStartFromID (uint64_t node, std::vector< state > &thePath) |
|
void | OpenGLDraw (const priorityQueue &queue) const |
|
std::string | SVGDraw (const priorityQueue &queue) const |
|
void | Expand (priorityQueue ¤t, priorityQueue &opposite, Heuristic< state > *heuristic, const state &target, std::unordered_map< std::pair< double, double >, int > &count) |
|
template<class state, class action, class environment, class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
class MM< state, action, environment, priorityQueue >
Definition at line 45 of file MM.h.
template<class state , class action , class environment , class priorityQueue >
void MM< state, action, environment, priorityQueue >::Expand |
( |
priorityQueue & |
current, |
|
|
priorityQueue & |
opposite, |
|
|
Heuristic< state > * |
heuristic, |
|
|
const state & |
target, |
|
|
std::unordered_map< std::pair< double, double >, int > & |
count |
|
) |
| |
|
private |
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::ExtractPathToGoal |
( |
state & |
node, |
|
|
std::vector< state > & |
thePath |
|
) |
| |
|
inlineprivate |
Definition at line 110 of file MM.h.
References MM< state, action, environment, priorityQueue >::backwardQueue, MM< state, action, environment, priorityQueue >::env, and MM< state, action, environment, priorityQueue >::ExtractPathToGoalFromID().
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::ExtractPathToGoalFromID |
( |
uint64_t |
node, |
|
|
std::vector< state > & |
thePath |
|
) |
| |
|
inlineprivate |
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::ExtractPathToStart |
( |
state & |
node, |
|
|
std::vector< state > & |
thePath |
|
) |
| |
|
inlineprivate |
Definition at line 121 of file MM.h.
References MM< state, action, environment, priorityQueue >::env, MM< state, action, environment, priorityQueue >::ExtractPathToStartFromID(), and MM< state, action, environment, priorityQueue >::forwardQueue.
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::ExtractPathToStartFromID |
( |
uint64_t |
node, |
|
|
std::vector< state > & |
thePath |
|
) |
| |
|
inlineprivate |
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::PrintHDist |
( |
| ) |
|
|
inline |
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::PrintOpenStats |
( |
std::unordered_map< std::pair< double, double >, int > & |
s | ) |
|
|
inline |
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
void MM< state, action, environment, priorityQueue >::ResetNodeCount |
( |
| ) |
|
|
inline |
Definition at line 57 of file MM.h.
References MM< state, action, environment, priorityQueue >::nodesExpanded, MM< state, action, environment, priorityQueue >::nodesTouched, and MM< state, action, environment, priorityQueue >::uniqueNodesExpanded.
Referenced by MM< state, action, environment, priorityQueue >::MM().
template<class state , class action , class environment , class priorityQueue = AStarOpenClosed<state, MMCompare<state>>>
std::unordered_map<std::pair<double, double>, int> MM< state, action, environment, priorityQueue >::dist |
|
private |