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

#include <GraphEnvironment.h>

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

Public Member Functions

 GraphLabelHeuristic (Graph *graph, graphState target)
 
GraphGetGraph ()
 
double HCost (const graphState &state1, const graphState &state2) const
 
- Public Member Functions inherited from GraphHeuristic
virtual ~GraphHeuristic ()
 
virtual void ChooseStartGoal (graphState &, graphState &)
 
virtual void OpenGLDraw () const
 

Private Attributes

graphState goal
 
Graphg
 

Detailed Description

Definition at line 108 of file GraphEnvironment.h.

Constructor & Destructor Documentation

◆ GraphLabelHeuristic()

GraphLabelHeuristic::GraphLabelHeuristic ( Graph graph,
graphState  target 
)
inline

Definition at line 110 of file GraphEnvironment.h.

References g, and goal.

Member Function Documentation

◆ GetGraph()

Graph* GraphLabelHeuristic::GetGraph ( )
inlinevirtual

Implements GraphHeuristic.

Definition at line 112 of file GraphEnvironment.h.

References g.

◆ HCost()

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

Implements GraphHeuristic.

Definition at line 113 of file GraphEnvironment.h.

References g, node::GetLabelF(), Graph::GetNode(), goal, and GraphSearchConstants::kHCost.

Member Data Documentation

◆ g

Graph* GraphLabelHeuristic::g
private

Definition at line 121 of file GraphEnvironment.h.

Referenced by GetGraph(), GraphLabelHeuristic(), and HCost().

◆ goal

graphState GraphLabelHeuristic::goal
private

Definition at line 120 of file GraphEnvironment.h.

Referenced by GraphLabelHeuristic(), and HCost().


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