|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.SetLocationManager
public class SetLocationManager
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 |
---|
public SetLocationManager(java.lang.Double speed, Location end, Location start)
speed
- the speed of the nodeend
- end location of the nodestart
- begin location of the nodeMethod Detail |
---|
public Location getLocation(double t)
getLocation
in interface LocationManager
t
- time to get the location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |