HOG2
|
#include <AStarDelay.h>
Public Member Functions | |
AStarDelay () | |
AStarDelay (int lev) | |
virtual | ~AStarDelay () |
void | GetPath (GraphEnvironment *env, Graph *_g, graphState from, graphState to, std::vector< graphState > &thePath) |
uint64_t | GetNodesExpanded () |
uint64_t | GetNodesTouched () |
uint64_t | GetNodesFirstExpanded () |
uint64_t | GetNodesMetaExpanded () |
uint64_t | GetNodesReopened () |
bool | InitializeSearch (GraphEnvironment *env, Graph *g, graphState from, graphState to, std::vector< graphState > &thePath) |
bool | DoSingleSearchStep (std::vector< graphState > &thePath) |
void | ExtractPathToStart (graphState goalNode, std::vector< graphState > &thePath) |
void | OpenGLDraw () const |
void | DrawText (double x, double y, double z, float r, float g, float b, char *str) |
void | DrawEdge (unsigned int from, unsigned int to, double weight) |
double | GetSolutionCost () |
const char * | GetName () |
int | GetSolutionEdges () |
void | ReversePropX1 (AStarDelayUtil::SearchNode &topNode) |
void | Broadcast (int level, int levelcount) |
Public Member Functions inherited from GraphAlgorithm | |
virtual | ~GraphAlgorithm () |
Public Attributes | |
double | solutionCost |
int | verID |
int | fD |
long | metaexpanded |
AStarDelayUtil::PQueue | openQueue |
AStarDelayUtil::NodeLookupTable | closedList |
uint64_t | closedSize |
Private Member Functions | |
bool | DoSingleStep (AStarDelayUtil::SearchNode &topNode, std::vector< graphState > &thePath) |
double | HandleNeighbor (graphState neighbor, AStarDelayUtil::SearchNode &topNode) |
double | HandleNeighborX (graphState neighbor, AStarDelayUtil::SearchNode &topNode) |
double | UpdateDelayedNode (graphState neighbor, AStarDelayUtil::SearchNode &topNode) |
double | UpdateClosedNode (graphState neighbor, AStarDelayUtil::SearchNode &topNode) |
double | UpdateOpenNode (graphState neighbor, AStarDelayUtil::SearchNode &topNode) |
double | AddNewNode (graphState neighbor, AStarDelayUtil::SearchNode &topNode) |
double | fDelay (double N) |
Private Attributes | |
double | F |
double | nodesExpanded |
uint64_t | nodesTouched |
uint64_t | nodesReopened |
std::vector< graphState > | neighbors |
graphState | goal |
graphState | start |
GraphEnvironment * | env |
AStarDelayUtil::GQueue | delayQueue |
AStarDelayUtil::GQueue | fQueue |
Graph * | g |
int | pathSize |
int | bpmxLevel |
std::deque< graphState > | fifo |
std::vector< graphState > | myneighbors |
Definition at line 121 of file AStarDelay.h.
|
inline |
Definition at line 123 of file AStarDelay.h.
|
inline |
Definition at line 124 of file AStarDelay.h.
|
inlinevirtual |
Definition at line 125 of file AStarDelay.h.
|
private |
Definition at line 523 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, AStarDelayUtil::SearchNode::gCost, AStarDelayUtil::SearchNode::isGoal, and max.
void AStarDelay::Broadcast | ( | int | level, |
int | levelcount | ||
) |
Definition at line 321 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, fgreater(), and AStarDelayUtil::SearchNode::gCost.
|
virtual |
fgreater(delayQueue.top().fCost, openQueue.top().fCost)
fless(topNode.fCost, openQueue.top().fCost)
cmpkey(delayQueue.top() , openQueue.top())
Implements GraphAlgorithm.
Definition at line 83 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::fCost, fgreater(), and fless().
|
private |
Definition at line 163 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, fless(), AStarDelayUtil::SearchNode::gCost, and verbose.
void AStarDelay::DrawEdge | ( | unsigned int | from, |
unsigned int | to, | ||
double | weight | ||
) |
Definition at line 776 of file AStarDelay.cpp.
References DrawText(), node::GetLabelF(), GraphAbstractionConstants::kXCoordinate, GraphAbstractionConstants::kYCoordinate, and GraphAbstractionConstants::kZCoordinate.
void AStarDelay::DrawText | ( | double | x, |
double | y, | ||
double | z, | ||
float | r, | ||
float | g, | ||
float | b, | ||
char * | str | ||
) |
Definition at line 755 of file AStarDelay.cpp.
void AStarDelay::ExtractPathToStart | ( | graphState | goalNode, |
std::vector< graphState > & | thePath | ||
) |
Definition at line 646 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::gCost, and AStarDelayUtil::SearchNode::prevNode.
|
inlineprivate |
|
inlinevirtual |
Implements GraphAlgorithm.
Definition at line 145 of file AStarDelay.h.
|
inlinevirtual |
|
inline |
Definition at line 131 of file AStarDelay.h.
References closedSize.
|
inline |
Definition at line 132 of file AStarDelay.h.
References metaexpanded.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements GraphAlgorithm.
Definition at line 24 of file AStarDelay.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
private |
Definition at line 452 of file AStarDelay.cpp.
|
private |
Definition at line 476 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, fgreater(), and AStarDelayUtil::SearchNode::gCost.
|
virtual |
|
virtual |
Implements GraphAlgorithm.
Definition at line 677 of file AStarDelay.cpp.
void AStarDelay::ReversePropX1 | ( | AStarDelayUtil::SearchNode & | topNode | ) |
Definition at line 274 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, AStarDelayUtil::SearchNode::gCost, and max.
|
private |
Definition at line 574 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, fgreater(), fless(), AStarDelayUtil::SearchNode::gCost, max, and AStarDelayUtil::SearchNode::prevNode.
|
private |
Definition at line 615 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, fless(), AStarDelayUtil::SearchNode::gCost, max, and AStarDelayUtil::SearchNode::prevNode.
|
private |
Definition at line 544 of file AStarDelay.cpp.
References AStarDelayUtil::SearchNode::currNode, AStarDelayUtil::SearchNode::fCost, fless(), AStarDelayUtil::SearchNode::gCost, max, and AStarDelayUtil::SearchNode::prevNode.
|
private |
Definition at line 218 of file AStarDelay.h.
Referenced by AStarDelay().
AStarDelayUtil::NodeLookupTable AStarDelay::closedList |
Definition at line 167 of file AStarDelay.h.
uint64_t AStarDelay::closedSize |
Definition at line 169 of file AStarDelay.h.
Referenced by GetNodesFirstExpanded().
|
private |
Definition at line 211 of file AStarDelay.h.
|
private |
Definition at line 209 of file AStarDelay.h.
|
private |
Definition at line 189 of file AStarDelay.h.
int AStarDelay::fD |
Definition at line 153 of file AStarDelay.h.
Referenced by AStarDelay(), and fDelay().
|
private |
Definition at line 220 of file AStarDelay.h.
|
private |
Definition at line 211 of file AStarDelay.h.
|
private |
Definition at line 213 of file AStarDelay.h.
|
private |
Definition at line 208 of file AStarDelay.h.
long AStarDelay::metaexpanded |
Definition at line 164 of file AStarDelay.h.
Referenced by GetNodesMetaExpanded().
|
private |
Definition at line 221 of file AStarDelay.h.
|
private |
Definition at line 207 of file AStarDelay.h.
|
private |
Definition at line 205 of file AStarDelay.h.
Referenced by GetNodesExpanded().
|
private |
Definition at line 206 of file AStarDelay.h.
Referenced by GetNodesReopened().
|
private |
Definition at line 206 of file AStarDelay.h.
Referenced by GetNodesTouched().
AStarDelayUtil::PQueue AStarDelay::openQueue |
Definition at line 166 of file AStarDelay.h.
|
private |
Definition at line 216 of file AStarDelay.h.
Referenced by GetSolutionEdges().
double AStarDelay::solutionCost |
Definition at line 151 of file AStarDelay.h.
Referenced by GetSolutionCost().
|
private |
Definition at line 208 of file AStarDelay.h.
int AStarDelay::verID |
Definition at line 152 of file AStarDelay.h.
Referenced by AStarDelay().