Package de.tudresden.sumo.cmd
Class Inductionloop
java.lang.Object
de.tudresden.sumo.cmd.Inductionloop
The Class Inductionloop.
- Author:
- Mario Krumnow, Evamarie Wiessner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SumoCommandReturns the number of all induction loops in the network.static SumoCommandReturns a list of IDs of all induction loops within the scenario.static SumoCommandReturns the ID of the lane the loop is placed at.static SumoCommandgetLastStepMeanLength(String loopID) Returns the mean length of vehicles (in m) which were on the detector in the last step.static SumoCommandgetLastStepMeanSpeed(String loopID) Returns the mean speed of vehicles (in m/s) that were on the named induction loop within the last simulation step.static SumoCommandgetLastStepOccupancy(String loopID) Returns the percentage of time (in %) the detector was occupied by a vehicle within the last time step.static SumoCommandgetLastStepVehicleIDs(String loopID) Returns the list of IDs of vehicles that were on the named induction loop in the last simulation step.static SumoCommandgetLastStepVehicleNumber(String loopID) Returns the number of vehicles that were on the named induction loop within the last simulation step.static SumoCommandgetParameter(String loopID, String param) Returns the chosen parameter.static SumoCommandgetPosition(String loopID) Returns the position (in m) of the induction loop at it's lane, counted from the lane's begin.static SumoCommandgetTimeSinceDetection(String loopID) Return the time (in s) since last detection.static SumoCommandgetVehicleData(String loopID) A complex structure containing several information about vehicles which passed the detector.
- 
Constructor Details- 
Inductionlooppublic Inductionloop()
 
- 
- 
Method Details- 
getIDListReturns a list of IDs of all induction loops within the scenario.- Returns:
- list of IDs of all induction loops in the network
 
- 
getIDCountReturns the number of all induction loops in the network.- Returns:
- the number of detectors
 
- 
getParameterReturns the chosen parameter.- Parameters:
- loopID- the loop ID
- param- a string personIDentifying the parameter
- Returns:
- the specific parameter
 
- 
getLaneIDReturns the ID of the lane the loop is placed at.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- a string identifying the lane
 
- 
getLastStepMeanLengthReturns the mean length of vehicles (in m) which were on the detector in the last step.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- average length of the vehicles (in m)
 
- 
getLastStepMeanSpeedReturns the mean speed of vehicles (in m/s) that were on the named induction loop within the last simulation step.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- average speed of the vehicles (in m/s)
 
- 
getLastStepOccupancyReturns the percentage of time (in %) the detector was occupied by a vehicle within the last time step.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- occupancy of the detector (in %)
 
- 
getLastStepVehicleIDsReturns the list of IDs of vehicles that were on the named induction loop in the last simulation step.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- list of all vehicleIDs
 
- 
getLastStepVehicleNumberReturns the number of vehicles that were on the named induction loop within the last simulation step.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- total number of vehicles
 
- 
getPositionReturns the position (in m) of the induction loop at it's lane, counted from the lane's begin.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- position of the detector, counted from the lane's begin
 
- 
getTimeSinceDetectionReturn the time (in s) since last detection.- Parameters:
- loopID- a string identifying the induction loop
- Returns:
- time since last detection (in s)
 
- 
getVehicleDataA complex structure containing several information about vehicles which passed the detector.- Parameters:
- loopID- a SumoStringList containing induction loops
- Returns:
- several information about vehicles which passed the detector.
 
 
-