Package de.tudresden.sumo.cmd
Class Lane
java.lang.Object
de.tudresden.sumo.cmd.Lane
The Class Lane.
- Author:
- Mario Krumnow, Evamarie Wiessner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SumoCommandgetAllowed(String laneID) Returns a list of allowed vehicle classes.static SumoCommandgetCO2Emission(String laneID) Returns the CO2 emissions (in mg) on the given lane during the last time step.static SumoCommandgetCOEmission(String laneID) Returns the CO emissions (in mg) on the given lane during the last time step.static SumoCommandgetDisallowed(String laneID) Returns a list of disallowed vehicle classes.static SumoCommandReturns the ID of the edge this lane belongs to.static SumoCommandgetElectricityConsumption(String laneID) Returns the electricity consumption in ml for the last time step.static SumoCommandReturns the ids of incoming lanes that have right of way over the connection from laneID to toLaneID.static SumoCommandgetFuelConsumption(String laneID) Returns the fuel consumption (in ml) on the given lane during the last time step.static SumoCommandgetHCEmission(String laneID) Returns the HC emissions (in mg) on the given lane during the last time step.static SumoCommandReturns the number of all lanes in the network.static SumoCommandReturns a list of IDs of all lanes in the network.static SumoCommandgetInternalFoes(String laneID) Returns the ids of internal lanes that are in conflict with the given internal lane id.static SumoCommandgetLastStepHaltingNumber(String laneID) Returns the total number of halting vehicles on the given lane within the last time step.static SumoCommandgetLastStepLength(String laneID) Returns the total vehicle length (in m) on the given lane during the last time step.static SumoCommandgetLastStepMeanSpeed(String laneID) Returns the mean speed (in m/s) on the given lane within the last time step.static SumoCommandgetLastStepOccupancy(String laneID) Returns the occupancy (in %) on the given lane during the last time step.static SumoCommandgetLastStepVehicleIDs(String laneID) Returns the IDs of the vehicles on the given lane within the last time step.static SumoCommandgetLastStepVehicleNumber(String laneID) Returns number of vehicles on this lane within the last time step.static SumoCommandReturns the length (in m) of the named lane.static SumoCommandgetLinkNumber(String laneID) Returns the number of links outgoing from this lane.static SumoCommandReturns descriptions of the links (in m) outgoing from this lane.static SumoCommandgetMaxSpeed(String laneID) Returns the maximum speed (in m/s) allowed on this lane.static SumoCommandgetNoiseEmission(String laneID) Returns the noise emissions (in db) on the given lane during the last time step.static SumoCommandgetNOxEmission(String laneID) Returns the NOx emissions (in mg) on the given lane during the last time step.static SumoCommandgetParameter(String laneID, String param) Returns the chosen parameter.static SumoCommandgetPMxEmission(String laneID) Returns the particular matter emissions (in mg) on the given lane during the last time step.static SumoCommandReturns this lane's shape.static SumoCommandgetTraveltime(String laneID) Returns the estimated travel time (in s) on the given lane during the last time step.static SumoCommandgetWaitingTime(String laneID) getWaitingTime.static SumoCommandReturns the width (in m) of the named lane.static SumoCommandsetAllowed(String laneID, SumoStringList allowedClasses) Set a list of allowed vehicle classes.static SumoCommandsetDisallowed(String laneID, SumoStringList disallowedClasses) Set a list of disallowed vehicle classes.static SumoCommandSet the length (in m) of the named lane.static SumoCommandsetMaxSpeed(String laneID, double speed) Set the maximum speed (in m/s) allowed on this lane.static SumoCommandsetParameter(String laneID, String param, String value) Sets the chosen parameter.
- 
Constructor Details- 
Lanepublic Lane()
 
- 
- 
Method Details- 
getAllowedReturns a list of allowed vehicle classes.- Parameters:
- laneID- a string identifying a lane
- Returns:
- list of allowed vehicle classes. An empty list means all vehicles are allowed.
 
- 
getIDCountReturns the number of all lanes in the network.- Returns:
- the number of lanes
 
- 
getCO2EmissionReturns the CO2 emissions (in mg) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the CO2 emissions (in mg)
 
- 
getCOEmissionReturns the CO emissions (in mg) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the CO emissions (in mg)
 
- 
getDisallowedReturns a list of disallowed vehicle classes.- Parameters:
- laneID- a string identifying a lane
- Returns:
- list of disallowed vehicle classes
 
- 
getEdgeIDReturns the ID of the edge this lane belongs to.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the id of the edge this lane belongs to
 
