edu.cmu.emulator.world
Class Route

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

public class Route
extends Object


Field Summary
protected  Waypoint curWaypoint
          current waypoint we are navigating towards
protected  Waypoint lastWaypoint
          last waypoint we navigated towards
protected  int nextWaypointIndex
          index of next waypoint that we will navigate towards
protected  double playbackRate
           
protected  RouteDef routeDef
           
protected  long startTimeMillis
          time that we started navigating this route
protected  double startTimeSecs
           
 
Constructor Summary
Route(RouteDef routeDef)
           
 
Method Summary
 double getPlaybackRate()
           
 long getStartTimeMillis()
           
 double getStartTimeSecs()
           
 boolean isLoop()
           
 Waypoint nextWaypoint()
           
 void startRoute(long startTimeMillis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

routeDef

protected RouteDef routeDef

startTimeMillis

protected long startTimeMillis
time that we started navigating this route


startTimeSecs

protected double startTimeSecs

nextWaypointIndex

protected int nextWaypointIndex
index of next waypoint that we will navigate towards


lastWaypoint

protected Waypoint lastWaypoint
last waypoint we navigated towards


curWaypoint

protected Waypoint curWaypoint
current waypoint we are navigating towards


playbackRate

protected double playbackRate
Constructor Detail

Route

public Route(RouteDef routeDef)
Method Detail

startRoute

public void startRoute(long startTimeMillis)

getStartTimeMillis

public long getStartTimeMillis()

getStartTimeSecs

public double getStartTimeSecs()

isLoop

public boolean isLoop()

getPlaybackRate

public double getPlaybackRate()

nextWaypoint

public Waypoint nextWaypoint()


Copyright © 2013. All Rights Reserved.