|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.graph.traverse.standard.AStarIterator.AStarFunctions
public abstract static class AStarIterator.AStarFunctions
Defines the functions needed by A Star.
Constructor Summary | |
---|---|
AStarIterator.AStarFunctions(Node destination)
Creates a new instance and sets up the destination node for the algorithm |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AStarIterator.AStarFunctions(Node destination)
Method Detail |
---|
public void setDestination(Node destination)
public abstract double cost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2)
public abstract double h(Node n)
public Node getDest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |