|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmovement.MovementModel
movement.ExternalMovement
public class ExternalMovement
Movement model that uses external data of node locations.
Field Summary | |
---|---|
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") |
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 | |
---|---|
ExternalMovement(Settings settings)
Constructor for the prototype. |
Method Summary | |
---|---|
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 |
Methods inherited from class movement.MovementModel |
---|
generateSpeed, generateWaitTime, getComBus, 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 EXTERNAL_MOVEMENT_NS
public static final java.lang.String MOVEMENT_FILE_S
public static final java.lang.String NROF_PRELOAD_S
Constructor Detail |
---|
public ExternalMovement(Settings settings)
settings
- Where settings are read fromMethod Detail |
---|
public Coord getInitialLocation()
MovementModel
getInitialLocation
in class MovementModel
public boolean isActive()
MovementModel
isActive
in class MovementModel
public double nextPathAvailable()
nextPathAvailable
in class MovementModel
public Path getPath()
MovementModel
getPath
in class MovementModel
public int getMaxX()
MovementModel
getMaxX
in class MovementModel
public int getMaxY()
MovementModel
getMaxY
in class MovementModel
public MovementModel replicate()
MovementModel
replicate
in class MovementModel
public static void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |