| Package | Description |
|---|---|
| de.tudresden.sumo.cmd | |
| de.tudresden.sumo.util | |
| it.polito.appeal.traci |
| Modifier and Type | Method and Description |
|---|---|
static SumoCommand |
Edge.adaptTraveltime(String edgeID,
int time)
Adapt the travel time value (in s) used for (re-)routing on the given
edge.
|
static SumoCommand |
Poi.add(String poiID,
double x,
double y,
SumoColor color,
String poiType,
int layer)
Add a new point-of-interest.
|
static SumoCommand |
Vehicle.add(String vehID,
String typeID,
String routeID,
int depart,
double pos,
double speed,
byte lane)
Add a new vehicle.
|
static SumoCommand |
Polygon.add(String polygonID,
SumoGeometry shape,
SumoColor color,
boolean fill,
String polygonType,
int layer)
Add a new polygon.
|
static SumoCommand |
Route.add(String routeID,
SumoStringList edges)
Add a new route.
|
static SumoCommand |
Vehicle.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 |
Vehicle.changeTarget(String vehID,
String edgeID)
The vehicle's destination edge is set to the given.
|
static SumoCommand |
Simulation.clearPending(String routeID)
Clear pending
|
static SumoCommand |
Simulation.convert2D(String edgeID,
double pos,
byte laneIndex,
String toGeo)
convert2D
|
static SumoCommand |
Simulation.convert3D(String edgeID,
double pos,
byte laneIndex,
String toGeo)
convert3D
|
static SumoCommand |
Simulation.convertGeo(double x,
double y,
String fromGeo)
convertGeo
|
static SumoCommand |
Simulation.convertRoad(double x,
double y,
String isGeo)
convertRoad
|
static SumoCommand |
Vehicletype.getAccel(String typeID)
Returns the maximum acceleration of the named vehicle class.
|
static SumoCommand |
Vehicle.getAccel(String vehID)
Returns the acceleration of the named vehicle within the last step.
|
static SumoCommand |
Edge.getAdaptedTraveltime(String edgeID,
int time)
Returns the travel time value (in s) used for (re-)routing.
|
static SumoCommand |
Vehicle.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 |
Lane.getAllowed(String laneID)
Returns a list of allowed vehicle classes.
|
static SumoCommand |
Vehicle.getAllowedSpeed(String vehID)
Returns the maximum allowed speed on the current lane regarding speed factor in m/s for this vehicle.
|
static SumoCommand |
Person.getAngle(String id)
get angle
|
static SumoCommand |
Vehicle.getAngle(String vehID)
Returns the angle of the named vehicle within the last time step.
|
static SumoCommand |
Simulation.getArrivedIDList()
Returns a list of IDs of vehicles which arrived in this time step.
|
static SumoCommand |
Simulation.getArrivedNumber()
Returns the number of vehicles which arrived in this time step.
|
static SumoCommand |
Vehicle.getBestLanes(String vehID)
getBestLanes
|
static SumoCommand |
Gui.getBoundary(String viewID)
Returns the coordinates of the lower left and the upper right corner of
the currently visible view.
|
static SumoCommand |
Simulation.getBusStopWaiting()
Returns the current waiting time on bus stops(in ms).
|
static SumoCommand |
Lane.getCO2Emission(String laneID)
Returns the CO2 emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
Vehicle.getCO2Emission(String vehID)
Returns the CO2 emission in mg for the last time step.
|
static SumoCommand |
Edge.getCO2Emission(String edgeID)
Returns the CO2 emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
Lane.getCOEmission(String laneID)
Returns the CO emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
Vehicle.getCOEmission(String vehID)
Returns the CO emission in mg for the last time step.
|
static SumoCommand |
Edge.getCOEmission(String edgeID)
Returns the CO emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
Polygon.getColor(String polygonID)
Returns the color of this polygon.
|
static SumoCommand |
Person.getColor(String id)
get color
|
static SumoCommand |
Poi.getColor(String poiID)
Returns the color of this poi.
|
static SumoCommand |
Vehicletype.getColor(String typeID)
Returns the vehicle type's color.
|
static SumoCommand |
Vehicle.getColor(String vehID)
Returns the vehicle's color (RGBA).
|
static SumoCommand |
Trafficlights.getCompleteRedYellowGreenDefinition(String tlsID)
Returns the complete traffic light program.
|
static SumoCommand |
Trafficlights.getControlledLanes(String tlsID)
Returns the list of lanes which are controlled by the named traffic light.
|
static SumoCommand |
Trafficlights.getControlledLinks(String tlsID)
Returns the links controlled by the traffic light, sorted by the signal index and described by giving the incoming, outgoing, and via lane.
|
static SumoCommand |
Simulation.getCurrentTime()
getCurrentTime
|
static SumoCommand |
Vehicletype.getDecel(String typeID)
Returns the maximum deceleration of the names vehicle type.
|
static SumoCommand |
Vehicle.getDecel(String vehID)
Returns the deceleration of the named vehicle within the last time step.
|
static SumoCommand |
Simulation.getDeltaT()
getDeltaT
|
static SumoCommand |
Simulation.getDepartedIDList()
Returns a list of IDs of vehicles which departed in this time step.
|
static SumoCommand |
Simulation.getDepartedNumber()
Returns the number of vehicles which departed in this time step.
|
static SumoCommand |
Lane.getDisallowed(String laneID)
Returns a list of disallowed vehicle classes.
|
static SumoCommand |
Vehicle.getDistance(String vehID)
Get the distance to the starting point acts as a odometer
|
static SumoCommand |
Simulation.getDistance2D(double x1,
double y1,
double x2,
double y2,
String isGeo,
String isDriving) |
static SumoCommand |
Simulation.getDistanceRoad(String edgeID1,
double pos1,
String edgeID2,
double pos2,
String isDriving) |
static SumoCommand |
Vehicle.getDrivingDistance(String vehID,
String edgeID,
double pos,
int laneID)
Returns the driving distance (in m) of the named vehicle within the last tine step.
|
static SumoCommand |
Vehicle.getDrivingDistance2D(String vehID,
double x,
double y)
getDrivingDistance2D
|
static SumoCommand |
Lane.getEdgeID(String laneID)
Returns the ID of the edge this lane belongs to.
|
static SumoCommand |
Route.getEdges(String routeID)
Returns the IDs of the edges this route covers.
|
static SumoCommand |
Edge.getEffort(String edgeID,
int time)
Returns the effort value used for (re-)routing.
|
static SumoCommand |
Vehicle.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 |
Vehicletype.getEmissionClass(String typeID)
Returns the emission class of the named vehicle type.
|
static SumoCommand |
Vehicle.getEmissionClass(String vehID)
Returns the emission class of the named vehicle.
|
static SumoCommand |
Simulation.getEndingTeleportIDList()
Returns a list of IDs of vehicles which ended to be teleported in this time step.
|
static SumoCommand |
Simulation.getEndingTeleportNumber()
Returns the number of vehicles which ended to be teleported in this time step.
|
static SumoCommand |
Lane.getFuelConsumption(String laneID)
Returns the fuel consumption (in ml) on the given lane during the last
time step.
|
static SumoCommand |
Vehicle.getFuelConsumption(String vehID)
Returns the fuel consumption in ml for the last time step.
|
static SumoCommand |
Edge.getFuelConsumption(String edgeID)
Returns the fuel consumption (in ml) on the given edge during the last
time step.
|
static SumoCommand |
Lane.getHCEmission(String laneID)
Returns the HC emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
Vehicle.getHCEmission(String vehID)
Returns the HC emission (in mg) during the last time step.
|
static SumoCommand |
Edge.getHCEmission(String edgeID)
Returns the HC emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
Route.getIDCount()
Returns the number of all Routes in the network.
|
static SumoCommand |
Polygon.getIDCount()
Returns the number of all Polygons in the network.
|
static SumoCommand |
Lane.getIDCount()
Returns the number of all lanes in the network.
|
static SumoCommand |
Person.getIDCount()
Returns the number of all persons in the network.
|
static SumoCommand |
Poi.getIDCount()
Returns the number of all Poi's in the network.
|
static SumoCommand |
Trafficlights.getIDCount()
Returns the number of all traffic lights in the network.
|
static SumoCommand |
Vehicletype.getIDCount()
Returns the number of all vehicle types in the network.
|
static SumoCommand |
Vehicle.getIDCount()
Returns the number of all vehicles in the network.
|
static SumoCommand |
Edge.getIDCount()
Returns the number of edges in the network.
|
static SumoCommand |
Multientryexit.getIDCount()
Returns the number of all multi-entry/multi-exit detectors in the network.
|
static SumoCommand |
Junction.getIDCount()
Returns the number of all junctions in the network.
|
static SumoCommand |
ArealDetector.getIDCount()
Returns the number of the areal detectors in the network.
|
static SumoCommand |
Inductionloop.getIDCount()
Returns the number of all induction loops in the network.
|
static SumoCommand |
Route.getIDList()
Returns a list of IDs of all currently loaded routes.
|
static SumoCommand |
Polygon.getIDList()
Returns a list of IDs of all polygons.
|
static SumoCommand |
Lane.getIDList()
Returns a list of IDs of all lanes in the network.
|
static SumoCommand |
Person.getIDList()
Returns a list of ids of all persons
|
static SumoCommand |
Poi.getIDList()
Returns a list of IDs of all poi.
|
static SumoCommand |
Trafficlights.getIDList()
Returns a list of IDs of all traffic lights within the scenario.
|
static SumoCommand |
Vehicletype.getIDList()
Returns a list of all known vehicle types.
|
static SumoCommand |
Gui.getIDList()
Returns the list of available views (open windows).
|
static SumoCommand |
Vehicle.getIDList()
Returns a list of ids of all vehicles currently running within the scenario.
|
static SumoCommand |
Edge.getIDList()
Returns a list of all edges in the network.
|
static SumoCommand |
Multientryexit.getIDList()
Returns a list of IDs of all multi-entry/multi-exit detectors within the
scenario.
|
static SumoCommand |
Junction.getIDList()
Returns a list of IDs of all junctions within the scenario.
|
static SumoCommand |
ArealDetector.getIDList()
Returns a list of all areal detectors in the network.
|
static SumoCommand |
Inductionloop.getIDList()
Returns a list of IDs of all induction loops within the scenario.
|
static SumoCommand |
Vehicletype.getImperfection(String typeID)
getImperfection
|
static SumoCommand |
Vehicle.getImperfection(String vehID)
getImperfection
|
static SumoCommand |
ArealDetector.getJamLengthMeters(String loopID)
getJamLengthMeters
|
static SumoCommand |
ArealDetector.getJamLengthVehicle(String loopID)
getJamLengthVehicle
|
static SumoCommand |
Vehicle.getLaneID(String vehID)
Returns the id of the lane the named vehicle was at within the last step.
|
static SumoCommand |
Inductionloop.getLaneID(String loopID)
Returns the ID of the lane the loop is placed at.
|
static SumoCommand |
Vehicle.getLaneIndex(String vehID)
Returns the index of the lane the named vehicle was at within the last step.
|
static SumoCommand |
Person.getLanePosition(String id)
get lane position
|
static SumoCommand |
Vehicle.getLanePosition(String vehID)
Returns the position of the vehicle along the lane (in m).
|
static SumoCommand |
Lane.getLastStepHaltingNumber(String laneID)
Returns the total number of halting vehicles on the given lane within the
last time step.
|
static SumoCommand |
Edge.getLastStepHaltingNumber(String edgeID)
Returns the total number of halting vehicles on the given edge within the
last time step.
|
static SumoCommand |
Multientryexit.getLastStepHaltingNumber(String detID)
Returns the number of vehicles which were halting during the last time
step.
|
static SumoCommand |
Lane.getLastStepLength(String laneID)
Returns the total vehicle length (in m) on the given lane during the last
time step.
|
static SumoCommand |
Edge.getLastStepLength(String edgeID)
Returns the total vehicle length (in m) on the given edge within the last
time step.
|
static SumoCommand |
Inductionloop.getLastStepMeanLength(String loopID)
Returns the mean length of vehicles (in m) which were on the detector in
the last step.
|
static SumoCommand |
Lane.getLastStepMeanSpeed(String laneID)
Returns the mean speed (in m/s) on the given lane within the last time
step.
|
static SumoCommand |
Edge.getLastStepMeanSpeed(String edgeID)
Returns the mean speed of vehicles (in m/s) that were on the named
induction loop within the last simulation step.
|
static SumoCommand |
Multientryexit.getLastStepMeanSpeed(String detID)
Returns the mean speed of vehicles (in m/s) that have been within the
named multi-entry/multi-exit detector within the last simulation step.
|
static SumoCommand |
ArealDetector.getLastStepMeanSpeed(String loopID)
getLastStepMeanSpeed
|
static SumoCommand |
Inductionloop.getLastStepMeanSpeed(String loopID)
Returns the mean speed of vehicles (in m/s) that were on the named
induction loop within the last simulation step.
|
static SumoCommand |
Lane.getLastStepOccupancy(String laneID)
Returns the occupancy (in %) on the given lane during the last time step.
|
static SumoCommand |
Edge.getLastStepOccupancy(String edgeID)
Returns the percentage of time (in %) the detector was occupied by a
vehicle.
|
static SumoCommand |
ArealDetector.getLastStepOccupancy(String loopID)
getLastStepOccupancy
|
static SumoCommand |
Inductionloop.getLastStepOccupancy(String loopID)
Returns the percentage of time (in %) the detector was occupied by a
vehicle within the last time step.
|
static SumoCommand |
Lane.getLastStepVehicleIDs(String laneID)
Returns the IDs of the vehicles on the given lane within the last time
step.
|
static SumoCommand |
Edge.getLastStepVehicleIDs(String edgeID)
Returns the list of IDs of the vehicles on the given edge within the last
simulation step.
|
static SumoCommand |
Multientryexit.getLastStepVehicleIDs(String detID)
Returns the list of IDs of vehicles that have been within the named
multi-entry/multi-exit detector in the last simulation step.
|
static SumoCommand |
Inductionloop.getLastStepVehicleIDs(String loopID)
Returns the list of IDs of vehicles that were on the named induction loop
in the last simulation step.
|
static SumoCommand |
Lane.getLastStepVehicleNumber(String laneID)
Returns number of vehicles on this lane within the last time step.
|
static SumoCommand |
Edge.getLastStepVehicleNumber(String edgeID)
Returns the total number of vehicles on this edge within the last time
step.
|
static SumoCommand |
Multientryexit.getLastStepVehicleNumber(String detID)
Returns the number of vehicles that have been within the named
multi-entry/multi-exit detector within the last simulation step.
|
static SumoCommand |
Inductionloop.getLastStepVehicleNumber(String loopID)
Returns the number of vehicles that were on the named induction loop
within the last simulation step.
|
static SumoCommand |
Vehicle.getLeader(String vehID,
double dist)
Return the leading vehicle id together with the distance.
|
static SumoCommand |
Lane.getLength(String laneID)
Returns the length (in m) of the named lane.
|
static SumoCommand |
Person.getLength(String id)
get length
|
static SumoCommand |
Vehicletype.getLength(String typeID)
Returns the length of the named vehicle type.
|
static SumoCommand |
Vehicle.getLength(String vehID)
Returns the length (in m) of the named vehicle.
|
static SumoCommand |
Lane.getLinkNumber(String laneID)
Returns the number of links outgoing from this lane.
|
static SumoCommand |
Lane.getLinks(String laneID)
Returns descriptions of the links (in m) outgoing from this lane.
|
static SumoCommand |
Simulation.getLoadedIDList()
Returns a list of IDs of vehicles which were loaded in this time step.
|
static SumoCommand |
Simulation.getLoadedNumber()
Return the number of vehicles which were loaded in this time step.
|
static SumoCommand |
Lane.getMaxSpeed(String laneID)
Returns the maximum speed (in m/s) allowed on this lane.
|
static SumoCommand |
Vehicletype.getMaxSpeed(String typeID)
Return the maximum speed of the named vehicle type.
|
static SumoCommand |
Vehicle.getMaxSpeed(String vehID)
Returns the maximum speed(in m/s) of the named vehicle.
|
static SumoCommand |
Simulation.getMinExpectedNumber()
Returns the number of vehicles which are in the net plus the ones still waiting to start.
|
static SumoCommand |
Person.getMinGap(String id)
get minGap
|
static SumoCommand |
Vehicletype.getMinGap(String typeID)
Returns the minimum headway gap of the named vehicle type.
|
static SumoCommand |
Vehicle.getMinGap(String vehID)
Returns the minimum gap (in m) between this vehicle and the vehicle before it.
|
static SumoCommand |
Simulation.getNetBoundary()
Returns the boundary box of the simulation network.
|
static SumoCommand |
Trafficlights.getNextSwitch(String tlsID)
Returns the assumed time (in ms) at which the TLS changes the phase.
|
static SumoCommand |
Lane.getNoiseEmission(String laneID)
Returns the noise emissions (in db) on the given lane during the last
time step.
|
static SumoCommand |
Vehicle.getNoiseEmission(String vehID)
Returns the noise emission (in db) generated by the vehicle during the last time step.
|
static SumoCommand |
Edge.getNoiseEmission(String edgeID)
Returns the noise emissions (in db)on the given edge within the last time
step.
|
static SumoCommand |
Lane.getNOxEmission(String laneID)
Returns the NOx emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
Vehicle.getNOxEmission(String vehID)
Returns the NOx emissions (in mg) generated by the vehicle during the last time step.
|
static SumoCommand |
Edge.getNOxEmission(String edgeID)
Returns the NOx emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
Gui.getOffset(String viewID)
Returns the x and y offset of the center of the current view.
|
static SumoCommand |
Simulation.getParkingEndingVehiclesIDList()
getParkingEndingVehiclesIDList()
|
static SumoCommand |
Simulation.getParkingEndingVehiclesNumber()
getParkingEndingVehiclesNumber()
|
static SumoCommand |
Simulation.getParkingStartingVehiclesIDList()
getParkingStartingVehiclesIDList()
|
static SumoCommand |
Simulation.getParkingStartingVehiclesNumber()
getParkingStartingVehiclesNumber()
|
static SumoCommand |
Person.getPersonNumber(String id)
get person number
|
static SumoCommand |
Vehicle.getPersonNumber(String vehID)
getPersonNumber
|
static SumoCommand |
Trafficlights.getPhase(String tlsID)
Returns the index of the current phase in the current program.
|
static SumoCommand |
Trafficlights.getPhaseDuration(String tlsID)
getPhaseDuration
|
static SumoCommand |
Lane.getPMxEmission(String laneID)
Returns the particular matter emissions (in mg) on the given lane during
the last time step.
|
static SumoCommand |
Vehicle.getPMxEmission(String vehID)
Returns the particular matter emissions (in mg) generated by the vehicle during the last time step.
|
static SumoCommand |
Edge.getPMxEmission(String edgeID)
Returns the particular matter emissions (in mg) on the given edge on this
edge during the last time step.
|
static SumoCommand |
Person.getPosition(String id)
get position
|
static SumoCommand |
Poi.getPosition(String poiID)
Returns the position of this poi.
|
static SumoCommand |
Vehicle.getPosition(String vehID)
Returns the position of the named vehicle within the last step [m,m].
|
static SumoCommand |
Junction.getPosition(String junctionID)
Returns the position of the named junction.
|
static SumoCommand |
Inductionloop.getPosition(String loopID)
Returns the position (in m) of the induction loop at it's lane, counted
from the lane's begin.
|
static SumoCommand |
Person.getPosition3D(String id)
get position3D
|
static SumoCommand |
Vehicle.getPosition3D(String vehID)
Returns the position of the named vehicle within the last step [m,m,m].
|
static SumoCommand |
Trafficlights.getProgram(String tlsID)
Returns the id of the current program.
|
static SumoCommand |
Trafficlights.getRedYellowGreenState(String tlsID)
Returns the named tl's state as a tuple of light definitions from rRgGyYoO, for red, green, yellow, off, where lower case letters mean that the stream has to decelerate.
|
static SumoCommand |
Person.getRoadID(String id)
get road ID
|
static SumoCommand |
Vehicle.getRoadID(String vehID)
Returns the id of the edge the named vehicle was at within the last step.
|
static SumoCommand |
Vehicle.getRoute(String vehID)
Returns the ids of the edges the vehicle's route is made of.
|
static SumoCommand |
Vehicle.getRouteID(String vehID)
Returns the id of the route of the named vehicle.
|
static SumoCommand |
Gui.getSchema(String viewID)
Returns the name of the current coloring scheme.
|
static SumoCommand |
Polygon.getShape(String polygonID)
Returns the shape of this polygon.
|
static SumoCommand |
Lane.getShape(String laneID)
Returns this lane's shape.
|
static SumoCommand |
Junction.getShape(String junctionID)
getShape
|
static SumoCommand |
Vehicletype.getShapeClass(String typeID)
getShapeClass
|
static SumoCommand |
Vehicle.getShapeClass(String vehID)
getShapeClass
|
static SumoCommand |
Vehicle.getSignals(String vehID)
getSignals
|
static SumoCommand |
Person.getSpeed(String id)
get speed
|
static SumoCommand |
Vehicle.getSpeed(String vehID)
Returns the speed (in m/s) of the named vehicle within the last step.
|
static SumoCommand |
Vehicletype.getSpeedDeviation(String typeID)
Returns the speed deviation of the named vehicle type.
|
static SumoCommand |
Vehicle.getSpeedDeviation(String vehID)
Returns the standard deviation of the estimated maximum speed (see speed factor) divided by this speed.
|
static SumoCommand |
Vehicletype.getSpeedFactor(String typeID)
Return the speed factor of the names vehicle type.
|
static SumoCommand |
Vehicle.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 |
Vehicle.getSpeedWithoutTraCI(String vehID)
getSpeedWithoutTraCI
|
static SumoCommand |
Simulation.getStartingTeleportIDList()
Returns a list of IDs of vehicles which started to teleport in this time step.
|
static SumoCommand |
Simulation.getStartingTeleportNumber()
Returns the number of vehicles which started to teleport in this time step.
|
static SumoCommand |
Simulation.getStopEndingVehiclesIDList()
getStopEndingVehiclesIDList()
|
static SumoCommand |
Simulation.getStopEndingVehiclesNumber()
getStopEndingVehiclesNumber()
|
static SumoCommand |
Simulation.getStopStartingVehiclesIDList()
getStopStartingVehiclesIDList()
|
static SumoCommand |
Simulation.getStopStartingVehiclesNumber()
getStopStartingVehiclesIDList()
|
static SumoCommand |
Vehicletype.getTau(String typeID)
getTau
|
static SumoCommand |
Vehicle.getTau(String vehID)
getTau
|
static SumoCommand |
Inductionloop.getTimeSinceDetection(String loopID)
Return the time (in s) since last detection.
|
static SumoCommand |
Lane.getTraveltime(String laneID)
Returns the estimated travel time (in s) on the given lane during the
last time step.
|
static SumoCommand |
Edge.getTraveltime(String edgeID)
Returns the estimated travel time (in s) on the given edge on this edge
within the last time step.
|
static SumoCommand |
Polygon.getType(String polygonID)
Returns the type of the polygon.
|
static SumoCommand |
Poi.getType(String poiID)
Returns the type of the poi.
|
static SumoCommand |
Person.getTypeID(String id)
get type ID
|
static SumoCommand |
Vehicle.getTypeID(String vehID)
Returns the id of the type of the named vehicle.
|
static SumoCommand |
Vehicletype.getVehicleClass(String typeID)
Returns the vehicle class of the names vehicle type.
|
static SumoCommand |
Vehicle.getVehicleClass(String vehID)
Returns the vehicle class.
|
static SumoCommand |
Inductionloop.getVehicleData(String loopID)
A complex structure containing several information about vehicles which
passed the detector.
|
static SumoCommand |
Lane.getWaitingTime(String laneID)
getWaitingTime
|
static SumoCommand |
Person.getWaitingTime(String id)
get waiting time
|
static SumoCommand |
Vehicle.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 |
Edge.getWaitingTime(String edgeID)
Returns the waiting time (in s) on the given edge on this edge
within the last time step.
|
static SumoCommand |
Lane.getWidth(String laneID)
Returns the width (in m) of the named lane.
|
static SumoCommand |
Person.getWidth(String id)
get width
|
static SumoCommand |
Vehicletype.getWidth(String typeID)
Returns the width of the named vehicle type.
|
static SumoCommand |
Vehicle.getWidth(String vehID)
Returns the vehicle's width (in m).
|
static SumoCommand |
Gui.getZoom(String viewID)
Returns the current zoom factor.
|
static SumoCommand |
Vehicle.isRouteValid(String vehID)
Returns whether the Route is valid.
|
static SumoCommand |
Vehicle.moveTo(String vehID,
String laneID,
double pos)
Moves the vehicle to a new position.
|
static SumoCommand |
Vehicle.moveToVTD(String vehID,
String edgeID,
int lane,
double x,
double y)
moveToVTD
|
static SumoCommand |
Vehicle.remove(String vehID,
byte reason)
Removes vehicle with the given ID for the given reason.
|
static SumoCommand |
Polygon.remove(String polygonID,
int layer)
Remove a polygon.
|
static SumoCommand |
Poi.remove(String poiID,
int layer)
Remove a poi.
|
static SumoCommand |
Vehicle.rerouteEffort(String vehID)
Computes a new route using the vehicle's internal and the global edge effort information.
|
static SumoCommand |
Vehicle.rerouteTraveltime(String vehID)
Computes a new route using the vehicle's internal and the global edge travel time information.
|
static SumoCommand |
Vehicle.resume(String vehID)
Continue after a stop
|
static SumoCommand |
Gui.screenshot(String viewID,
String filename)
Save a screenshot for the given view to the given filename.
|
static SumoCommand |
Vehicletype.setAccel(String typeID,
double accel)
Sets the vehicle type's wished maximum acceleration to the given value.
|
static SumoCommand |
Vehicle.setAccel(String vehID,
double accel)
Sets the acceleration of the named vehicle.
|
static SumoCommand |
Vehicle.setAdaptedTraveltime(String vehID,
int begTime,
int endTime,
String edgeID,
double time)
Sets the edge travel time of the named vehicle.
|
static SumoCommand |
Lane.setAllowed(String laneID,
SumoStringList allowedClasses)
Set a list of allowed vehicle classes.
|
static SumoCommand |
Gui.setBoundary(String viewID,
double xmin,
double ymin,
double xmax,
double ymax)
Set the current boundary for the given view (see getBoundary()).
|
static SumoCommand |
Polygon.setColor(String polygonID,
SumoColor color)
Set the color of this polygon.
|
static SumoCommand |
Poi.setColor(String poiID,
SumoColor color)
Set the color of this poi.
|
static SumoCommand |
Vehicletype.setColor(String typeID,
SumoColor color)
Sets the vehicle type's color.
|
static SumoCommand |
Vehicle.setColor(String vehID,
SumoColor color)
Sets the vehicle's color (RGBA).
|
static SumoCommand |
Trafficlights.setCompleteRedYellowGreenDefinition(String tlsID,
SumoTLSLogic tls)
Set the complete traffic light program.
|
static SumoCommand |
Vehicletype.setDecel(String typeID,
double decel)
Sets the vehicle type's wished maximum deceleration to the given value.
|
static SumoCommand |
Vehicle.setDecel(String vehID,
double decel)
Sets the deceleration of the named vehicle.
|
static SumoCommand |
Lane.setDisallowed(String laneID,
SumoStringList disallowedClasses)
Set a list of disallowed vehicle classes.
|
static SumoCommand |
Edge.setEffort(String edgeID,
double effort)
Adapt the effort value used for (re-)routing on the given edge.
|
static SumoCommand |
Vehicle.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 |
Vehicletype.setEmissionClass(String typeID,
String clazz)
Sets the vehicle type's emission class to the given value.
|
static SumoCommand |
Vehicle.setEmissionClass(String vehID,
String clazz)
Sets the emission class of the named vehicle.
|
static SumoCommand |
Vehicletype.setImperfection(String typeID,
double imperfection)
setImperfection
|
static SumoCommand |
Vehicle.setImperfection(String vehID,
double imperfection)
setImperfection
|
static SumoCommand |
Vehicle.setLaneChangeMode(String vehID,
int lcm)
Sets the vehicle's lane change mode as a bitset.
|
static SumoCommand |
Lane.setLength(String laneID,
double length)
Set the length (in m) of the named lane.
|
static SumoCommand |
Vehicletype.setLength(String typeID,
double length)
Sets the vehicle type's length to the given value.
|
static SumoCommand |
Vehicle.setLength(String vehID,
double length)
Sets the length (in m) of the named vehicle.
|
static SumoCommand |
Lane.setMaxSpeed(String laneID,
double speed)
Set the maximum speed (in m/s) allowed on this lane.
|
static SumoCommand |
Vehicletype.setMaxSpeed(String typeID,
double speed)
Sets the vehicle type's maximum speed to the given value.
|
static SumoCommand |
Vehicle.setMaxSpeed(String vehID,
double speed)
Sets the maximum speed (in m/s) of the named vehicle.
|
static SumoCommand |
Edge.setMaxSpeed(String edgeID,
double speed)
Set a new maximum speed (in m/s) for all lanes of the edge.
|
static SumoCommand |
Vehicletype.setMinGap(String typeID,
double minGap)
Sets the vehicle type's minimum headway gap to the given value.
|
static SumoCommand |
Vehicle.setMinGap(String vehID,
double minGap)
Sets the minimum gap (in m) between this vehicle and the vehicle before it.
|
static SumoCommand |
Gui.setOffset(String viewID,
double x,
double y)
Set the current offset for the given view.
|
static SumoCommand |
Trafficlights.setPhase(String tlsID,
int index)
Set the index of the current phase in the current program.
|
static SumoCommand |
Trafficlights.setPhaseDuration(String tlsID,
int phaseDuration)
Set the duration of the currently active phase (in s?).
|
static SumoCommand |
Poi.setPosition(String poiID,
double x,
double y)
Set the position of this poi.
|
static SumoCommand |
Trafficlights.setProgram(String tlsID,
String programID)
Set the id of the current program.
|
static SumoCommand |
Trafficlights.setRedYellowGreenState(String tlsID,
String state)
Set the named tl's state as a tuple of light definitions.
|
static SumoCommand |
Vehicle.setRoute(String vehID,
SumoStringList edgeList)
Sets the IDs of the edges the vehicle's route is made of.
|
static SumoCommand |
Vehicle.setRouteID(String vehID,
String routeID)
Sets the id of the route of the named vehicle.
|
static SumoCommand |
Gui.setSchema(String viewID,
String schemeName)
Set the current coloring scheme for the given view.
|
static SumoCommand |
Polygon.setShape(String polygonID,
SumoStringList shape)
Set the shape of this polygon.
|
static SumoCommand |
Vehicletype.setShapeClass(String typeID,
String clazz)
setShapeClass
|
static SumoCommand |
Vehicle.setShapeClass(String vehID,
String clazz)
setShapeClass
|
static SumoCommand |
Vehicle.setSignals(String vehID,
String signals)
setSignals
|
static SumoCommand |
Vehicle.setSpeed(String vehID,
double speed)
Sets the speed (in m/s) of the named vehicle.
|
static SumoCommand |
Vehicletype.setSpeedDeviation(String typeID,
double deviation)
Sets the vehicle type's speed deviation to the given value.
|
static SumoCommand |
Vehicle.setSpeedDeviation(String vehID,
double deviation)
Sets the standard deviation of the estimated maximum speed.
|
static SumoCommand |
Vehicletype.setSpeedFactor(String typeID,
double factor)
Sets the vehicle type's speed factor to the given value.
|
static SumoCommand |
Vehicle.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 |
Vehicle.setSpeedMode(String vehID,
int sm)
Sets the vehicle's speed mode as a bitset.
|
static SumoCommand |
Vehicle.setStop(String vehID,
String edgeID,
double pos,
byte laneIndex,
int duration,
byte stopType)
Lets the vehicle stop at the given edge, at the given position and lane.
|
static SumoCommand |
Vehicletype.setTau(String typeID,
double tau)
setTau
|
static SumoCommand |
Vehicle.setTau(String vehID,
double tau)
setTau
|
static SumoCommand |
Polygon.setType(String polygonID,
String polygonType)
Set the type of the polygon.
|
static SumoCommand |
Poi.setType(String poiID,
String poiType)
Set the type of the poi.
|
static SumoCommand |
Vehicle.setType(String vehID,
String typeID)
Sets the id of the type for the named vehicle.
|
static SumoCommand |
Vehicletype.setVehicleClass(String typeID,
String clazz)
Sets the vehicle type's vehicle class to the given value.
|
static SumoCommand |
Vehicle.setVehicleClass(String vehID,
String clazz)
Sets the vehicle class.
|
static SumoCommand |
Vehicletype.setWidth(String typeID,
double width)
Sets the vehicle type's width to the given value.
|
static SumoCommand |
Vehicle.setWidth(String vehID,
double width)
Sets the vehicle's width (in m).
|
static SumoCommand |
Gui.setZoom(String viewID,
double zoom)
Set the current zoom factor for the given view.
|
static SumoCommand |
Vehicle.slowDown(String vehID,
double speed,
int duration)
Reduces the speed to the given for the given amount of time.
|
static SumoCommand |
Gui.trackVehicle(String viewID,
String vehID)
Start visually tracking the given vehicle on the given view.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
CommandProcessor.do_job_get(SumoCommand sc) |
void |
CommandProcessor.do_job_set(SumoCommand sc) |
Object |
Sumo.get_cmd(SumoCommand cmd) |
| Modifier and Type | Method and Description |
|---|---|
Object |
SumoTraciConnection.do_job_get(SumoCommand cmd) |
void |
SumoTraciConnection.do_job_set(SumoCommand cmd) |