TraCI/Multi-Entry/Multi-Exit Detectors Value Retrieval
generated on 2015-09-02 00:02:08.037176 from the wiki page for TraCI/Multi-Entry/Multi-Exit_Detectors_Value_Retrieval for SUMO 0.24.0
Command 0xa1: Get MeMeDetector Variable
| ubyte | string |
| Variable | Multi-Entry/Multi-Exit Detector ID |
|---|
Asks for the value of a certain variable of the named multi-entry/multi-exit (e3) 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 multi-entry/multi-exit detectors with TraCI, you have to define them in an additional input file (see multi-entry/multi-exit (e3) detectors) and cannot add them via TraCI (yet). The following variable values can be retrieved, the type of the return value is also shown in the table.
| Variable | ValueType | Description |
|---|---|---|
| id list (0x00) | stringList | Returns a list of ids of all multi-entry/multi-exit detectors within the scenario (the given DetectorID is ignored) |
| count (0x01) | int | Returns the number of multi-entry/multi-exit detectors within the scenario (the given DetectorID is ignored) |
| last step vehicle number (0x10) | integer | Returns the number of vehicles that have been within the named multi-entry/multi-exit detector within the last simulation step [#];
Note:
If the interval length for the detector is equal to the timestep length, this value corresponds to the vehicleSumWithin measure of multi-entry/multi-exit detectors. |
| last step mean speed (0x11) | double | Returns the mean speed of vehicles that have been within the named multi-entry/multi-exit detector within the last simulation step [m/s]
Note:
If the interval length for the detector is equal to the timestep length, this value corresponds to the meanSpeedWithin measure of multi-entry/multi-exit detectors. |
| last step vehicle ids (0x12) | stringList | Returns the list of ids of vehicles that have been within the named multi-entry/multi-exit detector in the last simulation step |
| last step halting vehicles number (0x14) | int | Returns the number of vehicles which were halting during the last time step |
Response 0xb1: MeMeDetector Variable
| ubyte | string | ubyte | <return_type> |
| Variable | Multi-Entry/Multi-Exit Detector ID | Return type of the variable | <VARIABLE_VALUE> |
|---|
The respond to a "Command Get MeMeDetector Variable".
Notes
This page was last modified on 17 June 2014, at 08:12.