Skip to main content

Traffic light

This element is a basic traffic light. The graphic origin of the Traffic light corresponds to the geometric center of the Traffic light. You can parameter its light cycle and assign it to a position in a trajectory. Although you can define timings of the colors in the parameters, you can also link the traffic light to an existing crossroad, which can handle several traffic lights, then taking control over the parameters of the traffic light.

Is an equipment
Can have equipment

This element must be used with 2D scene context.

Icon

Traffic Light

2D Representation

Traffic light on Scene2D

3D Representation

Traffic light lamp on Scene 3D

External parameters

Show/Hide all parameters
parametereditable via "Parameter" tabupdatable via a mappingdescriptionunittype
Crossroad✔️Crossroad where the traffic light will be positioned.-Enumeration
Trajectory✔️Trajectory where the traffic light will be positioned.-Enumeration
Curvilinear position✔️Position on the trajectory.meterDecimal number
X-axis position✔️Position of the element on the X-axis.meterDecimal number
Y-axis position✔️Position of the element on the Y-axis.meterDecimal number
Z-axis position✔️Position of the element on the Z-axis.meterDecimal number
Z-axis angle✔️Angle of rotation of the element compared to its initial position.degreeDecimal number
Red Time Display✔️✔️Duration of the red light during an automatic cycle.secondDecimal number
Yellow Time Display✔️✔️Duration of the yellow light during an automatic cycle.secondDecimal number
Green Time Display✔️✔️Duration of the green light during an automatic cycle.secondDecimal number
Initial state✔️✔️State by which the cycle will begin.-Enumeration (red, yellow, green, flashing yellow)
Mode✔️✔️Indicates which of the Virtual Bench or model will handle the traffic light cycle.-Enumeration (auto, manual)
iconX✔️Relative position of the icon, from the origin of the road sign, on the X-axis.meterDecimal number
iconY✔️Relative position of the icon, from the origin of the road sign, on the Y-axis.meterDecimal number
Threshold zoom out✔️Zoom level from which its representation on the scene is no longer modified.%Decimal number
LengthLength of the traffic light.meterDecimal number
WidthWidth of the traffic light.meterDecimal number
HeightHeight of the traffic light.meterDecimal number
longitude coordinateAutomatically calculated longitude value, based on the origin defined for the context and the position of the element.degreeDecimal number
latitude coordinateAutomatically calculated latitude value, based on the origin defined for the context and the position of the element.degreeDecimal number

Triggered behaviours

See Triggered behaviours and events page for more explanation: Triggered behaviours and events.

Show/Hide all triggered behaviours

Destroy

At the reception of the flow, the element is destroy.

No parameters for this triggered behaviour.

Events

See Triggered behaviours and events page for more explanation: Triggered behaviours and events.

Show/Hide all events
eventdescription
On Parameter Value ChangedThe element can send information to the model when the value of the selected parameter has changed
At initializationThe traffic light can send information to the model once at initialization
ContinuallyThe traffic light can send information to the model continuously
On change redThe traffic light can send information to the model once when it switch to red
On change yellowThe traffic light can send information to the model once when it switch to yellow
On change greenThe traffic light can send information to the model once when it switch to green