public class Vehicle
extends Object
Constructor and Description |
---|
Vehicle() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
add(String vehID,
String typeID,
String routeID,
int depart,
double pos,
double speed,
byte lane)
Add a new vehicle.
|
static SumoCommand |
addFull(String vehID,
String routeID,
String typeID,
String depart,
String departLane,
String departPosition,
String departSpeed,
String arrivalLane,
String arrivalPosition,
String arrivalSpeed,
String fromTAZ,
String toTAZ,
String line,
int person_capacity,
int person_number)
Add a new vehicle.
|
static SumoCommand |
changeLane(String vehID,
byte laneIndex,
int duration)
Forces a lane change to the lane with the given index; if successful, the lane will be chosen for the given amount of time.
|
static SumoCommand |
changeSublane(String vehID,
double latDist)
Forces a lateral change by the given amount (negative values indicate changing to the right, positive to the left)
This will override any other lane change motivations but conform to
safety-constraints as configured by laneChangeMode.
|
static SumoCommand |
changeTarget(String vehID,
String edgeID)
The vehicle's destination edge is set to the given.
|
static SumoCommand |
getAccel(String vehID)
Returns the acceleration of the named vehicle within the last step.
|
static SumoCommand |
getAccumulatedWaitingTime(String vehID)
Returns the vehicle class.
|
static SumoCommand |
getActionStepLength(String vehID)
Returns the action step length for this vehicle.
|
static SumoCommand |
getAdaptedTraveltime(String vehID,
int time,
String edgeID)
Returns the edge travel time for the given time as stored in the vehicle's internal container.
|
static SumoCommand |
getAllowedSpeed(String vehID)
Returns the maximum allowed speed on the current lane regarding speed factor in m/s for this vehicle.
|
static SumoCommand |
getAngle(String vehID)
Returns the angle of the named vehicle within the last time step.
|
static SumoCommand |
getApparentDecel(String vehID)
Returns the apparent deceleration in m/s^2 of this vehicle.
|
static SumoCommand |
getBestLanes(String vehID)
getBestLanes
|
static SumoCommand |
getCO2Emission(String vehID)
Returns the CO2 emission in mg for the last time step.
|
static SumoCommand |
getCOEmission(String vehID)
Returns the CO emission in mg for the last time step.
|
static SumoCommand |
getColor(String vehID)
Returns the vehicle's color (RGBA).
|
static SumoCommand |
getDecel(String vehID)
Returns the deceleration of the named vehicle within the last time step.
|
static SumoCommand |
getDistance(String vehID)
Get the distance to the starting point acts as a odometer
|
static SumoCommand |
getDrivingDistance(String vehID,
String edgeID,
double pos,
byte laneID)
Returns the driving distance (in m) of the named vehicle within the last tine step.
|
static SumoCommand |
getDrivingDistance2D(String vehID,
double x,
double y)
getDrivingDistance2D
|
static SumoCommand |
getEffort(String vehID,
int time,
String edgeID)
Returns the edge effort for the given time as stored in the vehicle's internal container.
|
static SumoCommand |
getElectricityConsumption(String vehID)
Returns the electricity consumption in ml for the last time step.
|
static SumoCommand |
getEmergencyDecel(String vehID)
Returns the maximal physically possible deceleration in m/s^2 of this vehicle.
|
static SumoCommand |
getEmissionClass(String vehID)
Returns the emission class of the named vehicle.
|
static SumoCommand |
getFuelConsumption(String vehID)
Returns the fuel consumption in ml for the last time step.
|
static SumoCommand |
getHCEmission(String vehID)
Returns the HC emission (in mg) during the last time step.
|
static SumoCommand |
getHeight(String vehID)
Returns the height in m of this vehicle.
|
static SumoCommand |
getIDCount()
Returns the number of all vehicles in the network.
|
static SumoCommand |
getIDList()
Returns a list of ids of all vehicles currently running within the scenario.
|
static SumoCommand |
getImperfection(String vehID)
getImperfection
|
static SumoCommand |
getLaneChangeMode(String vehID)
Gets the vehicle's lane change mode as a bitset.
|
static SumoCommand |
getLaneChangeState(String vehID,
int direction)
Returns the maximal physically possible deceleration in m/s^2 of this vehicle.
|
static SumoCommand |
getLaneID(String vehID)
Returns the id of the lane the named vehicle was at within the last step.
|
static SumoCommand |
getLaneIndex(String vehID)
Returns the index of the lane the named vehicle was at within the last step.
|
static SumoCommand |
getLanePosition(String vehID)
Returns the position of the vehicle along the lane (in m).
|
static SumoCommand |
getLastActionTime(String vehID)
Returns the time of last action point for this vehicle.
|
static SumoCommand |
getLateralAlignment(String vehID)
Returns The preferred lateral alignment of the vehicle
|
static SumoCommand |
getLateralLanePosition(String vehID)
Returns The lateral position of the vehicle on its current lane measured in m.
|
static SumoCommand |
getLeader(String vehID,
double dist)
Return the leading vehicle id together with the distance.
|
static SumoCommand |
getLength(String vehID)
Returns the length (in m) of the named vehicle.
|
static SumoCommand |
getLine(String vehID)
Returns the length (in m) of the named vehicle.
|
static SumoCommand |
getMaxSpeed(String vehID)
Returns the maximum speed(in m/s) of the named vehicle.
|
static SumoCommand |
getMaxSpeedLat(String vehID)
Returns the maximum lateral speed in m/s of this vehicle.
|
static SumoCommand |
getMinGap(String vehID)
Returns the minimum gap (in m) between this vehicle and the vehicle before it.
|
static SumoCommand |
getMinGapLat(String vehID)
Returns The desired lateral gap of this vehicle at 50km/h in m
|
static SumoCommand |
getNextStops(String vehID)
Return list of upcoming stops [(lane, endPos, stoppingPlaceID, stopFlags, duration, until), ...]
|
static SumoCommand |
getNextTLS(String vehID)
Return list of upcoming traffic lights [(tlsID, tlsIndex, distance, state), ...]
|
static SumoCommand |
getNoiseEmission(String vehID)
Returns the noise emission (in db) generated by the vehicle during the last time step.
|
static SumoCommand |
getNOxEmission(String vehID)
Returns the NOx emissions (in mg) generated by the vehicle during the last time step.
|
static SumoCommand |
getParameter(String vehID,
String param)
Returns the chosen parameter
|
static SumoCommand |
getPersonIDList(String vehID)
Returns the list of persons which includes those defined using attribute 'personNumber'
as well as
|
static SumoCommand |
getPersonNumber(String vehID)
getPersonNumber
|
static SumoCommand |
getPMxEmission(String vehID)
Returns the particular matter emissions (in mg) generated by the vehicle during the last time step.
|
static SumoCommand |
getPosition(String vehID)
Returns the position of the named vehicle within the last step [m,m].
|
static SumoCommand |
getPosition3D(String vehID)
Returns the position of the named vehicle within the last step [m,m,m].
|
static SumoCommand |
getRoadID(String vehID)
Returns the id of the edge the named vehicle was at within the last step.
|
static SumoCommand |
getRoute(String vehID)
Returns the ids of the edges the vehicle's route is made of.
|
static SumoCommand |
getRouteID(String vehID)
Returns the id of the route of the named vehicle.
|
static SumoCommand |
getRouteIndex(String vehID)
Returns the index of the current edge within the vehicles route or -1 if the vehicle has not yet departed
|
static SumoCommand |
getRoutingMode(String vehID)
returns the current routing mode:
tc.ROUTING_MODE_DEFAULT : use weight storages and fall-back to edge speeds (default)
tc.ROUTING_MODE_AGGREGATED : use global smoothed travel times from device.rerouting
|
static SumoCommand |
getShapeClass(String vehID)
getShapeClass
|
static SumoCommand |
getSignals(String vehID)
getSignals
|
static SumoCommand |
getSlope(String vehID)
getSlope
|
static SumoCommand |
getSpeed(String vehID)
Returns the speed (in m/s) of the named vehicle within the last step.
|
static SumoCommand |
getSpeedDeviation(String vehID)
Returns the standard deviation of the estimated maximum speed (see speed factor) divided by this speed.
|
static SumoCommand |
getSpeedFactor(String vehID)
Returns the factor by which the driver multiplies the speed read from street signs to estimate "real" maximum allowed speed.
|
static SumoCommand |
getSpeedMode(String vehID)
Returns the speed mode of a vehicle
|
static SumoCommand |
getSpeedWithoutTraCI(String vehID)
getSpeedWithoutTraCI
|
static SumoCommand |
getStopState(String vehID)
Returns information in regard to stopping: The returned integer is defined as 1 * stopped + 2 * parking + 4 * personTriggered + 8 * containerTriggered + 16 * isBusStop + 32 * isContainerStop with each of these flags defined as 0 or 1
|
static SumoCommand |
getTau(String vehID)
getTau
|
static SumoCommand |
getTypeID(String vehID)
Returns the id of the type of the named vehicle.
|
static SumoCommand |
getVehicleClass(String vehID)
Returns the vehicle class.
|
static SumoCommand |
getVia(String vehID)
Returns the ids of via edges for this vehicle
|
static SumoCommand |
getWaitingTime(String vehID)
The waiting time of a vehicle is defined as the time (in seconds) spent with a speed below 0.1m/s since the last time it was faster than 0.1m/s.
|
static SumoCommand |
getWidth(String vehID)
Returns the vehicle's width (in m).
|
static SumoCommand |
isAtBusStop(String vehID)
isAtBusStop
|
static SumoCommand |
isAtContainerStop(String vehID)
Return whether the vehicle is stopped at a container stop
|
static SumoCommand |
isRouteValid(String vehID)
Returns whether the Route is valid.
|
static SumoCommand |
isStopped(String vehID)
isStopped
|
static SumoCommand |
isStoppedParking(String vehID)
isStoppedParking
|
static SumoCommand |
isStoppedTriggered(String vehID)
Return whether the vehicle is stopped and waiting for a person or container
|
static SumoCommand |
moveTo(String vehID,
String laneID,
double pos)
Moves the vehicle to a new position.
|
static SumoCommand |
moveToXY(String vehID,
String edgeID,
int lane,
double x,
double y,
double angle,
byte keepRoute)
Place vehicle at the given x,y coordinates and force it's angle to
the given value (for drawing).
|
static SumoCommand |
remove(String vehID,
byte reason)
Removes vehicle with the given ID for the given reason.
|
static SumoCommand |
rerouteEffort(String vehID)
Computes a new route using the vehicle's internal and the global edge effort information.
|
static SumoCommand |
rerouteParkingArea(String vehID,
String parkingAreaID)
Changes the next parking area in parkingAreaID, updates the vehicle route,
and preserve consistency in case of passengers/containers on board.
|
static SumoCommand |
rerouteTraveltime(String vehID)
Computes a new route using the vehicle's internal and the global edge travel time information.
|
static SumoCommand |
resume(String vehID)
Continue after a stop
|
static SumoCommand |
setAccel(String vehID,
double accel)
Sets the acceleration of the named vehicle.
|
static SumoCommand |
setActionStepLength(String vehID,
double actionStepLength,
boolean resetActionOffset)
Sets the action step length for this vehicle.
|
static SumoCommand |
setAdaptedTraveltime(String vehID,
int begTime,
int endTime,
String edgeID,
double time)
Sets the edge travel time of the named vehicle.
|
static SumoCommand |
setApparentDecel(String vehID,
double decel)
Sets the apparent deceleration in m/s^2 for this vehicle.
|
static SumoCommand |
setBusStop(String vehID,
String stopID,
int duration,
int until)
Adds or modifies a bus stop with the given parameters.
|
static SumoCommand |
setChargingStationStop(String vehID,
String stopID,
int duration,
int until)
Adds or modifies a stop at a chargingStation with the given parameters.
|
static SumoCommand |
setColor(String vehID,
SumoColor color)
Sets the vehicle's color (RGBA).
|
static SumoCommand |
setContainerStop(String vehID,
String stopID,
int duration,
int until)
Adds or modifies a container stop with the given parameters.
|
static SumoCommand |
setDecel(String vehID,
double decel)
Sets the deceleration of the named vehicle.
|
static SumoCommand |
setEffort(String vehID,
int begTime,
int endTime,
String edgeID,
double effort)
Sets the edge effort for the given time as stored in the vehicle's internal container.
|
static SumoCommand |
setEmergencyDecel(String vehID,
double decel)
Sets the maximal physically possible deceleration in m/s^2 for this vehicle.
|
static SumoCommand |
setEmissionClass(String vehID,
String clazz)
Sets the emission class of the named vehicle.
|
static SumoCommand |
setHeight(String vehID,
double height)
Sets the height in m for this vehicle.
|
static SumoCommand |
setImperfection(String vehID,
double imperfection)
setImperfection
|
static SumoCommand |
setLaneChangeMode(String vehID,
int lcm)
Sets the vehicle's lane change mode as a bitset.
|
static SumoCommand |
setLateralAlignment(String vehID,
String align)
Sets the preferred lateral alignment for this vehicle.
|
static SumoCommand |
setLength(String vehID,
double length)
Sets the length (in m) of the named vehicle.
|
static SumoCommand |
setLine(String vehID,
String line)
Sets the line information for this vehicle.
|
static SumoCommand |
setMaxSpeed(String vehID,
double speed)
Sets the maximum speed (in m/s) of the named vehicle.
|
static SumoCommand |
setMaxSpeedLat(String vehID,
double speed)
Sets the maximum lateral speed in m/s for this vehicle.
|
static SumoCommand |
setMinGap(String vehID,
double minGap)
Sets the minimum gap (in m) between this vehicle and the vehicle before it.
|
static SumoCommand |
setMinGapLat(String vehID,
double minGapLat)
Sets the minimum lateral gap of the vehicle at 50km/h in m
|
static SumoCommand |
setParkingAreaStop(String vehID,
String stopID,
int duration)
Adds or modifies a stop at a parkingArea with the given parameters.
|
static SumoCommand |
setRoute(String vehID,
SumoStringList edgeList)
Sets the IDs of the edges the vehicle's route is made of.
|
static SumoCommand |
setRouteID(String vehID,
String routeID)
Sets the id of the route of the named vehicle.
|
static SumoCommand |
setRoutingMode(String vehID,
int routingMode)
sets the current routing mode:
tc.ROUTING_MODE_DEFAULT : use weight storages and fall-back to edge speeds (default)
tc.ROUTING_MODE_AGGREGATED : use global smoothed travel times from device.rerouting
|
static SumoCommand |
setShapeClass(String vehID,
String clazz)
setShapeClass
|
static SumoCommand |
setSignals(String vehID,
int signals)
setSignals
|
static SumoCommand |
setSpeed(String vehID,
double speed)
Sets the speed (in m/s) of the named vehicle.
|
static SumoCommand |
setSpeedDeviation(String vehID,
double deviation)
Sets the standard deviation of the estimated maximum speed.
|
static SumoCommand |
setSpeedFactor(String vehID,
double factor)
Sets the factor by which the driver multiplies the speed read from street signs to estimate "real" maximum allowed speed.
|
static SumoCommand |
setSpeedMode(String vehID,
int sm)
Sets the vehicle's speed mode as a bitset.
|
static SumoCommand |
setStop(String vehID,
String edgeID,
double pos,
byte laneIndex,
int duration,
SumoStopFlags sf)
Lets the vehicle stop at the given edge, at the given position and lane.
|
static SumoCommand |
setTau(String vehID,
double tau)
setTau
|
static SumoCommand |
setType(String vehID,
String typeID)
Sets the id of the type for the named vehicle.
|
static SumoCommand |
setVehicleClass(String vehID,
String clazz)
Sets the vehicle class.
|
static SumoCommand |
setVia(String vehID,
SumoStringList edgeList)
Sets the line information for this vehicle.
|
static SumoCommand |
setWidth(String vehID,
double width)
Sets the vehicle's width (in m).
|
static SumoCommand |
slowDown(String vehID,
double speed,
int duration)
Reduces the speed to the given for the given amount of time.
|
static SumoCommand |
updateBestLanes(String vehID)
Inserts the information about the travel time of edge "edgeID" valid
from begin time to end time into the vehicle's internal edge weights
container.
|
public static SumoCommand getAccel(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getActionStepLength(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getIDCount()
public static SumoCommand getAdaptedTraveltime(String vehID, int time, String edgeID)
vehID
- id of the vehicletime
- timeedgeID
- id of the edgepublic static SumoCommand getAngle(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getApparentDecel(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getMaxSpeedLat(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getMinGapLat(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getAllowedSpeed(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getHeight(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLateralLanePosition(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLaneChangeState(String vehID, int direction)
vehID
- id of the vehicledirection
- directionpublic static SumoCommand getEmergencyDecel(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLastActionTime(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLateralAlignment(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLaneChangeMode(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLeader(String vehID, double dist)
vehID
- id of the vehicledist
- distancepublic static SumoCommand getPersonNumber(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getBestLanes(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getCO2Emission(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getCOEmission(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getColor(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getDecel(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getDrivingDistance(String vehID, String edgeID, double pos, byte laneID)
vehID
- idedgeID
- edge idpos
- poslaneID
- lane idpublic static SumoCommand getDrivingDistance2D(String vehID, double x, double y)
vehID
- id of the vehiclex
- xy
- ypublic static SumoCommand getDistance(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getEffort(String vehID, int time, String edgeID)
vehID
- id of the vehicletime
- timeedgeID
- edge idpublic static SumoCommand getEmissionClass(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getElectricityConsumption(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getFuelConsumption(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getHCEmission(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getIDList()
public static SumoCommand getImperfection(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLaneID(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLaneIndex(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLanePosition(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLength(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getLine(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getMaxSpeed(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getMinGap(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getNextTLS(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getNextStops(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getNOxEmission(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getNoiseEmission(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getParameter(String vehID, String param)
vehID
- a string identifying the vehicleparam
- a string identifying the parameterpublic static SumoCommand getPMxEmission(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getPosition(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getPosition3D(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getRoadID(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getRoute(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getRouteID(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getRouteIndex(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getRoutingMode(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getShapeClass(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSignals(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSlope(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSpeed(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSpeedDeviation(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSpeedFactor(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSpeedMode(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getSpeedWithoutTraCI(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getStopState(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getTau(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getVia(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getWaitingTime(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getTypeID(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getPersonIDList(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getVehicleClass(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getAccumulatedWaitingTime(String vehID)
vehID
- id of the vehiclepublic static SumoCommand getWidth(String vehID)
vehID
- id of the vehiclepublic static SumoCommand isStopped(String vehID)
vehID
- id of the vehiclepublic static SumoCommand isStoppedTriggered(String vehID)
vehID
- id of the vehiclepublic static SumoCommand isAtContainerStop(String vehID)
vehID
- id of the vehiclepublic static SumoCommand isStoppedParking(String vehID)
vehID
- id of the vehiclepublic static SumoCommand isAtBusStop(String vehID)
vehID
- id of the vehiclepublic static SumoCommand isRouteValid(String vehID)
vehID
- id of the vehiclepublic static SumoCommand slowDown(String vehID, double speed, int duration)
vehID
- id of the vehiclespeed
- speedduration
- durationpublic static SumoCommand add(String vehID, String typeID, String routeID, int depart, double pos, double speed, byte lane)
vehID
- vehicle idtypeID
- type idrouteID
- route iddepart
- departpos
- positionspeed
- speedlane
- lanepublic static SumoCommand addFull(String vehID, String routeID, String typeID, String depart, String departLane, String departPosition, String departSpeed, String arrivalLane, String arrivalPosition, String arrivalSpeed, String fromTAZ, String toTAZ, String line, int person_capacity, int person_number)
public static SumoCommand changeLane(String vehID, byte laneIndex, int duration)
vehID
- vehicle idlaneIndex
- lane indexduration
- durationpublic static SumoCommand changeTarget(String vehID, String edgeID)
vehID
- vehicle idedgeID
- edge idpublic static SumoCommand changeSublane(String vehID, double latDist)
vehID
- vehicle idlatDist
- latDistpublic static SumoCommand setParkingAreaStop(String vehID, String stopID, int duration)
vehID
- vehicle idstopID
- stopIDduration
- durationpublic static SumoCommand moveTo(String vehID, String laneID, double pos)
vehID
- vehicle idlaneID
- lane idpos
- positionpublic static SumoCommand moveToXY(String vehID, String edgeID, int lane, double x, double y, double angle, byte keepRoute)
vehID
- vehicle idedgeID
- edge idlane
- lanex
- xy
- yangle
- anglekeepRoute
- keepRoutepublic static SumoCommand remove(String vehID, byte reason)
vehID
- vehicle idreason
- reasonpublic static SumoCommand rerouteEffort(String vehID)
vehID
- id of the vehiclepublic static SumoCommand rerouteTraveltime(String vehID)
vehID
- id of the vehiclepublic static SumoCommand setAccel(String vehID, double accel)
vehID
- id of the vehicleaccel
- accelerationpublic static SumoCommand setAdaptedTraveltime(String vehID, int begTime, int endTime, String edgeID, double time)
vehID
- id of the vehiclebegTime
- begin timeendTime
- end timeedgeID
- edge idtime
- timepublic static SumoCommand setLateralAlignment(String vehID, String align)
vehID
- id of the vehiclealign
- alignpublic static SumoCommand setApparentDecel(String vehID, double decel)
vehID
- id of the vehicledecel
- decelpublic static SumoCommand setMinGapLat(String vehID, double minGapLat)
vehID
- id of the vehicleminGapLat
- minGapLatpublic static SumoCommand setColor(String vehID, SumoColor color)
vehID
- id of the vehiclecolor
- colorpublic static SumoCommand setDecel(String vehID, double decel)
vehID
- id of the vehicledecel
- decelerationpublic static SumoCommand setHeight(String vehID, double height)
vehID
- id of the vehicleheight
- in mpublic static SumoCommand setLaneChangeMode(String vehID, int lcm)
vehID
- id of the vehiclelcm
- lane change modelpublic static SumoCommand setEmergencyDecel(String vehID, double decel)
vehID
- id of the vehicledecel
- decelpublic static SumoCommand setRoute(String vehID, SumoStringList edgeList)
vehID
- id of the vehicleedgeList
- edges listpublic static SumoCommand setRoutingMode(String vehID, int routingMode)
vehID
- id of the vehicleroutingMode
- routingModepublic static SumoCommand setType(String vehID, String typeID)
vehID
- id of the vehicletypeID
- type idpublic static SumoCommand setEffort(String vehID, int begTime, int endTime, String edgeID, double effort)
vehID
- id of the vehiclebegTime
- begin timeendTime
- end timeedgeID
- edge ideffort
- effortpublic static SumoCommand setEmissionClass(String vehID, String clazz)
vehID
- id of the vehicleclazz
- emission classpublic static SumoCommand setImperfection(String vehID, double imperfection)
vehID
- vehicle idimperfection
- imperfectionpublic static SumoCommand setLength(String vehID, double length)
vehID
- vehicle idlength
- lengthpublic static SumoCommand setActionStepLength(String vehID, double actionStepLength, boolean resetActionOffset)
vehID
- vehicle idactionStepLength
- actionStepLengthresetActionOffset
- resetActionOffsetpublic static SumoCommand setLine(String vehID, String line)
vehID
- vehicle idline
- linepublic static SumoCommand setVia(String vehID, SumoStringList edgeList)
vehID
- vehicle idedgeList
- edgespublic static SumoCommand setMaxSpeed(String vehID, double speed)
vehID
- vehicle idspeed
- speedpublic static SumoCommand setMaxSpeedLat(String vehID, double speed)
vehID
- vehicle idspeed
- speedpublic static SumoCommand setMinGap(String vehID, double minGap)
vehID
- vehicle idminGap
- minimum gappublic static SumoCommand setRouteID(String vehID, String routeID)
vehID
- vehicle idrouteID
- route idpublic static SumoCommand setShapeClass(String vehID, String clazz)
vehID
- vehicle idclazz
- shape classpublic static SumoCommand setSignals(String vehID, int signals)
vehID
- vehicle idsignals
- signalspublic static SumoCommand setSpeed(String vehID, double speed)
vehID
- vehicle idspeed
- speedpublic static SumoCommand setSpeedDeviation(String vehID, double deviation)
vehID
- vehicle iddeviation
- deviationpublic static SumoCommand setSpeedFactor(String vehID, double factor)
vehID
- vehicle idfactor
- factorpublic static SumoCommand setSpeedMode(String vehID, int sm)
vehID
- vehicle idsm
- speed modepublic static SumoCommand setStop(String vehID, String edgeID, double pos, byte laneIndex, int duration, SumoStopFlags sf)
vehID
- vehicle idedgeID
- edge idpos
- positonlaneIndex
- lane indexduration
- durationsf
- stop flagspublic static SumoCommand setChargingStationStop(String vehID, String stopID, int duration, int until)
vehID
- stopID
- duration
- until
- public static SumoCommand setBusStop(String vehID, String stopID, int duration, int until)
vehID
- id of the vehiclestopID
- duration
- until
- public static SumoCommand setContainerStop(String vehID, String stopID, int duration, int until)
vehID
- id of the vehiclestopID
- duration
- until
- public static SumoCommand resume(String vehID)
vehID
- vehicle idpublic static SumoCommand setTau(String vehID, double tau)
vehID
- vehicle idtau
- taupublic static SumoCommand setVehicleClass(String vehID, String clazz)
vehID
- vehicle idclazz
- vehicle classpublic static SumoCommand setWidth(String vehID, double width)
vehID
- vehicle idwidth
- widthpublic static SumoCommand updateBestLanes(String vehID)
vehID
- vehicle idpublic static SumoCommand rerouteParkingArea(String vehID, String parkingAreaID)
vehID
- vehicle idparkingAreaID
- parkingAreaID