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 SummaryConstructors Constructor Description AStarFunctions(Node destination)Creates a new instance and sets up the destination node for the algorithm
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doublecost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2)Defines the cost of going from one node to anotherNodegetDest()abstract doubleh(Node n)Defines the heuristic function for nvoidsetDestination(Node destination)Sets up the destination node for the algorithm
 
- 
- 
- 
Constructor Detail- 
AStarFunctionspublic AStarFunctions(Node destination) Creates a new instance and sets up the destination node for the algorithm
 
- 
 - 
Method Detail- 
setDestinationpublic void setDestination(Node destination) Sets up the destination node for the algorithm
 - 
costpublic abstract double cost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2) Defines the cost of going from one node to another
 - 
hpublic abstract double h(Node n) Defines the heuristic function for n
 - 
getDestpublic Node getDest() 
 
- 
 
-