Class AStarIterator.AStarFunctions
- Object
-
- AStarFunctions
-
- Enclosing class:
- AStarIterator
public abstract static class AStarIterator.AStarFunctions extends Object
Defines the functions needed by A Star.- Author:
- German E. Trouillet, Francisco G. Malbrán. Universidad Nacional de Córdoba (UNC)
-
-
Constructor Summary
Constructors Constructor Description AStarFunctions(Node destination)
Creates a new instance and sets up the destination node for the algorithm
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
cost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2)
Defines the cost of going from one node to anotherNode
getDest()
abstract double
h(Node n)
Defines the heuristic function for nvoid
setDestination(Node destination)
Sets up the destination node for the algorithm
-
-
-
Constructor Detail
-
AStarFunctions
public AStarFunctions(Node destination)
Creates a new instance and sets up the destination node for the algorithm
-
-
Method Detail
-
setDestination
public void setDestination(Node destination)
Sets up the destination node for the algorithm
-
cost
public abstract double cost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2)
Defines the cost of going from one node to another
-
h
public abstract double h(Node n)
Defines the heuristic function for n
-
getDest
public Node getDest()
-
-