Constructor Summary |
||
protected |
Method Summary |
||
abstract float |
getCostEstimate(AStar.Node dest, PathContext context) returns the cost estimate from this node to destination node. |
|
int |
||
abstract Collection<? extends AStar.Transition> |
||
boolean |
returns true if id of this node equals id of goal node. this is almost the same as == operator as all nodes are assigned a different id when they're created. the result may differ from == operator if two nodes created in different JVM sessions are compared.
this method is called to decide if goal node is reached, so override this method if you have a different criteria to decide if goal is reached.