public class StationaryMovement extends MovementModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCATION_S
Per node group setting for setting the location ("nodeLocation")
|
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, host, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE| Constructor and Description |
|---|
StationaryMovement(Settings s)
Creates a new movement model based on a Settings object's settings.
|
StationaryMovement(StationaryMovement sm)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
generateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, reset, setComBus, setHost, toStringpublic static final java.lang.String LOCATION_S
public StationaryMovement(Settings s)
s - The Settings object where the settings are read frompublic StationaryMovement(StationaryMovement sm)
sm - The StationaryMovement prototypepublic Coord getInitialLocation()
getInitialLocation in class MovementModelpublic Path getPath()
getPath in class MovementModelpublic double nextPathAvailable()
MovementModelMovementModel.WAIT_TIME from now.nextPathAvailable in class MovementModelpublic StationaryMovement replicate()
MovementModelreplicate in class MovementModel