HOG2
Public Member Functions | Private Attributes | List of all members
OldSearchCode::MapGraphSearchEnvironment Class Reference

#include <OldSearchEnvironment.h>

Inheritance diagram for OldSearchCode::MapGraphSearchEnvironment:
Inheritance graph
[legend]
Collaboration diagram for OldSearchCode::MapGraphSearchEnvironment:
Collaboration graph
[legend]

Public Member Functions

 MapGraphSearchEnvironment (Map *_map, Graph *_graph)
 
 ~MapGraphSearchEnvironment ()
 
void getNeighbors (uint32_t nodeID, std::vector< uint32_t > &neighbors)
 MapGraphSearchEnvironment. More...
 
double heuristic (uint32_t node1, uint32_t node2)
 
double gcost (uint32_t node1, uint32_t node2)
 
- Public Member Functions inherited from OldSearchCode::SearchEnvironment
virtual ~SearchEnvironment ()
 
virtual bool goalTest (uint32_t node, uint32_t goal)
 

Private Attributes

Graphg
 
Mapm
 

Detailed Description

Definition at line 52 of file OldSearchEnvironment.h.

Constructor & Destructor Documentation

◆ MapGraphSearchEnvironment()

OldSearchCode::MapGraphSearchEnvironment::MapGraphSearchEnvironment ( Map _map,
Graph _graph 
)
inline

Definition at line 55 of file OldSearchEnvironment.h.

◆ ~MapGraphSearchEnvironment()

OldSearchCode::MapGraphSearchEnvironment::~MapGraphSearchEnvironment ( )
inline

Definition at line 56 of file OldSearchEnvironment.h.

Member Function Documentation

◆ gcost()

double OldSearchCode::MapGraphSearchEnvironment::gcost ( uint32_t  node1,
uint32_t  node2 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 125 of file OldSearchEnvironment.cpp.

References heuristic().

◆ getNeighbors()

void OldSearchCode::MapGraphSearchEnvironment::getNeighbors ( uint32_t  nodeID,
std::vector< uint32_t > &  neighbors 
)
virtual

◆ heuristic()

double OldSearchCode::MapGraphSearchEnvironment::heuristic ( uint32_t  node1,
uint32_t  node2 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 109 of file OldSearchEnvironment.cpp.

References g, node::GetLabelL(), Graph::GetNode(), and ROOT_TWO.

Referenced by gcost().

Member Data Documentation

◆ g

Graph* OldSearchCode::MapGraphSearchEnvironment::g
private

Definition at line 61 of file OldSearchEnvironment.h.

Referenced by getNeighbors(), and heuristic().

◆ m

Map* OldSearchCode::MapGraphSearchEnvironment::m
private

Definition at line 62 of file OldSearchEnvironment.h.


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