Package de.tudresden.sumo.cmd
Class Edge
java.lang.Object
de.tudresden.sumo.cmd.Edge
The Class Edge.
- Author:
- Mario Krumnow, Evamarie Wiessner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SumoCommandadaptTraveltime(String edgeID, double time) Adapt the travel time value (in s) used for (re-)routing on the given edge.static SumoCommandadaptTraveltime(String edgeID, double time, double begin, double end) Adapt the travel time value (in s) used for (re-)routing on the given edge.static SumoCommandgetAdaptedTraveltime(String edgeID, double time) Returns the travel time value (in s) used for (re-)routing.static SumoCommandgetCO2Emission(String edgeID) Returns the CO2 emissions (in mg) on the given edge during the last time step.static SumoCommandgetCOEmission(String edgeID) Returns the CO emissions (in mg) on the given edge during the last time step.static SumoCommandReturns the effort value used for (re-)routing.static SumoCommandgetElectricityConsumption(String edgeID) Returns the electricity consumption in ml for the last time step.static SumoCommandgetFuelConsumption(String edgeID) Returns the fuel consumption (in ml) on the given edge during the last time step.static SumoCommandgetHCEmission(String edgeID) Returns the HC emissions (in mg) on the given edge during the last time step.static SumoCommandReturns the number of edges in the network.static SumoCommandReturns a list of all edges in the network.static SumoCommandgetLaneNumber(String edgeID) Gets the lane number.static SumoCommandgetLastStepHaltingNumber(String edgeID) Returns the total number of halting vehicles on the given edge within the last time step.static SumoCommandgetLastStepLength(String edgeID) Returns the total vehicle length (in m) on the given edge within the last time step.static SumoCommandgetLastStepMeanSpeed(String edgeID) Returns the mean speed of vehicles (in m/s) that were on the named induction loop within the last simulation step.static SumoCommandgetLastStepOccupancy(String edgeID) Returns the percentage of time (in %) the detector was occupied by a vehicle.static SumoCommandgetLastStepPersonIDs(String edgeID) Returns the ids of the persons on the given edge during the last time step.static SumoCommandgetLastStepVehicleIDs(String edgeID) Returns the list of IDs of the vehicles on the given edge within the last simulation step.static SumoCommandgetLastStepVehicleNumber(String edgeID) Returns the total number of vehicles on this edge within the last time step.static SumoCommandgetNoiseEmission(String edgeID) Returns the noise emissions (in db)on the given edge within the last time step.static SumoCommandgetNOxEmission(String edgeID) Returns the NOx emissions (in mg) on the given edge during the last time step.static SumoCommandgetParameter(String edgeID, String param) Returns the chosen parameter.static SumoCommandgetPMxEmission(String edgeID) Returns the particular matter emissions (in mg) on the given edge on this edge during the last time step.static SumoCommandgetTraveltime(String edgeID) Returns the estimated travel time (in s) on the given edge on this edge within the last time step.static SumoCommandgetWaitingTime(String edgeID) Returns the waiting time (in s) on the given edge on this edge within the last time step.static SumoCommandAdapt the effort value used for (re-)routing on the given edge.static SumoCommandAdapt the effort value used for (re-)routing on the given edge.static SumoCommandsetMaxSpeed(String edgeID, double speed) Set a new maximum speed (in m/s) for all lanes of the edge.static SumoCommandsetParameter(String edgeID, String param, String value) Sets the chosen parameter.
- 
Constructor Details- 
Edgepublic Edge()
 
- 
- 
Method Details- 
getAdaptedTraveltimeReturns the travel time value (in s) used for (re-)routing.- Parameters:
- edgeID- a string identifying the edge
- time- the point of time the returned value is valid for
- Returns:
- the travel time value (in s)
 
- 
getCO2EmissionReturns the CO2 emissions (in mg) on the given edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the CO2 emissions (in mg)
 
- 
getCOEmissionReturns the CO emissions (in mg) on the given edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the CO emissions (in mg)
 
