TrafficLight#

Inheritance diagram of tasi.io.TrafficLight

A TrafficLight represents the state of traffic light entity for a specific point in time.

Factory methods#

TrafficLight.from_tasi(obj, **kwargs)

TrafficLight.model_validate(obj, *[, ...])

Validate a pydantic model instance.

Conversion#

TrafficLight.as_tasi([as_record])

Convert to a TASI internal representation.

Attributes#

TrafficLight.timestamp

The time of traffic light state

TrafficLight.flashing

Indicate if the traffic light is flashing

TrafficLight.state

The state of the traffic light

TrafficLight.index

A unique identifier of the traffic light