public class RandomPathMapBasedMovement extends MapBasedMovement implements SwitchableMovement
backAllowed, FILE_S, lastMapNode, MAP_BASE_MOVEMENT_NS, MAP_SELECT_S, maxPathLength, minPathLength, NROF_FILES_ScomBus, DEF_SPEEDS, DEF_WAIT_TIMES, host, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
RandomPathMapBasedMovement(RandomPathMapBasedMovement mbm)
Copyconstructor.
|
|
RandomPathMapBasedMovement(Settings settings)
Creates a new movement model based on a Settings object's settings.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
RandomPathMapBasedMovement |
replicate()
Creates a replicate of the movement model.
|
void |
setHost(DTNHost host) |
getInitialLocation, getLastLocation, getMap, getOkMapNodeTypes, isReady, selectRandomOkNode, setLocationgenerateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, nextPathAvailable, reset, setComBus, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastLocation, isReady, setLocationpublic RandomPathMapBasedMovement(Settings settings)
settings - The Settings object where the settings are read fromprotected RandomPathMapBasedMovement(RandomPathMapBasedMovement mbm)
mbm - The ShortestPathMapBasedMovement prototype to base the new
object topublic Path getPath()
MovementModelgetPath in class MapBasedMovementpublic RandomPathMapBasedMovement replicate()
MovementModelreplicate in class MapBasedMovementpublic void setHost(DTNHost host)
setHost in class MovementModelhost - the host to set