TraCI/Lane Area Detector Value Retrieval
Command 0xad: Get LaneAreaDetector Variable
|Variable||Get LaneArea Detector ID|
Asks for the value of a certain variable of the named LaneArea (e2) detector. The value returned is the state of the asked variable/value within the last simulation step. Please note that for asking values from your detectors you have to define them within an additional-file and load them at the start of the simulation. The freq and file attributes do not matter for TraCI.
The following variable values can be retrieved, the type of the return value is also shown in the table.
|id list (0x00)||stringList||Returns a list of ids of all lane area detectors within the scenario (the given DetectorID is ignored)||getIDList|
|count (0x01)||int||Returns the number of lane area detectors within the scenario (the given DetectorID is ignored)||getIDCount|
|position (0x42)||double||Returns the starting position of the detector at it's lane, counted from the lane's begin, in meters.||getPosition|
|length(0x44)||double||Returns the length of the detector in meters.||getLength|
|lane ID (0x51)||string||Returns the ID of the lane the detector is placed at.||getLaneID|
|last step vehicle number (0x10)||int||Returns the number of vehicles that have been within the area detector within the last simulation step [#];||getLastStepVehicleNumber|
|last step mean speed (0x11)||double||Returns the mean speed of vehicles that have been within the named area detector within the last simulation step [m/s]||getLastStepMeanSpeed|
|last step vehicle ids (0x12)||stringList||Returns the list of ids of vehicles that have been within the detector in the last simulation step||getLastStepVehicleIDs|
|last step occupancy (0x13)||int||Returns the percentage of space the detector was occupied by a vehicle [%]||getLastStepOccupancy|
|last step halting vehicles number (0x14)||int||Returns the number of vehicles which were halting during the last time step||getJamLengthVehicle|
|last step jam length in number of vehicles (0x18)||int||Returns the number of vehicles which were halting on the loop during the last time step||getJamLengthVehicle|
|last step jam length in meters (0x19)||int||Returns the length of the jam in meters||getJamLengthMeters|
Response 0xbd: LaneAreaDetector Variable
|Variable||Lane Area Detector ID||Return type of the variable||<VARIABLE_VALUE>|
The respond to a "Command Get Get LaneAreaDetector Variable".