Package de.tudresden.sumo.cmd
Class Edge
java.lang.Object
de.tudresden.sumo.cmd.Edge
The Class Edge.
- Author:
- Mario Krumnow, Evamarie Wiessner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SumoCommand
adaptTraveltime
(String edgeID, double time) Adapt the travel time value (in s) used for (re-)routing on the given edge.static SumoCommand
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
getAdaptedTraveltime
(String edgeID, double time) Returns the travel time value (in s) used for (re-)routing.static SumoCommand
getCO2Emission
(String edgeID) Returns the CO2 emissions (in mg) on the given edge during the last time step.static SumoCommand
getCOEmission
(String edgeID) Returns the CO emissions (in mg) on the given edge during the last time step.static SumoCommand
Returns the effort value used for (re-)routing.static SumoCommand
getElectricityConsumption
(String edgeID) Returns the electricity consumption in ml for the last time step.static SumoCommand
getFuelConsumption
(String edgeID) Returns the fuel consumption (in ml) on the given edge during the last time step.static SumoCommand
getHCEmission
(String edgeID) Returns the HC emissions (in mg) on the given edge during the last time step.static SumoCommand
Returns the number of edges in the network.static SumoCommand
Returns a list of all edges in the network.static SumoCommand
getLaneNumber
(String edgeID) Gets the lane number.static SumoCommand
getLastStepHaltingNumber
(String edgeID) Returns the total number of halting vehicles on the given edge within the last time step.static SumoCommand
getLastStepLength
(String edgeID) Returns the total vehicle length (in m) on the given edge within the last time step.static SumoCommand
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
getLastStepOccupancy
(String edgeID) Returns the percentage of time (in %) the detector was occupied by a vehicle.static SumoCommand
getLastStepPersonIDs
(String edgeID) Returns the ids of the persons on the given edge during the last time step.static SumoCommand
getLastStepVehicleIDs
(String edgeID) Returns the list of IDs of the vehicles on the given edge within the last simulation step.static SumoCommand
getLastStepVehicleNumber
(String edgeID) Returns the total number of vehicles on this edge within the last time step.static SumoCommand
getNoiseEmission
(String edgeID) Returns the noise emissions (in db)on the given edge within the last time step.static SumoCommand
getNOxEmission
(String edgeID) Returns the NOx emissions (in mg) on the given edge during the last time step.static SumoCommand
getParameter
(String edgeID, String param) Returns the chosen parameter.static SumoCommand
getPMxEmission
(String edgeID) Returns the particular matter emissions (in mg) on the given edge on this edge during the last time step.static SumoCommand
getTraveltime
(String edgeID) Returns the estimated travel time (in s) on the given edge on this edge within the last time step.static SumoCommand
getWaitingTime
(String edgeID) Returns the waiting time (in s) on the given edge on this edge within the last time step.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
setMaxSpeed
(String edgeID, double speed) Set a new maximum speed (in m/s) for all lanes of the edge.static SumoCommand
setParameter
(String edgeID, String param, String value) Sets the chosen parameter.
-
Constructor Details
-
Edge
public Edge()
-
-
Method Details
-
getAdaptedTraveltime
Returns the travel time value (in s) used for (re-)routing.- Parameters:
edgeID
- a string identifying the edgetime
- the point of time the returned value is valid for- Returns:
- the travel time value (in s)
-
getCO2Emission
Returns 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)
-
getCOEmission
Returns 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)
-
getEffort
Returns the effort value used for (re-)routing.- Parameters:
edgeID
- a string identifying the edgetime
- 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
-
getElectricityConsumption
Returns 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
-
getFuelConsumption
Returns 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)
-
getHCEmission
Returns 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)
-
getIDCount
Returns the number of edges in the network.- Returns:
- the number of edges
-
getIDList
Returns a list of all edges in the network.- Returns:
- a list of IDs of all edges
-
getLaneNumber
Gets the lane number.- Parameters:
edgeID
- a string identifying the edge- Returns:
- Returns the number of lanes of this edge
-
getLastStepHaltingNumber
Returns 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
-
getLastStepLength
Returns 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)
-
getLastStepMeanSpeed
Returns 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)
-
getLastStepPersonIDs
Returns 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)
-
getLastStepOccupancy
Returns the percentage of time (in %) the detector was occupied by a vehicle.- Parameters:
edgeID
- a string identifying the edge- Returns:
- the occupancy (in %)
-
getLastStepVehicleIDs
Returns 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
-
getLastStepVehicleNumber
Returns 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
-
getNOxEmission
Returns 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)
-
getNoiseEmission
Returns 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)
-
getPMxEmission
Returns 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)
-
getTraveltime
Returns 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
-
getWaitingTime
Returns 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
-
getParameter
Returns the chosen parameter.- Parameters:
edgeID
- a string identifying the edgeparam
- a string identifying the parameter- Returns:
- the specific parameter
-
setParameter
Sets the chosen parameter.- Parameters:
edgeID
- the edge IDparam
- a string identifying the parametervalue
- a string identifying the new value- Returns:
- SumoCommand
-
adaptTraveltime
Adapt the travel time value (in s) used for (re-)routing on the given edge.- Parameters:
edgeID
- a string identifying the edgetime
- travel time value (in s)- Returns:
- SumoCommand
-
adaptTraveltime
Adapt the travel time value (in s) used for (re-)routing on the given edge.- Parameters:
edgeID
- a string identifying the edgetime
- travel time value (in s)begin
- begin valueend
- end value- Returns:
- SumoCommand
-
setEffort
Adapt the effort value used for (re-)routing on the given edge.- Parameters:
edgeID
- a string identifying the edgeeffort
- effort value- Returns:
- SumoCommand
-
setEffort
Adapt the effort value used for (re-)routing on the given edge.- Parameters:
edgeID
- a string identifying the edgeeffort
- effort valuebegin
- begin valueend
- end value- Returns:
- SumoCommand
-
setMaxSpeed
Set a new maximum speed (in m/s) for all lanes of the edge.- Parameters:
edgeID
- a string identifying the edgespeed
- maximum speed (in m/s)- Returns:
- SumoCommand
-