跳到主要内容

Crossroad

This element allows to handle several traffic lights and make them work through cycles.

Each traffic light can be linked to a crossroad thanks to its parameter Crossroad.

Is an equipment
Can have equipment

This element must be used with 2D scene context.

Icon

crossroad

2D Representations

Nonecrossroad on Scene2D in Run Mode
Crossroad in Edit ModeCrossroad in Run Mode
crossroad with linked traffic lights
Crossroad with linked traffic lights

3D Representation

No reprensation available on 3D.

External parameters

Show/Hide all parameters
parametereditable via "Parameter" tabupdatable via a mappingdescriptionunittype
Time✔️Time of the simulation at which the cycle table is at its beginning.msInteger
Cycle table✔️✔️Deep description of the whole cycles (colors and timing for each traffic light).-Table
Threshold zoom out✔️Zoom level from which its representation on the scene is no longer modified.%Decimal number
X-axis positionPosition of the element on the X-axis.meterDecimal number
Y-axis positionPosition of the element on the Y-axis.meterDecimal number
Z-axis positionPosition of the element on the Z-axis.meterDecimal number
LengthLength of the element.meterDecimal number
WidthWidth of the element.meterDecimal number
HeightHeight of the element.meterDecimal number
Time next cycleThe time left before switching to the next cyclemsInteger
Current cycleThe index of the current cycle (starting from 1)-Integer
Visibility✔️Allows you to choose if you want the element to be visible or not on the scene during the execution of the scenario.-Enumeration (visible, hidden, inherit)
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

When you create the element Crossroad, it is not linked to any traffic light. Thus, it cannot control any. You will have to add-up each traffic light to your crossroad. Each traffic light can only be linked to one crossroad.

  • First, select the traffic light that you want to link to your crossroad.
Traffic light 1 selection
  • Then, in the Parameter tab associated with your traffic light, find the parameter Crossroad and select the exact name given to your crossroad.
Crossroad selection in traffic light parameter
  • Don't forget to click Save in the Parameter tab to take your change into account.
  • Now the link should appear in Edit Mode, as an orange line.
Traffic light 1 linked
  • Repeat the process for each traffic light that you want to link to your crossroad.
All traffic lights linked

Cycle table description

The parameter Cycle table allows to edit a whole table which gives a complete description of the cycles of a crossroad. When clicking on the edit Edit parameter button icon you will access a table as the one below:

Cycle table representation

Here is a description of each column:

Cycle

A cycle is defined by a period of time in which each traffic light have a defined color. Each cycle is identified with a number (or index). The first cycle of the cycle table will be 1, then, the index will be incremented for each new cycle added. The cycle table will go through all cycles, and then loop starting from the first cycle.

You can add and defined a new cycle by clicking on the add Add button button. You can also remove existing cycles by clicking on the Delete button button.

Time

The time column will define how long a cycle should be, in ms. For example, a value of 5000 for a given cycle means that the current cycle will last for 5 seconds before switching to the next cycle.

Traffic lights

For each traffic light that you have linked to your crossroad, you will have an additional column representing a traffic light for each cycle you will have to define the color of the given traffic light.

Example

Demo crossroad

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 crossroad can send information to the model once at initialization
ContinuallyThe crossroad can send information to the model continuously