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

#include <GraphEnvironment.h>

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

Public Member Functions

 GraphMapPerfectHeuristic (Map *map, Graph *graph)
 
GraphGetGraph ()
 
void SetProbability (double p)
 
double HCost (const graphState &state1, const graphState &state2) const
 
 ~GraphMapPerfectHeuristic ()
 
- Public Member Functions inherited from GraphHeuristic
virtual ~GraphHeuristic ()
 
virtual void ChooseStartGoal (graphState &, graphState &)
 
virtual void OpenGLDraw () const
 

Public Attributes

double prob
 

Private Member Functions

double GetOctileDistance (double dx, double dy) const
 
void fillProbTable ()
 

Private Attributes

Mapm
 
Graphg
 
bool * probTable
 

Detailed Description

Definition at line 161 of file GraphEnvironment.h.

Constructor & Destructor Documentation

◆ GraphMapPerfectHeuristic()

GraphMapPerfectHeuristic::GraphMapPerfectHeuristic ( Map map,
Graph graph 
)
inline

Definition at line 163 of file GraphEnvironment.h.

References fillProbTable(), and prob.

◆ ~GraphMapPerfectHeuristic()

GraphMapPerfectHeuristic::~GraphMapPerfectHeuristic ( )
inline

Definition at line 183 of file GraphEnvironment.h.

References probTable.

Member Function Documentation

◆ fillProbTable()

void GraphMapPerfectHeuristic::fillProbTable ( )
inlineprivate

Definition at line 199 of file GraphEnvironment.h.

References Map::GetMapHeight(), Map::GetMapWidth(), m, prob, and probTable.

Referenced by GraphMapPerfectHeuristic().

◆ GetGraph()

Graph* GraphMapPerfectHeuristic::GetGraph ( )
inlinevirtual

Implements GraphHeuristic.

Definition at line 168 of file GraphEnvironment.h.

References g.

◆ GetOctileDistance()

double GraphMapPerfectHeuristic::GetOctileDistance ( double  dx,
double  dy 
) const
inlineprivate

Definition at line 189 of file GraphEnvironment.h.

Referenced by HCost().

◆ HCost()

double GraphMapPerfectHeuristic::HCost ( const graphState state1,
const graphState state2 
) const
inlinevirtual

◆ SetProbability()

void GraphMapPerfectHeuristic::SetProbability ( double  p)
inline

Definition at line 169 of file GraphEnvironment.h.

References prob.

Member Data Documentation

◆ g

Graph* GraphMapPerfectHeuristic::g
private

Definition at line 212 of file GraphEnvironment.h.

Referenced by GetGraph(), and HCost().

◆ m

Map* GraphMapPerfectHeuristic::m
private

Definition at line 211 of file GraphEnvironment.h.

Referenced by fillProbTable().

◆ prob

double GraphMapPerfectHeuristic::prob

Definition at line 187 of file GraphEnvironment.h.

Referenced by fillProbTable(), GraphMapPerfectHeuristic(), and SetProbability().

◆ probTable

bool* GraphMapPerfectHeuristic::probTable
private

Definition at line 213 of file GraphEnvironment.h.

Referenced by fillProbTable(), HCost(), and ~GraphMapPerfectHeuristic().


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