public class AstarSearchAlgorithm extends java.lang.Object implements SearchAlgorithm
NodePathFinder
Constructor and Description |
---|
AstarSearchAlgorithm() |
Modifier and Type | Method and Description |
---|---|
Path |
findPath(Node start,
Node goal)
Method accepts a start node and a goal node, and returns a path consisting of a collection of waypoints which
includes the startNode coordinates as the first waypoint, and the goal node coordinates as the final waypoint.
|
java.lang.String |
toString() |
public Path findPath(Node start, Node goal)
SearchAlgorithm
findPath
in interface SearchAlgorithm
public java.lang.String toString()
toString
in class java.lang.Object