public class ShortestPathMapBasedPoiMovement extends MapBasedMovement implements SwitchableMovement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROBABILITY_TO_CHOOSE_RANDOM_POI |
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 |
|---|---|
|
ShortestPathMapBasedPoiMovement(Settings settings)
Creates a new movement model based on a Settings object's settings.
|
protected |
ShortestPathMapBasedPoiMovement(ShortestPathMapBasedPoiMovement 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).
|
PointsOfInterestEvac |
getPois() |
boolean |
isReady()
Checks if the movement model is finished doing its task and it's time to
switch to the next movement model.
|
ShortestPathMapBasedPoiMovement |
replicate()
Creates a replicate of the movement model.
|
void |
setHost(DTNHost host) |
getInitialLocation, getLastLocation, getMap, getOkMapNodeTypes, selectRandomOkNode, setLocationgenerateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, nextPathAvailable, reset, setComBus, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastLocation, setLocationpublic static final java.lang.String PROBABILITY_TO_CHOOSE_RANDOM_POI
public ShortestPathMapBasedPoiMovement(Settings settings)
settings - The Settings object where the settings are read fromprotected ShortestPathMapBasedPoiMovement(ShortestPathMapBasedPoiMovement mbm)
mbm - The ShortestPathMapBasedPoiMovement prototype to base the new
object topublic Path getPath()
MovementModelgetPath in class MapBasedMovementpublic ShortestPathMapBasedPoiMovement replicate()
MovementModelreplicate in class MapBasedMovementpublic PointsOfInterestEvac getPois()
public boolean isReady()
SwitchableMovementisReady in interface SwitchableMovementisReady in class MapBasedMovementpublic void setHost(DTNHost host)
setHost in class MovementModelhost - the host to set