public class BusMovement extends MapRouteMovement
ROUTE_FILE_S, ROUTE_FIRST_STOP_S, ROUTE_TYPE_SbackAllowed, 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 |
|---|
BusMovement(BusMovement proto)
Create a new instance from a prototype
|
BusMovement(Settings settings)
Creates a new instance of BusMovement
|
| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Returns unique ID of the bus
|
Coord |
getInitialLocation()
Returns the first stop on the route
|
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).
|
BusMovement |
replicate()
Creates a replicate of the movement model.
|
getLastLocation, getStopsgetMap, getOkMapNodeTypes, isReady, selectRandomOkNode, setLocationgenerateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, nextPathAvailable, reset, setComBus, setHost, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisReady, setLocationpublic BusMovement(Settings settings)
settings - public BusMovement(BusMovement proto)
proto - public Coord getInitialLocation()
MapRouteMovementgetInitialLocation in class MapRouteMovementpublic Path getPath()
MovementModelgetPath in class MapRouteMovementpublic BusMovement replicate()
MovementModelreplicate in class MapRouteMovementpublic int getID()