HOG2
|
#include <IncrementalDFID.h>
Public Member Functions | |
IncrementalDFID (int initialBound=0) | |
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 |
state | GetCurrentState () 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::vector< std::pair< state, int > > | history |
std::vector< state > | path |
state | goal |
int | bound |
int | initialBound |
SearchEnvironment< state, action > * | env |
std::vector< state > | succ |
Definition at line 13 of file IncrementalDFID.h.
|
inline |
Definition at line 15 of file IncrementalDFID.h.
|
private |
|
private |
bool IncrementalDFID< state, action >::DoSingleSearchStep | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< state > & | thePath | ||
) |
Definition at line 65 of file IncrementalDFID.h.
References SearchEnvironment< state, action >::GetSuccessors(), and SearchEnvironment< state, action >::GoalTest().
void IncrementalDFID< state, action >::Draw | ( | Graphics::Display & | display | ) | const |
Definition at line 119 of file IncrementalDFID.h.
|
inline |
Definition at line 28 of file IncrementalDFID.h.
|
inline |
Definition at line 22 of file IncrementalDFID.h.
References IncrementalDFID< state, action >::nodesExpanded.
|
inline |
Definition at line 23 of file IncrementalDFID.h.
References IncrementalDFID< state, action >::nodesTouched.
void IncrementalDFID< state, action >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< action > & | thePath | ||
) |
Definition at line 58 of file IncrementalDFID.h.
void IncrementalDFID< state, action >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< state > & | thePath | ||
) |
Definition at line 50 of file IncrementalDFID.h.
void IncrementalDFID< state, action >::OpenGLDraw |
Definition at line 110 of file IncrementalDFID.h.
|
inline |
Definition at line 25 of file IncrementalDFID.h.
References IncrementalDFID< state, action >::bound, IncrementalDFID< state, action >::history, and IncrementalDFID< state, action >::initialBound.
|
inline |
Definition at line 24 of file IncrementalDFID.h.
References IncrementalDFID< state, action >::nodesExpanded, and IncrementalDFID< state, action >::nodesTouched.
|
private |
Definition at line 42 of file IncrementalDFID.h.
Referenced by IncrementalDFID< state, action >::Reset().
|
private |
Definition at line 45 of file IncrementalDFID.h.
|
private |
Definition at line 41 of file IncrementalDFID.h.
|
private |
Definition at line 39 of file IncrementalDFID.h.
Referenced by IncrementalDFID< state, action >::Reset().
|
private |
Definition at line 43 of file IncrementalDFID.h.
Referenced by IncrementalDFID< state, action >::Reset().
|
private |
Definition at line 30 of file IncrementalDFID.h.
Referenced by IncrementalDFID< state, action >::GetNodesExpanded(), and IncrementalDFID< state, action >::ResetNodeCount().
|
private |
Definition at line 30 of file IncrementalDFID.h.
Referenced by IncrementalDFID< state, action >::GetNodesTouched(), and IncrementalDFID< state, action >::ResetNodeCount().
|
private |
Definition at line 40 of file IncrementalDFID.h.
|
private |
Definition at line 46 of file IncrementalDFID.h.