public class ExternalMovement extends MovementModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTERNAL_MOVEMENT_NS
Namespace for settings
|
static java.lang.String |
MOVEMENT_FILE_S
external locations file's path -setting id ("file")
|
static java.lang.String |
NROF_PRELOAD_S
number of preloaded intervals per preload run -setting id ("nrofPreload")
|
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 |
|---|
ExternalMovement(Settings settings)
Constructor for the prototype.
|
| Modifier and Type | Method and Description |
|---|---|
Coord |
getInitialLocation()
Returns a new initial placement for a node
|
int |
getMaxX()
Returns the largest X coordinate value this model uses
|
int |
getMaxY()
Returns the largest Y coordinate value this model uses
|
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).
|
boolean |
isActive()
Returns true if this node is active at the moment (false if not)
|
double |
nextPathAvailable()
Returns a sim time when the next path is available.
|
MovementModel |
replicate()
Creates a replicate of the movement model.
|
static void |
reset()
Reset state so that next instance will have a fresh state
|
generateSpeed, generateWaitTime, getComBus, getHost, setComBus, setHost, toStringpublic static final java.lang.String EXTERNAL_MOVEMENT_NS
public static final java.lang.String MOVEMENT_FILE_S
public static final java.lang.String NROF_PRELOAD_S
public ExternalMovement(Settings settings)
settings - Where settings are read frompublic Coord getInitialLocation()
MovementModelgetInitialLocation in class MovementModelpublic boolean isActive()
MovementModelisActive in class MovementModelpublic double nextPathAvailable()
nextPathAvailable in class MovementModelpublic Path getPath()
MovementModelgetPath in class MovementModelpublic int getMaxX()
MovementModelgetMaxX in class MovementModelpublic int getMaxY()
MovementModelgetMaxY in class MovementModelpublic MovementModel replicate()
MovementModelreplicate in class MovementModelpublic static void reset()