Uses of Class
de.tudresden.sumo.util.SumoCommand
-
Uses of SumoCommand in de.tudresden.sumo.cmd
Modifier and TypeMethodDescriptionstatic SumoCommand
Edge.adaptTraveltime
(String edgeID, double time) Adapt the travel time value (in s) used for (re-)routing on the given edge.static SumoCommand
Edge.adaptTraveltime
(String edgeID, double time, double begin, double end) Adapt the travel time value (in s) used for (re-)routing on the given edge.static SumoCommand
Inserts a new person to the simulation at the given edge, position and time (in s).static SumoCommand
Poi.add
(String poiID, double x, double y, SumoColor color, String poiType, int layer, String imgFile, double width, double height, double angle) Add a new point-of-interest.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.add
(String vehID, String typeID, String routeID, int depart, double pos, double speed, byte lane) Add a new vehicle.static SumoCommand
Vehicle.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
Person.appendDrivingStage
(String personID, String toEdge, String lines, String stopID) Appends a driving stage to the plan of the given person The lines parameter should be a space-separated list of line ids.static SumoCommand
Person.appendWaitingStage
(String personID, double duration, String description, String stopID) Appends a waiting stage with duration in s to the plan of the given person.static SumoCommand
Person.appendWalkingStage
(String personID, SumoStringList edges, double arrivalPos, double duration, double speed, String stopID) Appends a walking stage to the plan of the given person The walking speed can either be specified, computed from the duration parameter (in s) or taken from the type of the person.static SumoCommand
Vehicle.changeLane
(String vehID, byte laneIndex, double 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.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
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
convert2D.static SumoCommand
convert3D.static SumoCommand
Simulation.convertGeo
(double x, double y, boolean fromGeo) convertGeo.static SumoCommand
Simulation.convertRoad
(double x, double y, boolean isGeo, String vClass) convertRoad.static SumoCommand
Simulation.findIntermodalRoute
(String fromEdge, String toEdge, String modes, double depart, int routingMode, double speed, double walkingFactor, double departPos, double arrivalPos, double departPosLat, String pType, String vType, String destStop) findIntermodalRoute.static SumoCommand
findRoute.static SumoCommand
Returns the acceleration of the named vehicle within the last step.static SumoCommand
Returns the maximum acceleration of the named vehicle class.static SumoCommand
Vehicle.getAccumulatedWaitingTime
(String vehID) Returns the vehicle class.static SumoCommand
Vehicle.getActionStepLength
(String vehID) Returns the action step length for this vehicle.static SumoCommand
Edge.getAdaptedTraveltime
(String edgeID, double time) Returns the travel time value (in s) used for (re-)routing.static SumoCommand
Vehicle.getAdaptedTraveltime
(String vehID, double 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
get angle.static SumoCommand
Returns the angle of the named vehicle within the last time step.static SumoCommand
Vehicle.getApparentDecel
(String vehID) Returns the apparent deceleration in m/s^2 of this vehicle.static SumoCommand
Vehicletype.getApparentDecel
(String typeID) Returns The preferred lateral alignment of the type.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
Edge.getCO2Emission
(String edgeID) Returns the CO2 emissions (in mg) on the given edge during the last time step.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.getCOEmission
(String edgeID) Returns the CO 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
Simulation.getCollidingVehiclesIDList()
getCollidingVehiclesNumber().static SumoCommand
Simulation.getCollidingVehiclesNumber()
getCollidingVehiclesNumber().static SumoCommand
get lane position.static SumoCommand
Returns the color of this poi.static SumoCommand
Returns the color of this polygon.static SumoCommand
Returns the vehicle's color (RGBA).static SumoCommand
Returns the vehicle type's color.static SumoCommand
Trafficlight.getCompleteRedYellowGreenDefinition
(String tlsID) Returns the complete traffic light program.static SumoCommand
Trafficlight.getControlledJunctions
(String tlsID) Returns the junctions controlled by the traffic light.static SumoCommand
Trafficlight.getControlledLanes
(String tlsID) Returns the list of lanes which are controlled by the named traffic light.static SumoCommand
Trafficlight.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
Returns the deceleration of the named vehicle within the last time step.static SumoCommand
Returns the maximum deceleration of the names vehicle type.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, boolean isGeo, boolean isDriving) static SumoCommand
Simulation.getDistanceRoad
(String edgeID1, double pos1, String edgeID2, double pos2, boolean isDriving) static SumoCommand
Vehicle.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
Vehicle.getDrivingDistance2D
(String vehID, double x, double y) getDrivingDistance2D.static SumoCommand
Returns the ID of the edge this lane belongs to.static SumoCommand
get edges.static SumoCommand
get edges.static SumoCommand
Returns the IDs of the edges this route covers.static SumoCommand
Returns the effort value used for (re-)routing.static SumoCommand
Returns the edge effort for the given time as stored in the vehicle's internal container.static SumoCommand
Edge.getElectricityConsumption
(String edgeID) Returns the electricity consumption in ml for the last time step.static SumoCommand
Lane.getElectricityConsumption
(String laneID) Returns the electricity consumption in ml for the last time step.static SumoCommand
Vehicle.getElectricityConsumption
(String vehID) Returns the electricity consumption in ml for the last time step.static SumoCommand
Vehicle.getEmergencyDecel
(String vehID) Returns the maximal physically possible deceleration in m/s^2 of this vehicle.static SumoCommand
Vehicletype.getEmergencyDecel
(String typeID) Returns the maximal physically possible deceleration in m/s^2 of vehicles of this type.static SumoCommand
Simulation.getEmergencyStoppingVehiclesIDList()
getEmergencyStoppingVehiclesIDList().static SumoCommand
Simulation.getEmergencyStoppingVehiclesNumber()
getEmergencyStoppingVehiclesNumber().static SumoCommand
Vehicle.getEmissionClass
(String vehID) Returns the emission class of the named vehicle.static SumoCommand
Vehicletype.getEmissionClass
(String typeID) Returns the emission class of the named vehicle type.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
Trafficlight.getExternalState
(String tlsID) Returns the external state.static SumoCommand
Returns the shape of this polygon.static SumoCommand
Returns the ids of incoming lanes that have right of way over the connection from laneID to toLaneID.static SumoCommand
Edge.getFuelConsumption
(String edgeID) Returns the fuel consumption (in ml) on the given edge during the last 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.getHCEmission
(String edgeID) Returns the HC emissions (in mg) 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
Returns the height in m of this vehicle.static SumoCommand
Returns the height in m of vehicles of this type.static SumoCommand
Edge.getIDCount()
Returns the number of edges in the network.static SumoCommand
Inductionloop.getIDCount()
Returns the number of all induction loops in the network.static SumoCommand
Junction.getIDCount()
Returns the number of all junctions in the network.static SumoCommand
Lane.getIDCount()
Returns the number of all lanes in the network.static SumoCommand
Lanearea.getIDCount()
Returns the number of the areal detectors in the network.static SumoCommand
Multientryexit.getIDCount()
Returns the number of all multi-entry/multi-exit detectors 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
Polygon.getIDCount()
Returns the number of all Polygons in the network.static SumoCommand
Route.getIDCount()
Returns the number of all Routes in the network.static SumoCommand
Trafficlight.getIDCount()
Returns the number of all traffic lights in the network.static SumoCommand
Vehicle.getIDCount()
Returns the number of all vehicles in the network.static SumoCommand
Vehicletype.getIDCount()
Returns the number of all vehicle types in the network.static SumoCommand
Edge.getIDList()
Returns a list of all edges in the network.static SumoCommand
Gui.getIDList()
Returns the list of available views (open windows).static SumoCommand
Inductionloop.getIDList()
Returns a list of IDs of all induction loops within the scenario.static SumoCommand
Junction.getIDList()
Returns a list of IDs of all junctions within the scenario.static SumoCommand
Lane.getIDList()
Returns a list of IDs of all lanes in the network.static SumoCommand
Lanearea.getIDList()
Returns a list of all areal detectors in the network.static SumoCommand
Multientryexit.getIDList()
Returns a list of IDs of all multi-entry/multi-exit detectors within the scenario.static SumoCommand
Person.getIDList()
Returns a list of personIDs of all persons.static SumoCommand
Poi.getIDList()
Returns a list of IDs of all poi.static SumoCommand
Polygon.getIDList()
Returns a list of IDs of all polygons.static SumoCommand
Route.getIDList()
Returns a list of IDs of all currently loaded routes.static SumoCommand
Trafficlight.getIDList()
Returns a list of IDs of all traffic lights within the scenario.static SumoCommand
Vehicle.getIDList()
Returns a list of ids of all vehicles currently running within the scenario.static SumoCommand
Vehicletype.getIDList()
Returns a list of all known vehicle types.static SumoCommand
Vehicle.getImperfection
(String vehID) getImperfection.static SumoCommand
Vehicletype.getImperfection
(String typeID) getImperfection.static SumoCommand
Lane.getInternalFoes
(String laneID) Returns the ids of internal lanes that are in conflict with the given internal lane id.static SumoCommand
Lanearea.getJamLengthMeters
(String loopID) getJamLengthMetersstatic SumoCommand
Lanearea.getJamLengthVehicle
(String loopID) getJamLengthVehiclestatic SumoCommand
Vehicle.getLaneChangeMode
(String vehID) Gets the vehicle's lane change mode as a bitset.static SumoCommand
Vehicle.getLaneChangeState
(String vehID, int direction) Returns the maximal physically possible deceleration in m/s^2 of this vehicle.static SumoCommand
Returns the ID of the lane the loop is placed at.static SumoCommand
getLaneIDstatic SumoCommand
Returns the id of the lane the named vehicle was at within the last step.static SumoCommand
Vehicle.getLaneIndex
(String vehID) Returns the index of the lane the named vehicle was at within the last step.static SumoCommand
Edge.getLaneNumber
(String edgeID) Gets the lane number.static SumoCommand
Person.getLanePosition
(String personID) get lane position.static SumoCommand
Vehicle.getLanePosition
(String vehID) Returns the position of the vehicle along the lane (in m).static SumoCommand
Vehicle.getLastActionTime
(String vehID) Returns the time of last action point for this vehicle.static SumoCommand
Edge.getLastStepHaltingNumber
(String edgeID) Returns the total number of halting vehicles on the given edge within the last time step.static SumoCommand
Lane.getLastStepHaltingNumber
(String laneID) Returns the total number of halting vehicles on the given lane within the last time step.static SumoCommand
Lanearea.getLastStepHaltingNumber
(String loopID) Returns the number of vehicles which were halting during 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
Edge.getLastStepLength
(String edgeID) Returns the total vehicle length (in m) on the given edge within 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
Inductionloop.getLastStepMeanLength
(String loopID) Returns the mean length of vehicles (in m) which were on the detector in the last 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
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.getLastStepMeanSpeed
(String laneID) Returns the mean speed (in m/s) on the given lane within the last time step.static SumoCommand
Lanearea.getLastStepMeanSpeed
(String loopID) getLastStepMeanSpeedstatic 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
Edge.getLastStepOccupancy
(String edgeID) Returns the percentage of time (in %) the detector was occupied by a vehicle.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.getLastStepOccupancy
(String laneID) Returns the occupancy (in %) on the given lane during the last time step.static SumoCommand
Lanearea.getLastStepOccupancy
(String loopID) getLastStepOccupancystatic SumoCommand
Edge.getLastStepPersonIDs
(String edgeID) Returns the ids of the persons on the given edge during 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
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.getLastStepVehicleIDs
(String laneID) Returns the IDs of the vehicles on the given lane within the last time step.static SumoCommand
Lanearea.getLastStepVehicleIDs
(String loopID) Returns the list of ids of vehicles that were on the named detector in 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
Edge.getLastStepVehicleNumber
(String edgeID) Returns the total number of vehicles on this edge within the last time 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
Lane.getLastStepVehicleNumber
(String laneID) Returns number of vehicles on this lane within the last time step.static SumoCommand
Lanearea.getLastStepVehicleNumber
(String loopID) Returns the number of vehicles on the detectorstatic 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
Vehicle.getLateralAlignment
(String vehID) Returns The preferred lateral alignment of the vehicle.static SumoCommand
Vehicletype.getLateralAlignment
(String typeID) Returns The preferred lateral alignment of the type.static SumoCommand
Vehicle.getLateralLanePosition
(String vehID) Returns The lateral position of the vehicle on its current lane measured in m.static SumoCommand
Return the leading vehicle id together with the distance.static SumoCommand
Returns the length (in m) of the named lane.static SumoCommand
getlengthstatic SumoCommand
get length.static SumoCommand
Returns the length (in m) of the named vehicle.static SumoCommand
Returns the length of the named vehicle type.static SumoCommand
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
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
Vehicle.getMaxSpeed
(String vehID) Returns the maximum speed(in m/s) of the named vehicle.static SumoCommand
Vehicletype.getMaxSpeed
(String typeID) Return the maximum speed of the named vehicle type.static SumoCommand
Vehicle.getMaxSpeedLat
(String vehID) Returns the maximum lateral speed in m/s of this vehicle.static SumoCommand
Vehicletype.getMaxSpeedLat
(String typeID) Returns the maximum lateral speed in m/s of this type.static SumoCommand
Simulation.getMinExpectedNumber()
Returns the number of vehicles which are in the net plus the ones still waiting to start.static SumoCommand
get minGap.static SumoCommand
Returns the minimum gap (in m) between this vehicle and the vehicle before it.static SumoCommand
Returns the minimum headway gap of the named vehicle type.static SumoCommand
Vehicle.getMinGapLat
(String vehID) Returns The desired lateral gap of this vehicle at 50km/h in m.static SumoCommand
Vehicletype.getMinGapLat
(String typeID) Returns The desired lateral gap of this type at 50km/h in m.static SumoCommand
Simulation.getNetBoundary()
Returns the boundary box of the simulation network.static SumoCommand
Person.getNextEdge
(String personID) get next edge.static SumoCommand
Vehicle.getNextStops
(String vehID) Return list of upcoming stops [(lane, endPos, stoppingPlaceID, stopFlags, duration, until), ...] where integer stopFlag is defined as: 1 * stopped + 2 * parking + 4 * personTriggered + 8 * containerTriggered + 16 * isBusStop + 32 * isContainerStop + 64 * chargingStation + 128 * parkingarea with each of these flags defined as 0 or 1.static SumoCommand
Trafficlight.getNextSwitch
(String tlsID) Returns the assumed time (in ms) at which the TLS changes the phase.static SumoCommand
Vehicle.getNextTLS
(String vehID) Return list of upcoming traffic lights [(tlsID, tlsIndex, distance, state), ...]static SumoCommand
Edge.getNoiseEmission
(String edgeID) Returns the noise emissions (in db)on the given edge within the last time step.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.getNOxEmission
(String edgeID) Returns the NOx emissions (in mg) on the given edge during 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
Returns the x and y offset of the center of the current view.static SumoCommand
Edge.getParameter
(String edgeID, String param) Returns the chosen parameter.static SumoCommand
Inductionloop.getParameter
(String loopID, String param) Returns the chosen parameter.static SumoCommand
Lane.getParameter
(String laneID, String param) Returns the chosen parameter.static SumoCommand
Person.getParameter
(String personID, String param) Returns the chosen parameter.static SumoCommand
Poi.getParameter
(String poiID, String param) Returns the chosen parameter.static SumoCommand
Polygon.getParameter
(String polygonID, String param) Returns the chosen parameter.static SumoCommand
Route.getParameter
(String routeID, String param) Returns the chosen parameter.static SumoCommand
Trafficlight.getParameter
(String tlsID, String param) Returns the chosen parameter.static SumoCommand
Vehicle.getParameter
(String vehID, String param) Returns the chosen parameter.static SumoCommand
Vehicletype.getParameter
(String typeID, String param) Returns the chosen parameter.static SumoCommand
Simulation.getParkingEndingVehiclesIDList()
getParkingEndingVehiclesIDList().static SumoCommand
Simulation.getParkingEndingVehiclesNumber()
getParkingEndingVehiclesNumber().static SumoCommand
Simulation.getParkingStartingVehiclesIDList()
getParkingStartingVehiclesIDList().static SumoCommand
Simulation.getParkingStartingVehiclesNumber()
getParkingStartingVehiclesNumber().static SumoCommand
Vehicle.getPersonIDList
(String vehID) Returns the list of persons which includes those defined using attribute 'personNumber' as well as person-objects which are riding in this vehicle.static SumoCommand
Person.getPersonNumber
(String personID) get person number.static SumoCommand
Vehicle.getPersonNumber
(String vehID) getPersonNumber.static SumoCommand
Returns the index of the current phase in the current program.static SumoCommand
Trafficlight.getPhaseDuration
(String tlsID) getPhaseDuration.static SumoCommand
Trafficlight.getPhaseName
(String tlsID) Returns the name of the current phase in the current program.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
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
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
Junction.getPosition
(String junctionID) Returns the position of the named junction.static SumoCommand
Lanearea.getPosition
(String loopID) getPositionstatic SumoCommand
Person.getPosition
(String personID) 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
Person.getPosition3D
(String personID) get position3D.static SumoCommand
Vehicle.getPosition3D
(String vehID) Returns the position of the named vehicle within the last step [m,m,m].static SumoCommand
Trafficlight.getProgram
(String tlsID) Returns the id of the current program.static SumoCommand
Trafficlight.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.getRemainingStages
(String personID) get remaining stages.static SumoCommand
get road ID.static SumoCommand
Returns the id of the edge the named vehicle was at within the last step.static SumoCommand
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
Vehicle.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
Vehicle.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.reroutingstatic SumoCommand
Returns the name of the current coloring scheme.static SumoCommand
getShapestatic SumoCommand
Returns this lane's shape.static SumoCommand
Returns the shape of this polygon.static SumoCommand
Vehicle.getShapeClass
(String vehID) getShapeClass.static SumoCommand
Vehicletype.getShapeClass
(String typeID) getShapeClass.static SumoCommand
Vehicle.getSignals
(String vehID) getSignals.static SumoCommand
getSlope.static SumoCommand
get speed.static SumoCommand
Returns the speed (in m/s) of the named vehicle within the last step.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.getSpeedDeviation
(String typeID) Returns the speed deviation of the named 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
Vehicletype.getSpeedFactor
(String typeID) Return the speed factor of the names vehicle type.static SumoCommand
Vehicle.getSpeedMode
(String vehID) Returns the speed mode of a vehicle.static SumoCommand
Vehicle.getSpeedWithoutTraCI
(String vehID) getSpeedWithoutTraCI.static SumoCommand
get stage.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
Vehicle.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.static SumoCommand
getTau.static SumoCommand
Simulation.getTime()
getTime.static SumoCommand
Inductionloop.getTimeSinceDetection
(String loopID) Return the time (in s) since last detection.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
Lane.getTraveltime
(String laneID) Returns the estimated travel time (in s) on the given lane during the last time step.static SumoCommand
Returns the type of the poi.static SumoCommand
Returns the type of the polygon.static SumoCommand
get type ID.static SumoCommand
Returns the id of the type of the named vehicle.static SumoCommand
Person.getVehicle
(String personID) get vehicle.static SumoCommand
Vehicle.getVehicleClass
(String vehID) Returns the vehicle class.static SumoCommand
Vehicletype.getVehicleClass
(String typeID) Returns the vehicle class of the names vehicle type.static SumoCommand
Inductionloop.getVehicleData
(String loopID) A complex structure containing several information about vehicles which passed the detector.static SumoCommand
Returns the ids of via edges for this vehicle.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.getWaitingTime
(String laneID) getWaitingTime.static SumoCommand
Person.getWaitingTime
(String personID) 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
Returns the width (in m) of the named lane.static SumoCommand
get width.static SumoCommand
Returns the vehicle's width (in m).static SumoCommand
Returns the width of the named vehicle type.static SumoCommand
Returns the current zoom factor.static SumoCommand
Vehicle.isAtBusStop
(String vehID) isAtBusStop.static SumoCommand
Vehicle.isAtContainerStop
(String vehID) Return whether the vehicle is stopped at a container stop.static SumoCommand
Vehicle.isRouteValid
(String vehID) Returns whether the Route is valid.static SumoCommand
isStopped.static SumoCommand
Vehicle.isStoppedParking
(String vehID) isStoppedParking.static SumoCommand
Vehicle.isStoppedTriggered
(String vehID) Return whether the vehicle is stopped and waiting for a person or container.static SumoCommand
Moves the vehicle to a new position.static SumoCommand
Place person at the given x,y coordinates and force it's angle to the given value (for drawing).static SumoCommand
Vehicle.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 a poi.static SumoCommand
Remove a polygon.static SumoCommand
Removes vehicle with the given ID for the given reason.static SumoCommand
Person.removeStage
(String personID, int nextStageIndex) Removes the nth next stage nextStageIndex must be lower then value of getRemainingStages(personID) nextStageIndex 0 immediately aborts the current stage and proceeds to the next stage.static SumoCommand
Vehicle.rerouteEffort
(String vehID) Computes a new route using the vehicle's internal and the global edge effort information.static SumoCommand
Vehicle.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
Person.rerouteTraveltime
(String personID) rerouteTraveltime Computes a new route for the person using the global edge traveltime 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
Continue after a stop.static SumoCommand
save state.static SumoCommand
Gui.screenshot
(String viewID, String filename) Save a screenshot for the given view to the given filename.static SumoCommand
Sets the acceleration of the named vehicle.static SumoCommand
Sets the vehicle type's wished maximum acceleration to the given value.static SumoCommand
Vehicle.setActionStepLength
(String vehID, double actionStepLength, boolean resetActionOffset) Sets the action step length for this vehicle.static SumoCommand
Vehicle.setAdaptedTraveltime
(String vehID, double begTime, double 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
Vehicle.setApparentDecel
(String vehID, double decel) Sets the apparent deceleration in m/s^2 for this vehicle.static SumoCommand
Vehicletype.setApparentDecel
(String typeID, double decel) Sets the apparent deceleration in m/s^2 of vehicles of this type.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
Vehicle.setBusStop
(String vehID, String stopID, double duration, double until) Adds or modifies a bus stop with the given parameters.static SumoCommand
Vehicle.setChargingStationStop
(String vehID, String stopID, double duration, double until) Adds or modifies a stop at a chargingStation with the given parameters.static SumoCommand
sets color for person with the given ID.static SumoCommand
Set the color of this poi.static SumoCommand
Set the color of this polygon.static SumoCommand
Sets the vehicle's color (RGBA).static SumoCommand
Sets the vehicle type's color.static SumoCommand
Trafficlight.setCompleteRedYellowGreenDefinition
(String tlsID, SumoTLSProgram tls) Set the complete traffic light program.static SumoCommand
Vehicle.setContainerStop
(String vehID, String stopID, double duration, double until) Adds or modifies a container stop with the given parameters.static SumoCommand
Sets the deceleration of the named vehicle.static SumoCommand
Sets the vehicle type's wished maximum deceleration to the given value.static SumoCommand
Lane.setDisallowed
(String laneID, SumoStringList disallowedClasses) Set a list of disallowed vehicle classes.static SumoCommand
Adapt the effort value used for (re-)routing on the given edge.static SumoCommand
Adapt the effort value used for (re-)routing on the given edge.static SumoCommand
Sets the edge effort for the given time as stored in the vehicle's internal container.static SumoCommand
Vehicle.setEmergencyDecel
(String vehID, double decel) Sets the maximal physically possible deceleration in m/s^2 for this vehicle.static SumoCommand
Vehicletype.setEmergencyDecel
(String typeID, double decel) Sets the maximal physically possible deceleration in m/s^2 of vehicles of this type.static SumoCommand
Vehicle.setEmissionClass
(String vehID, String clazz) Sets the emission class of the named vehicle.static SumoCommand
Vehicletype.setEmissionClass
(String typeID, String clazz) Sets the vehicle type's emission class to the given value.static SumoCommand
Set the color of this polygon.static SumoCommand
Sets the height in m for this person.static SumoCommand
Sets the height in m for this vehicle.static SumoCommand
Sets the height in m of vehicles of this type.static SumoCommand
Vehicle.setImperfection
(String vehID, double imperfection) setImperfection.static SumoCommand
Vehicletype.setImperfection
(String typeID, double imperfection) setImperfection.static SumoCommand
Vehicle.setLaneChangeMode
(String vehID, int lcm) Sets the vehicle's lane change mode as a bitset.static SumoCommand
Vehicle.setLateralAlignment
(String vehID, String align) Sets the preferred lateral alignment for this vehicle.static SumoCommand
Vehicletype.setLateralAlignment
(String typeID, String latAlignment) Sets the preferred lateral alignment of this type.static SumoCommand
Set the length (in m) of the named lane.static SumoCommand
Sets the length in m for the given person.static SumoCommand
Sets the length (in m) of the named vehicle.static SumoCommand
Sets the vehicle type's length to the given value.static SumoCommand
Sets the line information for this 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
Lane.setMaxSpeed
(String laneID, double speed) Set the maximum speed (in m/s) allowed on this lane.static SumoCommand
Vehicle.setMaxSpeed
(String vehID, double speed) Sets the maximum speed (in m/s) of the named vehicle.static SumoCommand
Vehicletype.setMaxSpeed
(String typeID, double speed) Sets the vehicle type's maximum speed to the given value.static SumoCommand
Vehicle.setMaxSpeedLat
(String vehID, double speed) Sets the maximum lateral speed in m/s for this vehicle.static SumoCommand
Vehicletype.setMaxSpeedLat
(String typeID, double speed) Sets the maximum lateral speed of this type.static SumoCommand
Sets the offset (gap to front person if halting) for this vehicle.static SumoCommand
Sets the minimum gap (in m) between this vehicle and the vehicle before it.static SumoCommand
Sets the vehicle type's minimum headway gap to the given value.static SumoCommand
Vehicle.setMinGapLat
(String vehID, double minGapLat) Sets the minimum lateral gap of the vehicle at 50km/h in m.static SumoCommand
Vehicletype.setMinGapLat
(String typeID, double minGapLat) setImperfection.static SumoCommand
Set the current offset for the given view.static SumoCommand
Edge.setParameter
(String edgeID, String param, String value) Sets the chosen parameter.static SumoCommand
Lane.setParameter
(String laneID, String param, String value) Sets the chosen parameter.static SumoCommand
Person.setParameter
(String personID, String param, String value) Sets the chosen parameter.static SumoCommand
Poi.setParameter
(String poiID, String param, String value) Sets the chosen parameter.static SumoCommand
Polygon.setParameter
(String polygonID, String param, String value) Sets the chosen parameter.static SumoCommand
Route.setParameter
(String routeID, String param, String value) Sets the chosen parameter.static SumoCommand
Trafficlight.setParameter
(String tlsID, String param, String value) Sets the chosen parameter.static SumoCommand
Vehicle.setParameter
(String vehID, String param, String value) Sets the chosen parameter.static SumoCommand
Vehicletype.setParameter
(String typeID, String param, String value) Sets the chosen parameter.static SumoCommand
Vehicle.setParkingAreaStop
(String vehID, String stopID, double duration, double until) Adds or modifies a stop at a parkingArea with the given parameters.static SumoCommand
Set the index of the current phase in the current program.static SumoCommand
Trafficlight.setPhaseDuration
(String tlsID, double phaseDuration) Set the duration of the currently active phase (in s?).static SumoCommand
Trafficlight.setPhaseName
(String tlsID, String name) Set the name of the current phase in the current program.static SumoCommand
Poi.setPosition
(String poiID, double x, double y) Set the position of this poi.static SumoCommand
Trafficlight.setProgram
(String tlsID, String programID) Set the id of the current program.static SumoCommand
Trafficlight.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
Vehicle.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.reroutingstatic SumoCommand
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
Vehicle.setShapeClass
(String vehID, String clazz) setShapeClass.static SumoCommand
Vehicletype.setShapeClass
(String typeID, String clazz) setShapeClass.static SumoCommand
Vehicle.setSignals
(String vehID, int signals) setSignals.static SumoCommand
Sets the maximum speed in m/s for the named person for subsequent step.static SumoCommand
Sets the speed (in m/s) of the named vehicle.static SumoCommand
Vehicle.setSpeedDeviation
(String vehID, double deviation) Sets the standard deviation of the estimated maximum speed.static SumoCommand
Vehicletype.setSpeedDeviation
(String typeID, double deviation) Sets the vehicle type's speed deviation 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
Vehicletype.setSpeedFactor
(String typeID, double factor) Sets the vehicle type's speed factor to the given value.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, double duration, SumoStopFlags sf, double startPos, double until) Lets the vehicle stop at the given edge, at the given position and lane.static SumoCommand
setTau.static SumoCommand
setTau.static SumoCommand
Sets the id of the type for the named person.static SumoCommand
Set the type of the poi.static SumoCommand
Set the type of the polygon.static SumoCommand
Sets the id of the type for the named vehicle.static SumoCommand
Vehicle.setVehicleClass
(String vehID, String clazz) Sets the vehicle class.static SumoCommand
Vehicletype.setVehicleClass
(String typeID, String clazz) Sets the vehicle type's vehicle class to the given value.static SumoCommand
Vehicle.setVia
(String vehID, SumoStringList edgeList) Sets the line information for this vehicle.static SumoCommand
Sets the width in m for this person.static SumoCommand
Sets the vehicle's width (in m).static SumoCommand
Sets the vehicle type's width to the given value.static SumoCommand
Duplicates the vType with ID origTypeID.static SumoCommand
Set the current zoom factor for the given view.static SumoCommand
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.static SumoCommand
Vehicle.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. -
Uses of SumoCommand in de.tudresden.sumo.util
Modifier and TypeMethodDescriptionCommandProcessor.do_job_get
(SumoCommand sc) void
CommandProcessor.do_job_set
(SumoCommand sc) -
Uses of SumoCommand in it.polito.appeal.traci
Modifier and TypeMethodDescriptionSumoTraciConnection.do_job_get
(SumoCommand cmd) Do job get.void
SumoTraciConnection.do_job_set
(SumoCommand cmd) Do job set.