SUMO
Simulation of Urban MObility

- Home
- Download
- Documentation
- Wiki
- Trac
- Blog
- Contact
- SF-Project

# TraCI/Change Edge State

# Command 0xca: Change Edge State

ubyte | string | ubyte | <value_type>
Variable | Edge ID | Type of the value | New Value
--- | --- | --- | ---

Changes the state of an edge. Because it is possible to change different values of a edge, the number of parameter to supply and their types differ between commands. The following values can be changed, the parameter which must be given are also shown in the table.

Overview Changeable Edge Variables
Variable | ValueType | Description
--- | --- | ---
change global travel time information (0x58) | compound (begin time, end time, value), see below | Inserts the information about the travel time of the named edge valid from begin time to end time into the global edge weights times container.
change global effort information (0x59) | compound (begin time, end time, value), see below | Inserts the information about the effort of the named edge valid from begin time to end time into the global edge weights container.

The message contents are as following:

change edge travel time information (0x58)

byte | int | byte | int | byte | int | byte | double
value type compound | number of elements (always=3) | value type integer | begin time (in s) | value type integer | end time (in s) | value type double | travel time value (in s)
--- | --- | --- | --- | --- | --- | --- | ---

change edge effort information (0x59)

byte | int | byte | int | byte | int | byte | double
value type compound | number of elements (always=3) | value type integer | begin time (in s) | value type integer | end time (in s) | value type double | effort value (abstract)
--- | --- | --- | --- | --- | --- | --- | ---

This page was last modified on 13 July 2011, at 14:05.