- 
getEffortReturns the effort value used for (re-)routing.- Parameters:
- edgeID- a string identifying the edge
- time- the point of time the returned value is valid for
- Returns:
- the edge effort value (in s), -1 is returned if such a value does not exist
 
- 
getElectricityConsumptionReturns the electricity consumption in ml for the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the edge effort value (in s), -1 is returned if such a value does not exist
 
- 
getFuelConsumptionReturns the fuel consumption (in ml) on the given edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the fuel consumption (in ml)
 
- 
getHCEmissionReturns the HC emissions (in mg) on the given edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the HC emissions (in mg)
 
- 
getIDCountReturns the number of edges in the network.- Returns:
- the number of edges
 
- 
getIDListReturns a list of all edges in the network.- Returns:
- a list of IDs of all edges
 
- 
getLaneNumberGets the lane number.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- Returns the number of lanes of this edge
 
- 
getLastStepHaltingNumberReturns the total number of halting vehicles on the given edge within the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- number of halting vehicle, a speed of less than 0.1 m/s is considered a halt
 
- 
getLastStepLengthReturns the total vehicle length (in m) on the given edge within the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- total vehicle length (in m)
 
- 
getLastStepMeanSpeedReturns the mean speed of vehicles (in m/s) that were on the named induction loop within the last simulation step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the average speed (in m/s)
 
- 
getLastStepPersonIDsReturns the ids of the persons on the given edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the average speed (in m/s)
 
- 
getLastStepOccupancyReturns the percentage of time (in %) the detector was occupied by a vehicle.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the occupancy (in %)
 
- 
getLastStepVehicleIDsReturns the list of IDs of the vehicles on the given edge within the last simulation step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the IDs of the vehicles
 
- 
getLastStepVehicleNumberReturns the total number of vehicles on this edge within the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the total number of vehicles
 
- 
getNOxEmissionReturns the NOx emissions (in mg) on the given edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the NOx emissions (in mg)
 
- 
getNoiseEmissionReturns the noise emissions (in db)on the given edge within the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the noise emissions (in db)
 
- 
getPMxEmissionReturns the particular matter emissions (in mg) on the given edge on this edge during the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the particular matter emissions(in mg)
 
- 
getTraveltimeReturns the estimated travel time (in s) on the given edge on this edge within the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the estimated travel time
 
- 
getWaitingTimeReturns the waiting time (in s) on the given edge on this edge within the last time step.- Parameters:
- edgeID- a string identifying the edge
- Returns:
- the waiting time
 
- 
getParameterReturns the chosen parameter.- Parameters:
- edgeID- a string identifying the edge
- param- a string identifying the parameter
- Returns:
- the specific parameter
 
- 
setParameterSets the chosen parameter.- Parameters:
- edgeID- the edge ID
- param- a string identifying the parameter
- value- a string identifying the new value
- Returns:
- SumoCommand
 
- 
adaptTraveltimeAdapt the travel time value (in s) used for (re-)routing on the given edge.- Parameters:
- edgeID- a string identifying the edge
- time- travel time value (in s)
- Returns:
- SumoCommand
 
- 
adaptTraveltimeAdapt the travel time value (in s) used for (re-)routing on the given edge.- Parameters:
- edgeID- a string identifying the edge
- time- travel time value (in s)
- begin- begin value
- end- end value
- Returns:
- SumoCommand
 
- 
setEffortAdapt the effort value used for (re-)routing on the given edge.- Parameters:
- edgeID- a string identifying the edge
- effort- effort value
- Returns:
- SumoCommand
 
- 
setEffortAdapt the effort value used for (re-)routing on the given edge.- Parameters:
- edgeID- a string identifying the edge
- effort- effort value
- begin- begin value
- end- end value
- Returns:
- SumoCommand
 
- 
setMaxSpeedSet a new maximum speed (in m/s) for all lanes of the edge.- Parameters:
- edgeID- a string identifying the edge
- speed- maximum speed (in m/s)
- Returns:
- SumoCommand
 
 
-