| |
- getCompleteRedYellowGreenDefinition(tlsID)
- getCompleteRedYellowGreenDefinition(string) ->
.
- getContextSubscriptionResults(tlsID=None)
- getControlledLanes(tlsID)
- getControlledLanes(string) -> c
.
- getControlledLinks(tlsID)
- getControlledLinks(string) -> list(list(list(string)))
.
- getIDList()
- getIDList() -> list(string)
Returns a list of all traffic lights in the network.
- getNextSwitch(tlsID)
- getNextSwitch(string) -> integer
.
- getPhase(tlsID)
- getPhase(string) -> integer
.
- getProgram(tlsID)
- getProgram(string) -> string
.
- getRedYellowGreenState(tlsID)
- getRedYellowGreenState(string) -> string
.
- getSubscriptionResults(tlsID=None)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given traffic light.
If no traffic light id is given, all subscription results are returned in a dict.
If the traffic light id is unknown or the subscription did for any reason return no data,
'None' is returned.
It is not possible to retrieve older subscription results than the ones
from the last time step.
- setCompleteRedYellowGreenDefinition(tlsID, tls)
- setPhase(tlsID, index)
- setPhaseDuration(tlsID, phaseDuration)
- setProgram(tlsID, programID)
- setRedYellowGreenState(tlsID, state)
- subscribe(tlsID, varIDs=(40,), begin=0, end=2147483647)
- subscribe(string, list(integer), double, double) -> None
Subscribe to one or more traffic light values for the given interval.
A call to this method clears all previous subscription results.
- subscribeContext(tlsID, domain, dist, varIDs=(40,), begin=0, end=2147483647)
|