|
|||||||||
| 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 |
|---|
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, 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 from| Method Detail |
|---|
public Coord getInitialLocation()
MovementModel
getInitialLocation in class MovementModelpublic boolean isActive()
MovementModel
isActive in class MovementModelpublic double nextPathAvailable()
nextPathAvailable in class MovementModelpublic Path getPath()
MovementModel
getPath in class MovementModelpublic int getMaxX()
MovementModel
getMaxX in class MovementModelpublic int getMaxY()
MovementModel
getMaxY in class MovementModelpublic MovementModel replicate()
MovementModel
replicate in class MovementModelpublic static void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||