public class Inductionloop
extends Object
Constructor and Description |
---|
Inductionloop() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
getIDCount()
Returns the number of all induction loops in the network.
|
static SumoCommand |
getIDList()
Returns a list of IDs of all induction loops within the scenario.
|
static SumoCommand |
getLaneID(String loopID)
Returns the ID of the lane the loop is placed at.
|
static SumoCommand |
getLastStepMeanLength(String loopID)
Returns the mean length of vehicles (in m) which were on the detector in
the last step.
|
static SumoCommand |
getLastStepMeanSpeed(String loopID)
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 loopID)
Returns the percentage of time (in %) the detector was occupied by a
vehicle within the last time step.
|
static SumoCommand |
getLastStepVehicleIDs(String loopID)
Returns the list of IDs of vehicles that were on the named induction loop
in the last simulation step.
|
static SumoCommand |
getLastStepVehicleNumber(String loopID)
Returns the number of vehicles that were on the named induction loop
within the last simulation step.
|
static SumoCommand |
getPosition(String loopID)
Returns the position (in m) of the induction loop at it's lane, counted
from the lane's begin.
|
static SumoCommand |
getTimeSinceDetection(String loopID)
Return the time (in s) since last detection.
|
static SumoCommand |
getVehicleData(String loopID)
A complex structure containing several information about vehicles which
passed the detector.
|
public static SumoCommand getIDList()
public static SumoCommand getIDCount()
public static SumoCommand getLaneID(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getLastStepMeanLength(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getLastStepMeanSpeed(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getLastStepOccupancy(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getLastStepVehicleIDs(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getLastStepVehicleNumber(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getPosition(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getTimeSinceDetection(String loopID)
loopID
- a string identifying the induction looppublic static SumoCommand getVehicleData(String loopID)
loopID
- a SumoStringList containing induction loops