Package de.tudresden.sumo.cmd
Class Lanearea
java.lang.Object
de.tudresden.sumo.cmd.Lanearea
- Author:
- Mario Krumnow, Evamarie Wiessner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SumoCommandReturns the number of the areal detectors in the network.static SumoCommandReturns a list of all areal detectors in the network.static SumoCommandgetJamLengthMeters(String loopID) getJamLengthMetersstatic SumoCommandgetJamLengthVehicle(String loopID) getJamLengthVehiclestatic SumoCommandgetLaneIDstatic SumoCommandgetLastStepHaltingNumber(String loopID) Returns the number of vehicles which were halting during the last time step.static SumoCommandgetLastStepMeanSpeed(String loopID) getLastStepMeanSpeedstatic SumoCommandgetLastStepOccupancy(String loopID) getLastStepOccupancystatic SumoCommandgetLastStepVehicleIDs(String loopID) Returns the list of ids of vehicles that were on the named detector in the last simulation step.static SumoCommandgetLastStepVehicleNumber(String loopID) Returns the number of vehicles on the detectorstatic SumoCommandgetlengthstatic SumoCommandgetPosition(String loopID) getPosition
-
Constructor Details
-
Lanearea
public Lanearea()
-
-
Method Details
-
getIDList
Returns a list of all areal detectors in the network.- Returns:
- a list of IDs of all areal detectors
-
getLastStepVehicleNumber
Returns the number of vehicles on the detector- Parameters:
loopID- a string identifying the loop- Returns:
- numeber of vehicles
-
getIDCount
Returns the number of the areal detectors in the network.- Returns:
- the number of areal detectors
-
getLastStepHaltingNumber
Returns the number of vehicles which were halting during the last time step.- Parameters:
loopID- a string identifying the loop- Returns:
- numeber of vehicles
-
getLastStepVehicleIDs
Returns the list of ids of vehicles that were on the named detector in the last simulation step.- Parameters:
loopID- a string identifying the loop- Returns:
- a list of all vehicles on the detector
-
getJamLengthVehicle
getJamLengthVehicle- Parameters:
loopID- a string identifying the loop- Returns:
- jam length in vehicles
-
getJamLengthMeters
getJamLengthMeters- Parameters:
loopID- a string identifying the loop- Returns:
- jam length in [m]
-
getLastStepMeanSpeed
getLastStepMeanSpeed- Parameters:
loopID- a string identifying the loop- Returns:
- last step mean speed
-
getLastStepOccupancy
getLastStepOccupancy- Parameters:
loopID- a string identifying the loop- Returns:
- last step occupancy
-
getPosition
getPosition- Parameters:
loopID- a string identifying the loop- Returns:
- position of the vehicle in m
-
getLaneID
getLaneID- Parameters:
loopID- a string identifying the loop- Returns:
- lane ID of the detector
-
getLength
getlength- Parameters:
loopID- a string identifying the loop- Returns:
- lane ID of the detector
-