public class EvacuationCenterMovement 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 |
EvacuationCenterMovement(EvacuationCenterMovement mbm)
Creates a new instance of EvacuationCenterMovement from a prototype
|
|
EvacuationCenterMovement(Settings settings)
Creates a new instance of EvacuationCenterMovement
|
| 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).
|
boolean |
isReady()
Checks if the movement model is finished doing its task and it's time to
switch to the next movement model.
|
double |
nextPathAvailable()
Returns a sim time when the next path is available.
|
EvacuationCenterMovement |
replicate()
Creates a replicate of the movement model.
|
getInitialLocation, getLastLocation, getMap, getOkMapNodeTypes, selectRandomOkNode, setLocationgenerateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, reset, setComBus, setHost, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastLocation, setLocationpublic EvacuationCenterMovement(Settings settings)
settings - protected EvacuationCenterMovement(EvacuationCenterMovement mbm)
proto - public Path getPath()
MovementModelgetPath in class MapBasedMovementpublic boolean isReady()
SwitchableMovementisReady in interface SwitchableMovementisReady in class MapBasedMovementpublic double nextPathAvailable()
MovementModelMovementModel.WAIT_TIME from now.nextPathAvailable in class MovementModelpublic EvacuationCenterMovement replicate()
MovementModelreplicate in class MapBasedMovement