Class TrafficLight
-
- All Implemented Interfaces:
public final class TrafficLightJson object for traffic lights.
-
-
Field Summary
Fields Modifier and Type Field Description private Integeridprivate TrafficLightStatestateprivate final IntegerrelatedOpenDriveId
-
Constructor Summary
Constructors Constructor Description TrafficLight(Integer id, TrafficLightState state, Integer relatedOpenDriveId)
-
Method Summary
Modifier and Type Method Description final IntegergetId()The identifier of the traffic light. final UnitsetId(Integer id)The identifier of the traffic light. final TrafficLightStategetState()The current state oif the traffic light. final UnitsetState(TrafficLightState state)The current state oif the traffic light. final IntegergetRelatedOpenDriveId()The related open drive identifier. StringtoString()-
-
Constructor Detail
-
TrafficLight
TrafficLight(Integer id, TrafficLightState state, Integer relatedOpenDriveId)
-
-
Method Detail
-
getState
final TrafficLightState getState()
The current state oif the traffic light.
-
setState
final Unit setState(TrafficLightState state)
The current state oif the traffic light.
-
getRelatedOpenDriveId
final Integer getRelatedOpenDriveId()
The related open drive identifier.
-
-
-
-