public class ExternalPathMovement extends MovementModel
ExternalPathMovementReader for details.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVITY_FILE_S
activity file's path -setting id ("activeFile")
|
static java.lang.String |
MOVEMENT_FILE_S
external locations file's path -setting id ("traceFile")
|
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 |
|---|
ExternalPathMovement(ExternalPathMovement mm)
Copy-constructor.
|
ExternalPathMovement(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
Coord |
getInitialLocation()
Returns a new initial placement for a node
|
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.
|
void |
setHost(DTNHost host) |
generateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, reset, setComBus, toStringpublic static final java.lang.String MOVEMENT_FILE_S
public static final java.lang.String ACTIVITY_FILE_S
public ExternalPathMovement(Settings settings)
public ExternalPathMovement(ExternalPathMovement mm)
mm - public void setHost(DTNHost host)
setHost in class MovementModelhost - the host to setpublic boolean isActive()
MovementModelisActive in class MovementModelpublic Path getPath()
MovementModelgetPath in class MovementModelpublic Coord getInitialLocation()
MovementModelgetInitialLocation in class MovementModelpublic MovementModel replicate()
MovementModelreplicate in class MovementModelpublic double nextPathAvailable()
MovementModelMovementModel.WAIT_TIME from now.nextPathAvailable in class MovementModel