HOG2
|
#include <GraphEnvironment.h>
Public Member Functions | |
GraphMapInconsistentHeuristic (Map *map, Graph *graph) | |
double | HCost (const graphState &state1, const graphState &state2) const |
void | SetMode (tHeuristicCombination mode) |
tHeuristicCombination | GetMode () |
void | SetNumUsedHeuristics (int count) |
int | GetNumUsedHeuristics () |
void | Compress () |
virtual void | OpenGLDraw () const |
void | IncreaseDisplayHeuristic () |
Public Member Functions inherited from GraphDistanceHeuristic | |
GraphDistanceHeuristic (Graph *graph) | |
~GraphDistanceHeuristic () | |
void | AddHeuristic (node *n=0) |
int | GetNumHeuristics () |
void | SetPlacement (placementScheme s) |
Graph * | GetGraph () |
void | ChooseStartGoal (graphState &start, graphState &goal) |
Public Member Functions inherited from GraphHeuristic | |
virtual | ~GraphHeuristic () |
Private Member Functions | |
void | FillInCache (std::vector< double > &vals, std::vector< double > &errors, graphState state2) const |
Private Attributes | |
tHeuristicCombination | hmode |
int | numHeuristics |
int | displayHeuristic |
bool | compressed |
Map * | m |
Additional Inherited Members | |
Protected Member Functions inherited from GraphDistanceHeuristic | |
void | GetOptimalDistances (node *n, std::vector< double > &values) |
void | AddHeuristic (std::vector< double > &values, graphState location) |
node * | FindFarNode (node *n) |
node * | FindAvoidNode (node *n) |
node * | FindBestChild (int best, std::vector< double > &dist, std::vector< double > &weight) |
void | ComputeSizes (node *n, std::vector< double > &dist, std::vector< double > &weight, std::vector< double > &sizes) |
Protected Attributes inherited from GraphDistanceHeuristic | |
placementScheme | placement |
Graph * | g |
std::vector< std::vector< double > > | heuristics |
std::vector< graphState > | locations |
std::vector< double > | dist |
std::vector< double > | weight |
std::vector< double > | sizes |
Definition at line 264 of file GraphEnvironment.h.
Definition at line 1167 of file GraphEnvironment.cpp.
References compressed, displayHeuristic, kMax, SetMode(), and SetNumUsedHeuristics().
void GraphMapInconsistentHeuristic::Compress | ( | ) |
Definition at line 1296 of file GraphEnvironment.cpp.
References compressed, GraphDistanceHeuristic::heuristics, hmode, kCompressed, and numHeuristics.
|
private |
Definition at line 1312 of file GraphEnvironment.cpp.
References Heap::Add(), compressed, Heap::DecreaseKey(), Heap::Empty(), fgreater(), Graph::FindEdge(), GraphDistanceHeuristic::g, node::GetLabelF(), node::getNeighborIter(), Graph::GetNode(), node::GetNum(), GraphDistanceHeuristic::heuristics, Heap::IsIn(), GraphAbstractionConstants::kTemporaryLabel, node::nodeNeighborNext(), numHeuristics, Heap::Remove(), node::SetKeyLabel(), and node::SetLabelF().
Referenced by HCost().
|
inline |
Definition at line 270 of file GraphEnvironment.h.
References hmode.
|
inline |
Definition at line 273 of file GraphEnvironment.h.
References numHeuristics.
|
virtual |
Reimplemented from GraphDistanceHeuristic.
Definition at line 1199 of file GraphEnvironment.cpp.
References compressed, fgreater(), FillInCache(), GraphDistanceHeuristic::g, node::GetLabelL(), Graph::GetNode(), GraphDistanceHeuristic::heuristics, hmode, kCompressed, kGridMax, kIgnore, GraphSearchConstants::kMapX, GraphSearchConstants::kMapY, kMax, kRandom, numHeuristics, and ROOT_TWO.
|
inline |
Definition at line 278 of file GraphEnvironment.h.
References displayHeuristic, and GraphDistanceHeuristic::heuristics.
|
virtual |
Reimplemented from GraphDistanceHeuristic.
Definition at line 1414 of file GraphEnvironment.cpp.
References displayHeuristic, GraphDistanceHeuristic::g, Graph::GetNode(), GraphDistanceHeuristic::heuristics, hmode, kCompressed, m, max, GraphEnvironment::OpenGLDraw(), and SearchEnvironment< state, action >::SetColor().
|
inline |
Definition at line 268 of file GraphEnvironment.h.
References compressed, hmode, and kCompressed.
Referenced by GraphMapInconsistentHeuristic(), and MyPathfindingKeyHandler().
|
inline |
Definition at line 271 of file GraphEnvironment.h.
References GraphDistanceHeuristic::GetNumHeuristics(), and numHeuristics.
Referenced by GraphMapInconsistentHeuristic(), and MyPathfindingKeyHandler().
|
private |
Definition at line 287 of file GraphEnvironment.h.
Referenced by Compress(), FillInCache(), GraphMapInconsistentHeuristic(), HCost(), and SetMode().
|
private |
Definition at line 286 of file GraphEnvironment.h.
Referenced by GraphMapInconsistentHeuristic(), IncreaseDisplayHeuristic(), and OpenGLDraw().
|
private |
Definition at line 284 of file GraphEnvironment.h.
Referenced by Compress(), GetMode(), HCost(), OpenGLDraw(), and SetMode().
|
private |
Definition at line 288 of file GraphEnvironment.h.
Referenced by OpenGLDraw().
|
private |
Definition at line 285 of file GraphEnvironment.h.
Referenced by Compress(), FillInCache(), GetNumUsedHeuristics(), HCost(), and SetNumUsedHeuristics().