jfreerails.controller
Class PathOnTrackFinder
java.lang.Object
jfreerails.controller.PathOnTrackFinder
- All Implemented Interfaces:
- IncrementalPathFinder
public class PathOnTrackFinder
- extends java.lang.Object
- implements IncrementalPathFinder
Finds a path along existing track. Used for upgrading or removing track
between two points on the track.
- Author:
- Luke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final java.util.logging.Logger logger
pathFinder
private SimpleAStarPathFinder pathFinder
startPoint
private ImPoint startPoint
world
private final ReadOnlyWorld world
PathOnTrackFinder
public PathOnTrackFinder(ReadOnlyWorld world)
abandonSearch
public void abandonSearch()
- Specified by:
abandonSearch
in interface IncrementalPathFinder
getStatus
public int getStatus()
- Specified by:
getStatus
in interface IncrementalPathFinder
pathAsVectors
public Step[] pathAsVectors()
search
public void search(long maxDuration)
throws PathNotFoundException
- Specified by:
search
in interface IncrementalPathFinder
- Throws:
PathNotFoundException
setupSearch
public void setupSearch(ImPoint from,
ImPoint target)
throws PathNotFoundException
- Throws:
PathNotFoundException