Change Rerouter State

Command 0x48: Change Rerouter State#

ubyte string ubyte value
Variable Rerouter ID Value type New value

Set parameter (0x7e)#

Call traci.rerouter.setParameter(rerouterID, key, value). In the protocol, the value is a compound containing two typed strings, the key and its new value.

Key Accepted values Effect
probability A numeric string from "0" to "1", inclusive, or an empty string. A number overrides the configured probability. An empty string clears the override and restores the configured probability.

Unsupported keys, unknown rerouter IDs, and invalid values raise a TraCI error. Read the effective probability with getParameter.

traci.rerouter.setParameter("R1", "probability", "0.75")
traci.rerouter.setParameter("R1", "probability", "")