78 Journal of Engineering, Mechanics and Architecture www. grnjournal.us AMERICAN Journal of Engineering, Mechanics and Architecture Volume 2, Issue 5, 2024 ISSN (E): 2993-2637 Simulation of Container Data Processing Using Petri Nets Kamaletdinov Shohrukh Shukhratovich Tashkent State Transport University, Doctoral student ( DSc ) Abstract: This article presents a process model for processing container data using Petri nets obtained from an automatic monitoring system for rolling stock and containers. This model makes it possible to check the operation of parallel processes and evaluate the quality of work as a whole. Keywords: Petri nets, container, automatic system, modeling, Internet of things. The algorithm for processing data about containers has a unique character. The container can be located separately from the rolling stock, on a carriage or as part of a specific train. But the most important information is the location, namely the territorial object in which the container is located. The geolocation sensor is attached to the container from the outside. One individual sensor for one locomotive. The sensor periodically sends a signal about the location of this container, that is, the longitude and latitude coordinates. From the ASMPS database, the container number is searched by the sensor number. Since the numbers of sensors and containers are interrelated. If the number is not found when searching for a container from the database, the sensor information will not be saved in the database. The system console will indicate that the container was not found in the database. This can mainly happen when the sensor has not been registered in the system. The sensor will transmit a data set that includes information about the geolocation of the container. The system will process longitude and latitude data to determine the corresponding territorial feature. The parameters of the size and characteristics of the territorial object are pre- entered into the database. Through the Automated Transportation Data Processing System (ATDPS), the availability of a container on the wagon will be checked. This information is checked using the sending model of the automated control system. If the container is not detected on the car, then parameters such as the car number and train index will remain empty. If the container is on a wagon, the system will determine the wagon number. Then, information about the destination station of the loaded car will be obtained from the ASOUP database. Using the car number, it will be possible to search for the location of the container on a specific train. The train search operation is carried out using automated control system. If a wagon is not detected on a train, information about the container is stored as being on a wagon that is not coupled. The index of the train on which the container is located is determined. A container history object is created, the parameters of which are filled in according to the received data and saved. The Petri net (PN) theory, first described in 1962 by the German mathematician Carl Petri, is now widely used in almost all branches of scientific research. SPs are a convenient mathematical apparatus for formalization, analysis and modeling of discrete event systems]. Due to the loosely 79 Journal of Engineering, Mechanics and Architecture www. grnjournal.us coupled multi-level structure, SPs can be used to effectively simulate various technological processes. SP methodology is widely used for fault detection and diagnosis of discrete event systems . Definition. The Petri net C is a quadruple , ๐ถ = (๐‘ƒ, ๐‘‡, ๐ผ, ๐‘‚). ๐‘ƒ = {๐‘1, ๐‘2, โ€ฆ , ๐‘๐‘›} โ€“ a finite set of positions, ๐‘› โ‰ฅ 0. ๐‘‡ = {๐‘ก1, ๐‘ก2, โ€ฆ ๐‘ก๐‘š}โ€“ a finite set of transitions, ๐‘š โ‰ฅ 0. The set of positions and the set of transitions do not intersect ๐‘ƒโ‹‚T = โˆ…. ๐ผ: ๐‘‡ โ†’ ๐‘ƒโˆž is an input function - a mapping from transitions to sets of positions.๐‘‚: ๐‘‡ โ†’ ๐‘ƒโˆž there is an output function - mapping from transitions to sets of positions. Definition. The Petri net graph ๐บis a bipartite oriented multigraph, ๐บ = (๐‘‰, ๐ด), where ๐‘‰ = {๐‘ข1, ๐‘ข2, โ€ฆ , ๐‘ข๐‘ }is the set of vertices, and๐ด = {๐‘Ž1, ๐‘Ž2, โ€ฆ , ๐‘Ž๐‘‡} โ€“ a set of directed arcs, ๐‘Ž๐‘– = (๐‘ฃ๐‘— , ๐‘ฃ๐‘˜), where ๐‘ฃ๐‘— , ๐‘ฃ๐‘˜ โˆˆ ๐‘‰. The set ๐‘‰can be divided into two disjoint subsets๐‘ƒ and ๐‘‡such that๐‘‰ = ๐‘ƒโ‹ƒ๐‘‡, ๐‘ƒโ‹‚๐‘‡ = โˆ…and for any directed arc ๐‘Ž๐‘– โˆˆ ๐ด, if ๐‘Ž๐‘– = (๐‘ฃ๐‘—, ๐‘ฃ๐‘˜), then either ๐‘ฃ๐‘— โˆˆ ๐‘ƒ and ๐‘ฃ๐‘˜ โˆˆ ๐‘‡, or ๐‘ฃ๐‘— โˆˆ ๐‘‡, a ๐‘ฃ๐‘˜ โˆˆ ๐‘ƒ. Marking๐œ‡ Petri nets๐ถ = (๐‘ƒ, ๐‘‡, ๐ผ, ๐‘‚) is a function that maps a set of positions ๐‘ƒto a set of non- negative integers N. ๐œ‡: ๐‘ƒ โ†’ ๐‘ ( 1 ) Marking ๐œ‡can also be defined as an n-vector ๐œ‡ = (๐œ‡1, ๐œ‡1, โ€ฆ , , ๐œ‡๐‘›), where ๐‘› = |๐‘ƒ|and ๐œ‡๐‘– โˆˆ ๐‘each๐‘– = 1, โ€ฆ , ๐‘›. The vector ๐œ‡defines for each position๐œ‡๐‘– Petri net is the number of chips in this position. A marked Petri net ๐‘€ = (๐ถ, ๐œ‡)is a set of Petri net structures๐ถ = (๐‘ƒ, ๐‘‡, ๐ผ, ๐‘‚) and markings ๐œ‡and can be written in the form ๐‘€ = (๐‘ƒ, ๐‘‡, ๐ผ, ๐‘‚, ๐œ‡). Figure 1. Data Processing Process Model All proposed extensions are aimed at creating the ability to check for zero in Petri nets. The simplest extension of Petri nets that can be checked for null are restraining arcs. Restraining arc from position p; into transition t, has a small circle rather than an arrow at the end of the arc attached to the transition. The triggering rule changes as follows: a transition is allowed when tokens are present in all of its (regular) inputs and absent in the restraining inputs. A transition is triggered by removing tokens from all of its (regular) inputs. 80 Journal of Engineering, Mechanics and Architecture www. grnjournal.us Let's define an extended input and output function ๐ผ: ๐‘‡ โ†’ ๐‘ƒโˆž , ๐‘‚: ๐‘‡ โ†’ ๐‘ƒโˆž [2] so that # (๐‘ก๐‘— , ๐ผ(๐‘๐‘–)) = # (๐‘๐‘– , ๐‘‚(๐‘ก๐‘—)) , # (๐‘ก๐‘— , ๐‘‚(๐‘๐‘–)) = # (๐‘๐‘–, ๐ผ(๐‘ก๐‘—)) [3] For the Petri net in Fig. 1, the extended input and output functions are: ๐‘€ = (๐‘ƒ, ๐‘‡, ๐ผ, ๐‘‚, ๐œ‡) [4] ๐‘ƒ = (๐‘0, ๐‘1, ๐‘2, ๐‘3, ๐‘4, ๐‘5, ๐‘6, ๐‘7, ๐‘8, ๐‘9, ๐‘10, ๐‘11, ๐‘12, ๐‘13, ๐‘14, ๐‘15, ๐‘16, ๐‘17, ๐‘18, ๐‘19) [5] ๐‘‡ = (๐‘ก0, ๐‘ก1, ๐‘ก2, ๐‘ก3, ๐‘ก4, ๐‘ก5, ๐‘ก6, ๐‘ก7, ๐‘ก8, ๐‘ก9, ๐‘ก10, ๐‘ก11, ๐‘ก12, ๐‘ก13, ๐‘ก14, ๐‘ก15, ๐‘ก16, ๐‘ก17, ๐‘ก18, ๐‘ก19) [6] The created model using a Petri net provides a clear representation of the sequence of actions and logical connections between positions. The illustration presented as part of this work was developed using the HPSim program . The correct functioning of Petri nets was checked, and imitation of the movement of โ€œchipsโ€ through the network allows us to identify vulnerabilities during modeling. Considering that the loading planning system is automated, the Petri net method is excellent for assessing the effectiveness of automated systems. Literature 1. ะั€ะธะฟะพะฒ, ะ. ะœ., ะšะฐะผะฐะปะตั‚ะดะธะฝะพะฒ, ะจ. ะจ.. ะœะพะดะตะปะธั€ะพะฒะฐะฝะธะต ัะผะตะฝะฝะพ-ััƒั‚ะพั‡ะฝะพะณะพ ะฟะปะฐะฝะธั€ะพะฒะฐะฝะธั ะฒั‹ะณั€ัƒะทะบะธ ะธ ะฟะพะณั€ัƒะทะบะธ ะฒะฐะณะพะฝะพะฒ. Academic Research in Educational Sciences, 3(9), 2022 โ€“ 34โ€“43. 2. ะšะฐะผะฐะปะตั‚ะดะธะฝะพะฒ, ะจ.ะจ., ะั€ะธะฟะพะฒ, ะ.ะœ. (2022). ะคัƒะฝะบั†ะธะพะฝะฐะปัŒะฝะพะต ะผะพะดะตะปะธั€ะพะฒะฐะฝะธะต ั‚ะตะบัƒั‰ะตะณะพ ะฟะปะฐะฝะธั€ะพะฒะฐะฝะธั ะผะตัั‚ะฝะพะน ั€ะฐะฑะพั‚ั‹. Academic Research in Educational Sciences, 3(9), 2022 โ€“ 119โ€“124. 3. ะŸะธั‚ะตั€ัะพะฝ ะ”ะถ. ะขะตะพั€ะธั ัะตั‚ะตะน ะŸะตั‚ั€ะธ ะธ ะผะพะดะตะปะธั€ะพะฒะฐะฝะธะต ัะธัั‚ะตะผ. ะŸะตั€. ั ะฐะฝะณะป. โ€“ ะœ.: ะœะธั€, 1984. โ€“ 264ั. 4. Roy, Bernard. โ€œTransitivitรฉ Et Connexitรฉ.โ€ Comptes Rendus Del' Acadรฉmie Des Sciences 249 (1959): 216โ€“218. 5. Warshall, Stephen. โ€œA Theorem on Boolean Matrices.โ€ Journal of the ACM 9, no. 1 (January 1, 1962): 11โ€“12. doi:10.1145/321105.321107. 6. Floyd, Robert W. โ€œAlgorithm 97: Shortest Path.โ€ Communications of the ACM 5, no. 6 (June 1, 1962): 345. doi:10.1145/367766.368168.