Class AStarIterator.AStarFunctions
Object
AStarFunctions
- Enclosing class:
- AStarIterator
Defines the functions needed by A Star.
- Author:
- German E. Trouillet, Francisco G. Malbrán. Universidad Nacional de Córdoba (UNC)
-
Constructor Summary
ConstructorsConstructorDescriptionAStarFunctions
(Node destination) Creates a new instance and sets up the destination node for the algorithm -
Method Summary
Modifier and TypeMethodDescriptionabstract double
Defines the cost of going from one node to anothergetDest()
abstract double
Defines the heuristic function for nvoid
setDestination
(Node destination) Sets up the destination node for the algorithm
-
Constructor Details
-
AStarFunctions
Creates a new instance and sets up the destination node for the algorithm
-
-
Method Details
-
setDestination
Sets up the destination node for the algorithm -
cost
Defines the cost of going from one node to another -
h
Defines the heuristic function for n -
getDest
-