public class ShortestPathMapBasedMovement 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 |
|---|---|
|
ShortestPathMapBasedMovement(Settings settings)
Creates a new movement model based on a Settings object's settings.
|
protected |
ShortestPathMapBasedMovement(ShortestPathMapBasedMovement mbm)
Copyconstructor.
|
| 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).
|
ShortestPathMapBasedMovement |
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 ShortestPathMapBasedMovement(Settings settings)
settings - The Settings object where the settings are read fromprotected ShortestPathMapBasedMovement(ShortestPathMapBasedMovement mbm)
mbm - The ShortestPathMapBasedMovement prototype to base
the new object topublic Path getPath()
MovementModelgetPath in class MapBasedMovementpublic ShortestPathMapBasedMovement replicate()
MovementModelreplicate in class MapBasedMovement