|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.RandomLocationManager
public class RandomLocationManager
RandomLocationManager implements a LocationManager that will allow a node to move from a position to another random position and pause. After the pause it will continue to move to another random potion.
Constructor Summary | |
---|---|
RandomLocationManager(java.lang.Double speed,
java.lang.Integer area,
Location start,
java.lang.Integer seed)
Constructs a location manager that will return paths to random locations. |
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 RandomLocationManager(java.lang.Double speed, java.lang.Integer area, Location start, java.lang.Integer seed)
start
- a position to startspeed
- the speed which the node is movingMethod Detail |
---|
public Location getLocation(double t)
getLocation
in interface LocationManager
t
- time to get the location at
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |