Rerouter Value Retrieval
Command 0x28: Get Rerouter Variable
| ubyte |
string |
| Variable |
Rerouter ID |
| Variable |
Return type |
Description |
Python method |
| ID list (0x00) |
stringList |
IDs of all rerouters. The command ignores the supplied ID. |
traci.rerouter.getIDList() |
| ID count (0x01) |
int |
Number of rerouters. The command ignores the supplied ID. |
traci.rerouter.getIDCount() |
| Parameter (0x7e) |
string |
Value of the requested parameter. |
traci.rerouter.getParameter(rerouterID, key) |
Parameter retrieval (0x7e)
The request contains a typed string with the parameter key after the rerouter ID.
| Key |
Returned value |
probability |
The current rerouting probability as a numeric string. This is the configured probability or the active override supplied with setParameter. |
An unsupported key returns an empty string. A request for probability on an unknown rerouter raises a TraCI error.
Response 0x38: Rerouter Variable
| ubyte |
string |
ubyte |
value |
| Variable |
Rerouter ID |
Return type |
Variable value |