HOG2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GraphMapInconsistentHeuristic Class Reference

#include <GraphEnvironment.h>

Inheritance diagram for GraphMapInconsistentHeuristic:
Inheritance graph
[legend]
Collaboration diagram for GraphMapInconsistentHeuristic:
Collaboration graph
[legend]

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)
 
GraphGetGraph ()
 
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
 
Mapm
 

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)
 
nodeFindFarNode (node *n)
 
nodeFindAvoidNode (node *n)
 
nodeFindBestChild (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
 
Graphg
 
std::vector< std::vector< double > > heuristics
 
std::vector< graphStatelocations
 
std::vector< double > dist
 
std::vector< double > weight
 
std::vector< double > sizes
 

Detailed Description

Definition at line 264 of file GraphEnvironment.h.

Constructor & Destructor Documentation

◆ GraphMapInconsistentHeuristic()

GraphMapInconsistentHeuristic::GraphMapInconsistentHeuristic ( Map map,
Graph graph 
)

Member Function Documentation

◆ Compress()

void GraphMapInconsistentHeuristic::Compress ( )

◆ FillInCache()

void GraphMapInconsistentHeuristic::FillInCache ( std::vector< double > &  vals,
std::vector< double > &  errors,
graphState  state2 
) const
private

◆ GetMode()

tHeuristicCombination GraphMapInconsistentHeuristic::GetMode ( )
inline

Definition at line 270 of file GraphEnvironment.h.

References hmode.

◆ GetNumUsedHeuristics()

int GraphMapInconsistentHeuristic::GetNumUsedHeuristics ( )
inline

Definition at line 273 of file GraphEnvironment.h.

References numHeuristics.

◆ HCost()

double GraphMapInconsistentHeuristic::HCost ( const graphState state1,
const graphState state2 
) const
virtual

◆ IncreaseDisplayHeuristic()

void GraphMapInconsistentHeuristic::IncreaseDisplayHeuristic ( )
inline

Definition at line 278 of file GraphEnvironment.h.

References displayHeuristic, and GraphDistanceHeuristic::heuristics.

◆ OpenGLDraw()

void GraphMapInconsistentHeuristic::OpenGLDraw ( ) const
virtual

◆ SetMode()

void GraphMapInconsistentHeuristic::SetMode ( tHeuristicCombination  mode)
inline

Definition at line 268 of file GraphEnvironment.h.

References compressed, hmode, and kCompressed.

Referenced by GraphMapInconsistentHeuristic(), and MyPathfindingKeyHandler().

◆ SetNumUsedHeuristics()

void GraphMapInconsistentHeuristic::SetNumUsedHeuristics ( int  count)
inline

Member Data Documentation

◆ compressed

bool GraphMapInconsistentHeuristic::compressed
private

◆ displayHeuristic

int GraphMapInconsistentHeuristic::displayHeuristic
private

◆ hmode

tHeuristicCombination GraphMapInconsistentHeuristic::hmode
private

Definition at line 284 of file GraphEnvironment.h.

Referenced by Compress(), GetMode(), HCost(), OpenGLDraw(), and SetMode().

◆ m

Map* GraphMapInconsistentHeuristic::m
private

Definition at line 288 of file GraphEnvironment.h.

Referenced by OpenGLDraw().

◆ numHeuristics

int GraphMapInconsistentHeuristic::numHeuristics
private

The documentation for this class was generated from the following files: