public class RandomWaypoint extends MovementModel
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, host, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
RandomWaypoint(RandomWaypoint rwp) |
|
RandomWaypoint(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
protected Coord |
randomCoord() |
RandomWaypoint |
replicate()
Creates a replicate of the movement model.
|
generateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, nextPathAvailable, reset, setComBus, setHost, toStringpublic RandomWaypoint(Settings settings)
protected RandomWaypoint(RandomWaypoint rwp)
public Coord getInitialLocation()
getInitialLocation in class MovementModelpublic Path getPath()
MovementModelgetPath in class MovementModelpublic RandomWaypoint replicate()
MovementModelreplicate in class MovementModelprotected Coord randomCoord()