|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmovement.MovementModel
movement.RandomWaypoint
public class RandomWaypoint
Random waypoint movement model. Creates zig-zag paths within the simulation area.
Field Summary |
---|
Fields inherited from class movement.MovementModel |
---|
DEF_SPEEDS, DEF_WAIT_TIMES, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE |
Constructor Summary | |
---|---|
RandomWaypoint(Settings settings)
|
Method Summary | |
---|---|
Coord |
getInitialLocation()
Returns a possible (random) placement for a host |
Path |
getPath()
Returns a new path by this movement model or null if no new path could be constructed at the moment (node should wait where it is). |
RandomWaypoint |
replicate()
Creates a replicate of the movement model. |
Methods inherited from class movement.MovementModel |
---|
generateSpeed, generateWaitTime, getMaxX, getMaxY, isActive, nextPathAvailable, reset, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandomWaypoint(Settings settings)
Method Detail |
---|
public Coord getInitialLocation()
getInitialLocation
in class MovementModel
public Path getPath()
MovementModel
getPath
in class MovementModel
public RandomWaypoint replicate()
MovementModel
replicate
in class MovementModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |