Sim
Class SimpleLocationManager

java.lang.Object
  extended by Sim.SimpleLocationManager
All Implemented Interfaces:
LocationManager

public class SimpleLocationManager
extends java.lang.Object
implements LocationManager

SimpleLocationManager allows for direct manipulation of location.


Constructor Summary
SimpleLocationManager(Location location)
           
 
Method Summary
 Location getLocation(double t)
          Returns the location produced by this manager at the given time t.
 void setLocation(Location location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLocationManager

public SimpleLocationManager(Location location)
Method Detail

setLocation

public void setLocation(Location location)

getLocation

public Location getLocation(double t)
Returns the location produced by this manager at the given time t. The value of t passed in must be equal to or greater than the value of all previous t values passed into this method.

Specified by:
getLocation in interface LocationManager
Returns:
non-null generated Location