public abstract static class AStarIterator.AStarFunctions extends Object
Constructor and Description |
---|
AStarFunctions(Node destination)
Creates a new instance and sets up the destination node for the algorithm
|
Modifier and Type | Method and Description |
---|---|
abstract double |
cost(AStarIterator.AStarNode n1,
AStarIterator.AStarNode n2)
Defines the cost of going from one node to another
|
Node |
getDest() |
abstract double |
h(Node n)
Defines the heuristic function for n
|
void |
setDestination(Node destination)
Sets up the destination node for the algorithm
|
public AStarFunctions(Node destination)
public void setDestination(Node destination)
public abstract double cost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2)
public abstract double h(Node n)
public Node getDest()
Copyright © 1996–2019 Geotools. All rights reserved.