## 3 Results
### Creation of Road Light Signaling  
Light signaling determines vehicles priority according to a pre-defined cycle that controls it. Each light signal at the intersection has its own cycle, when STOP, WAIT and GO light signals alternate. It is very important to consistently adjust the cycle of all light signals to avoid collisions in the intersection. Figure 5: Example of a library in Tecnomatix Plant Simulation. Figure 6: Objects alignment via connectors. In programs simulating only traffic, the priority at the intersection can be set using preferences or the aforementioned TLS. The programs offer a module enabling setting of signaling and its cycle with simple moves. There are several options for the ways to program the light signaling. The simplest method was chosen for this model including the attributes Station, Generator, a method-Method and a variable-Variable. An attribute from the library called Station was placed in the model and renamed to Semafor_1. This Semafor_1 was, through Edit Icons option, graphically modified in three phases. The phases were named phase 1-RED, phase 2-ORANGE, phase 3-GREEN. Proper naming of each element is very important when writing a source code. Additional settings in this attribute were not required. When entering additional light signals into the model, the first created object was used, which was then copied. Its settings have not changed. Another element from the library needed to create light signaling is the aforementioned Generator. It was renamed to Gen_Semafor_1, then set according to a color generation interval. Each semaphore has its own generator, which is subsequently referred to by a method-Method element. The method was named Met_Semafor_1 (Figure 8) and was also unique for each light signaling, defining the functionality of Semafor_1 attribute. This is where the principle--the brain of the entire light signaling--is embedded. It indicates that if the signaling status is equal to 1, the color of Semafor_1 should change to red. If its state is set to 2, it should change to orange, and when it is set to 3, to green. State 4 was added for a repeating cycle which includes orange color between the green and red signals. In this method, the Gen_Semafor_1 interval is included, followed by the next signal. The last and very important element in the creation of road light signaling by Tecnomic Plant Simulation is the definition of four Variables. These variables are used for overall setting of the light signaling, i.e., its cycle. The variable Stat_Semafor_1 defines the initial state of signaling. That is, if Stat_Semafor_1 = 1, the traffic light turns red when the simulation starts. If Stat_Semafor_1 = 2, the semaphore displays an orange signal, if Stat_Semafor_1 = 3, the semaphore turns green. Stat_Semafor_1 = 4 shows the orange color on the light signaling. Figure 7: Vector representation of the transporters. The other three variables (Figure 8) are used to set the light signaling cycle. The Red_Semafor_1 variable is reserved for setting the STOP signal time. In this case, it is 20 s in this position. The third variable named Orange_Semafor_1 is intended for the WAIT signal and lasts for 5 s. The last variable is Green_Semafor_1, which is marked with a GO signal and lasts for 40 s.  
As part of hypothesis verification, there are a total of eight independent light signals in the model, two of which are signals to control pedestrians at the crossing. Tecnotaxic Plant Simulation user only works with the last step when setting up the traffic lights in the modeled intersection. As needed, TLS cycle can be varied, thus traffic situation in the intersection can be affected. Other type of light signaling used in the model is signaling at the pedestrian crossing. It is modeled similarly to TLS for a vehicle control. The Station attribute is renamed to Semafor_7 and also by Edit Icons graphically modified into two phases, phase 1: RED and phase 2: GREEN. Similar to the previous setup, two attributes were used from the library, namely Method and Generator.