|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.FixedLocationManager
public class FixedLocationManager
FixedLocationManager implements a LocationManager that always returns the same location. This can be used to simulate nodes that never move.
Constructor Summary | |
---|---|
FixedLocationManager(Location location)
Constructs a new FixedLocationManager that always returns the given Location from its getLocation method. |
Method Summary | |
---|---|
Location |
getLocation(double t)
Returns the location produced by this manager at the given time t. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedLocationManager(Location location)
location
- non-null LocationMethod Detail |
---|
public Location getLocation(double t)
getLocation
in interface LocationManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |