public class HomeMovement 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| Constructor and Description |
|---|
HomeMovement(HomeMovement mbm)
Copyconstructor.
|
HomeMovement(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).
|
HomeMovement |
replicate()
Creates a replicate of the movement model.
|
getInitialLocation, getLastLocation, getMap, getOkMapNodeTypes, isReady, selectRandomOkNode, setLocationgenerateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, nextPathAvailable, reset, setComBus, setHost, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastLocation, isReady, setLocationpublic HomeMovement(Settings settings)
settings - The Settings object where the settings are read frompublic HomeMovement(HomeMovement mbm)
mbm - The HomeMovement prototype to base the new object topublic Path getPath()
MovementModelgetPath in class MapBasedMovementpublic HomeMovement replicate()
MovementModelreplicate in class MapBasedMovement