- 
getElectricityConsumptionReturns the electricity consumption in ml for the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the energy consumption
 
- 
getFoesReturns the ids of incoming lanes that have right of way over the connection from laneID to toLaneID.- Parameters:
- laneID- a string identifying a lane
- toLane- a string identifying the target lane
- Returns:
- the energy consumption
 
- 
getInternalFoesReturns the ids of internal lanes that are in conflict with the given internal lane id.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the energy consumption
 
- 
getFuelConsumptionReturns the fuel consumption (in ml) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the fuel consumption (in ml)
 
- 
getHCEmissionReturns the HC emissions (in mg) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the HC emissions (in mg)
 
- 
getIDListReturns a list of IDs of all lanes in the network.- Returns:
- a list of IDs of all lanes
 
- 
getLastStepHaltingNumberReturns the total number of halting vehicles on the given lane within the last time step. A speed of less than 0.1 m/s is considered a halt.- Parameters:
- laneID- a string identifying a lane
- Returns:
- number of halting vehicles within the last time step
 
- 
getLastStepLengthReturns the total vehicle length (in m) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- vehicle length (in m) within the last time step
 
- 
getLastStepMeanSpeedReturns the mean speed (in m/s) on the given lane within the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the average speed (in m/s) within the last time step
 
- 
getLastStepOccupancyReturns the occupancy (in %) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the percentage of time the lane was occupied
 
- 
getLastStepVehicleIDsReturns the IDs of the vehicles on the given lane within the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- list of IDs of vehicles
 
- 
getLastStepVehicleNumberReturns number of vehicles on this lane within the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- number of vehicles
 
- 
getLengthReturns the length (in m) of the named lane.- Parameters:
- laneID- a string identifying a lane
- Returns:
- length of the named lane (in m)
 
- 
getLinkNumberReturns the number of links outgoing from this lane.- Parameters:
- laneID- a string identifying a lane
- Returns:
- number of connections to successive lanes
 
- 
getLinksReturns descriptions of the links (in m) outgoing from this lane.- Parameters:
- laneID- a string identifying a lane
- Returns:
- a list containing IDs of sucessor lanes
 
- 
getMaxSpeedReturns the maximum speed (in m/s) allowed on this lane.- Parameters:
- laneID- a string identifying a lane
- Returns:
- maximum allowed speed (in m/s)
 
- 
getNOxEmissionReturns the NOx emissions (in mg) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the NOx emissions (in mg)
 
- 
getNoiseEmissionReturns the noise emissions (in db) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the noise emissions (in mg)
 
- 
getParameterReturns the chosen parameter.- Parameters:
- laneID- a string identifying the edge
- param- a string identifying the parameter
- Returns:
- the specific parameter
 
- 
setParameterSets the chosen parameter.- Parameters:
- laneID- the lane ID
- param- a string identifying the parameter
- value- a string identifying the new value
- Returns:
- SumoCommand
 
- 
getPMxEmissionReturns the particular matter emissions (in mg) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the particular matter emissions (in mg)
 
- 
getShapeReturns this lane's shape.- Parameters:
- laneID- a string identifying a lane
- Returns:
- list of position describing the geometry
 
- 
getTraveltimeReturns the estimated travel time (in s) on the given lane during the last time step.- Parameters:
- laneID- a string identifying a lane
- Returns:
- estimated travel time (in s)
 
- 
getWidthReturns the width (in m) of the named lane.- Parameters:
- laneID- a string identifying a lane
- Returns:
- width of lane (in m)
 
- 
getWaitingTimegetWaitingTime.- Parameters:
- laneID- a string identifying a lane
- Returns:
- the waiting time of the lane (in s)
 
- 
setAllowedSet a list of allowed vehicle classes.- Parameters:
- laneID- a string identifying a lane
- allowedClasses- allowed vehicle classes
- Returns:
- SumoCommand
 
- 
setDisallowedSet a list of disallowed vehicle classes.- Parameters:
- laneID- a string identifying a lane
- disallowedClasses- not allowed vehicle classes
- Returns:
- SumoCommand
 
- 
setLengthSet the length (in m) of the named lane.- Parameters:
- laneID- a string identifying a lane
- length- new length (in m) of the lane
- Returns:
- SumoCommand
 
- 
setMaxSpeedSet the maximum speed (in m/s) allowed on this lane.- Parameters:
- laneID- a string identifying a lane
- speed- maximum velocity allowed (in m/s)
- Returns:
- SumoCommand
 
 
-