Sim
Class SetLocationManager

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

public class SetLocationManager
extends java.lang.Object
implements LocationManager

This location manager gives the position of a node which is moving from a given source to destination point.


Constructor Summary
SetLocationManager(java.lang.Double speed, Location end, Location start)
          Set location manager allows a node to move from one location to another location and stop when it gets there
 
Method Summary
 Location getLocation(double t)
          Get location method based on the path between the start and end locations and the current time given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetLocationManager

public SetLocationManager(java.lang.Double speed,
                          Location end,
                          Location start)
Set location manager allows a node to move from one location to another location and stop when it gets there

Parameters:
speed - the speed of the node
end - end location of the node
start - begin location of the node
Method Detail

getLocation

public Location getLocation(double t)
Get location method based on the path between the start and end locations and the current time given.

Specified by:
getLocation in interface LocationManager
Parameters:
t - time to get the location
Returns:
new location object