edu.cmu.emulator.world
Class Navigator

java.lang.Object
  extended by edu.cmu.emulator.world.Navigator

public class Navigator
extends Object


Field Summary
protected  Route activeRoute
           
protected  Waypoint curWaypoint
           
private static boolean debugListeners
           
protected  MovableObject mObject
           
protected  Waypoint nextWaypoint
           
protected  Waypoint prevWaypoint
           
protected  ListenerManager wpListenerManager
           
 
Constructor Summary
Navigator(MovableObject mObject, GroupWorker groupWorker)
           
 
Method Summary
 void addWaypointListener(WaypointListener wpl, int threadMode)
           
 Route getActiveRoute()
           
protected  void invokeWPListeners(Waypoint wp, long timeMillis)
           
 void removeWaypointListener(WaypointListener wpl)
           
 void segmentEndReached(long timeMillis)
           
protected  void startNextSegment()
           
 void startRoute(Route route, long timeMillis)
           
 void stopNavigation()
           
protected  void stopNavigationAndHalt(long timeMillis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mObject

protected MovableObject mObject

activeRoute

protected Route activeRoute

prevWaypoint

protected Waypoint prevWaypoint

curWaypoint

protected Waypoint curWaypoint

nextWaypoint

protected Waypoint nextWaypoint

wpListenerManager

protected ListenerManager wpListenerManager

debugListeners

private static final boolean debugListeners
See Also:
Constant Field Values
Constructor Detail

Navigator

public Navigator(MovableObject mObject,
                 GroupWorker groupWorker)
Method Detail

stopNavigationAndHalt

protected void stopNavigationAndHalt(long timeMillis)

stopNavigation

public void stopNavigation()

startRoute

public void startRoute(Route route,
                       long timeMillis)

startNextSegment

protected void startNextSegment()

segmentEndReached

public void segmentEndReached(long timeMillis)

getActiveRoute

public Route getActiveRoute()

addWaypointListener

public void addWaypointListener(WaypointListener wpl,
                                int threadMode)

removeWaypointListener

public void removeWaypointListener(WaypointListener wpl)

invokeWPListeners

protected void invokeWPListeners(Waypoint wp,
                                 long timeMillis)


Copyright © 2013. All Rights Reserved.