public class WorkingDayMovement extends ExtendedMovementModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROBABILITY_TO_GO_SHOPPING_SETTING |
static java.lang.String |
PROBABILITY_TO_OWN_CAR_SETTING |
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, host, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE| Constructor and Description |
|---|
WorkingDayMovement(Settings settings)
Creates a new instance of WorkingDayMovement
|
WorkingDayMovement(WorkingDayMovement proto)
Creates a new instance of WorkingDayMovement from a prototype
|
| Modifier and Type | Method and Description |
|---|---|
Coord |
getHomeLocation() |
Coord |
getInitialLocation()
Returns a new initial placement for a node
|
Coord |
getOfficeLocation() |
Coord |
getShoppingLocation() |
boolean |
newOrders()
Method is called between each getPath() request when the current MM is
ready (isReady() method returns true).
|
MovementModel |
replicate()
Creates a replicate of the movement model.
|
generateWaitTime, getCurrentMovementModel, getPath, setCurrentMovementModelgenerateSpeed, getComBus, getHost, getMaxX, getMaxY, isActive, nextPathAvailable, reset, setComBus, setHost, toStringpublic static final java.lang.String PROBABILITY_TO_OWN_CAR_SETTING
public static final java.lang.String PROBABILITY_TO_GO_SHOPPING_SETTING
public WorkingDayMovement(Settings settings)
settings - public WorkingDayMovement(WorkingDayMovement proto)
proto - public boolean newOrders()
ExtendedMovementModelnewOrders in class ExtendedMovementModelpublic Coord getInitialLocation()
MovementModelgetInitialLocation in class MovementModelpublic MovementModel replicate()
MovementModelreplicate in class MovementModelpublic Coord getOfficeLocation()
public Coord getHomeLocation()
public Coord getShoppingLocation()