HOG2
|
#include <IncrementalBFS.h>
Public Member Functions | |
void | GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< state > &thePath) |
void | GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< action > &thePath) |
bool | DoSingleSearchStep (SearchEnvironment< state, action > *env, state from, state to, std::vector< state > &thePath) |
uint64_t | GetNodesExpanded () |
uint64_t | GetNodesTouched () |
void | ResetNodeCount () |
void | Reset () |
void | OpenGLDraw () |
void | Draw (Graphics::Display &display) const |
Private Member Functions | |
bool | DoIteration (SearchEnvironment< state, action > *env, state parent, state currState, std::vector< state > &thePath, double bound, double g) |
bool | DoIteration (SearchEnvironment< state, action > *env, action forbiddenAction, state &currState, std::vector< action > &thePath, double bound, double g) |
Private Attributes | |
unsigned long | nodesExpanded |
unsigned long | nodesTouched |
std::deque< std::pair< state, int > > | history |
state | goal |
SearchEnvironment< state, action > * | env |
std::vector< state > | succ |
Definition at line 15 of file IncrementalBFS.h.
|
private |
|
private |
bool IncrementalBFS< state, action >::DoSingleSearchStep | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< state > & | thePath | ||
) |
Definition at line 61 of file IncrementalBFS.h.
References SearchEnvironment< state, action >::GetSuccessors(), and SearchEnvironment< state, action >::GoalTest().
void IncrementalBFS< state, action >::Draw | ( | Graphics::Display & | display | ) | const |
Definition at line 93 of file IncrementalBFS.h.
|
inline |
Definition at line 23 of file IncrementalBFS.h.
References IncrementalBFS< state, action >::nodesExpanded.
|
inline |
Definition at line 24 of file IncrementalBFS.h.
References IncrementalBFS< state, action >::nodesTouched.
void IncrementalBFS< state, action >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< action > & | thePath | ||
) |
Definition at line 54 of file IncrementalBFS.h.
void IncrementalBFS< state, action >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< state > & | thePath | ||
) |
Definition at line 46 of file IncrementalBFS.h.
void IncrementalBFS< state, action >::OpenGLDraw |
Definition at line 86 of file IncrementalBFS.h.
|
inline |
Definition at line 26 of file IncrementalBFS.h.
References IncrementalBFS< state, action >::history.
|
inline |
Definition at line 25 of file IncrementalBFS.h.
References IncrementalBFS< state, action >::nodesExpanded, and IncrementalBFS< state, action >::nodesTouched.
|
private |
Definition at line 41 of file IncrementalBFS.h.
|
private |
Definition at line 40 of file IncrementalBFS.h.
|
private |
Definition at line 39 of file IncrementalBFS.h.
Referenced by IncrementalBFS< state, action >::Reset().
|
private |
Definition at line 30 of file IncrementalBFS.h.
Referenced by IncrementalBFS< state, action >::GetNodesExpanded(), and IncrementalBFS< state, action >::ResetNodeCount().
|
private |
Definition at line 30 of file IncrementalBFS.h.
Referenced by IncrementalBFS< state, action >::GetNodesTouched(), and IncrementalBFS< state, action >::ResetNodeCount().
|
private |
Definition at line 42 of file IncrementalBFS.h.