|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmovement.MovementModel
movement.StationaryMovement
public class StationaryMovement
A dummy stationary "movement" model where nodes do not move. Might be useful for simulations with only external connection events.
Field Summary | |
---|---|
static java.lang.String |
LOCATION_S
Per node group setting for setting the location ("nodeLocation") |
Fields inherited from class movement.MovementModel |
---|
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE |
Constructor Summary | |
---|---|
StationaryMovement(Settings s)
Creates a new movement model based on a Settings object's settings. |
|
StationaryMovement(StationaryMovement sm)
Copy constructor. |
Method Summary | |
---|---|
Coord |
getInitialLocation()
Returns the only location of this movement model |
Path |
getPath()
Returns a single coordinate path (using the only possible coordinate) |
double |
nextPathAvailable()
Returns a sim time when the next path is available. |
StationaryMovement |
replicate()
Creates a replicate of the movement model. |
Methods inherited from class movement.MovementModel |
---|
generateSpeed, generateWaitTime, getComBus, getMaxX, getMaxY, isActive, reset, setComBus, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCATION_S
Constructor Detail |
---|
public StationaryMovement(Settings s)
s
- The Settings object where the settings are read frompublic StationaryMovement(StationaryMovement sm)
sm
- The StationaryMovement prototypeMethod Detail |
---|
public Coord getInitialLocation()
getInitialLocation
in class MovementModel
public Path getPath()
getPath
in class MovementModel
public double nextPathAvailable()
MovementModel
MovementModel.WAIT_TIME
from now.
nextPathAvailable
in class MovementModel
public StationaryMovement replicate()
MovementModel
replicate
in class MovementModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |