Package jsl.modeling.elements.spatial
Interface PathFinder
-
public interface PathFinder
Interface for a path finding algorithm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
findPath(Path path, CoordinateIfc from, CoordinateIfc to)
Fills the supplied path parameter with the points on the path, not including the starting location but including the goal location.void
findPath(Path path, SpatialElementIfc from, SpatialElementIfc to)
Fills the supplied path parameter with the points on the path, not including the starting location but including the goal location.
-
-
-
Method Detail
-
findPath
void findPath(Path path, CoordinateIfc from, CoordinateIfc to)
Fills the supplied path parameter with the points on the path, not including the starting location but including the goal location. The coordinates should not be modified since they may be used inside other objects (as an efficiency). The supplied path will be empty if no path is found- Parameters:
path
- A list to hold the points on the pathfrom
-to
-
-
findPath
void findPath(Path path, SpatialElementIfc from, SpatialElementIfc to)
Fills the supplied path parameter with the points on the path, not including the starting location but including the goal location. The supplied points should not be modified since they may be used inside other objects (as an efficiency). The supplied path will be empty if no path is found- Parameters:
path
- A list to hold the points on the pathfrom
-to
-
-
-