CN-121996654-A - Urban rail transit monitoring system mode comparison table generation method, equipment and medium
Abstract
The invention relates to a method, equipment and medium for generating a mode comparison table of an urban rail transit monitoring system. The method comprises the steps of importing mode comparison table data provided by a manufacturer into a database, initializing a mode type and a mode definition table, generating a corresponding mode type data table and a mode data table according to the initialized mode type and the initialized mode definition table, searching a device list of each station and related subsystems, constructing a transverse table head of the mode table according to the mode type, acquiring a corresponding mode list from the generated mode data table according to the mode type, constructing a longitudinal table head, associating each mode with a preset device state, and sequentially processing node information of each level from a root node by utilizing a tree data structure algorithm to draw the mode comparison table. The method realizes automatic drawing of the mode comparison table based on the tree structure algorithm, greatly reduces the workload of configuration, drawing and inspection in the configuration process, and reduces the working time from a few weeks to a few hours.
Inventors
- WANG JINGBO
- JIANG YU
- HUANG CHENG
- LIU MOLIN
- LIU JIE
- Zou Yexin
- CHEN YILONG
- YAO CONG
- WANG JIAHAO
Assignees
- 株洲中车时代电气股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241108
Claims (10)
- 1. A method for generating a mode comparison table of an urban rail transit monitoring system is characterized by comprising the following steps: importing pattern comparison table data provided by a manufacturer into a database, and initializing pattern types and a pattern definition table; Generating a corresponding mode type data table and a mode data table according to the initialized mode type and the mode definition table; searching a device list of each station and related subsystems thereof, and constructing a transverse header of a mode table according to the mode type; According to the mode type, a corresponding mode list is obtained from the generated mode data table, a longitudinal table head is constructed, and each mode is associated with the preset equipment state; And sequentially processing node information of each level from the root node by using a tree data structure algorithm to draw a pattern comparison table.
- 2. The method for generating a pattern lookup table for an urban rail transit monitoring system according to claim 1, wherein data having a non-uniform format is identified and processed when the pattern lookup table data is imported.
- 3. The urban rail transit monitoring system pattern comparison table generation method according to claim 1, wherein the pattern type data table and the pattern data table are generated by one-to-one correspondence with unique identifiers.
- 4. The method for generating a pattern lookup table of an urban rail transit monitoring system according to claim 1, wherein the device list is paired with station and subsystem information when constructing a transverse header of the pattern table.
- 5. The urban rail transit monitoring system pattern lookup table generating method according to claim 1, wherein the method using the tree data structure algorithm comprises: Initializing a root node, and setting initial coordinates and size attributes of the root node; Traversing each node layer by adopting a depth-first search algorithm from the root node; repeating the above process until all nodes are accessed and drawn, and returning to the parent node to continue drawing of the subsequent nodes.
- 6. The urban rail transit monitoring system pattern lookup table generation method according to claim 5, wherein starting from a root node, each node is traversed layer by using a depth-first search algorithm, the following operations are performed: Determining the coordinates of the current node, and calculating the width and the height of the current node by taking the x coordinates of the father node and the accumulated y coordinates as references; And drawing the cells of the current node according to the width and the height of the current node, and filling the mode number, the execution button and a preset equipment state list according to the node attribute.
- 7. The method for generating a pattern lookup table for an urban rail transit monitoring system according to claim 6, wherein if the canvas size is found to be exceeded in the drawing process of all nodes, a paging process is performed to adjust the drawing contents.
- 8. The method for generating a pattern comparison table of an urban rail transit monitoring system according to claim 1, further comprising adding a pattern execution status line at the bottom of the table, and generating a pattern comparison result line by comparing an actual equipment status with a preset equipment status.
- 9. An electronic device comprising a processor and a memory, the processor being configured to implement the steps of the urban rail transit monitoring system pattern lookup table generation method according to any one of claims 1 to 8 when executing a computer program stored in the memory.
- 10. A computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor performs the steps of the urban rail transit monitoring system pattern lookup table generation method of any of claims 1 to 8.
Description
Urban rail transit monitoring system mode comparison table generation method, equipment and medium Technical Field The invention relates to the field of urban rail transit comprehensive monitoring systems, in particular to a method, equipment and medium for generating a mode comparison table of an urban rail transit monitoring system. Background The urban rail transit comprehensive monitoring system is a highly integrated system, and aims to realize comprehensive real-time monitoring and management of rail transit systems such as subways, light rails and the like. The system needs to integrate data of multiple subsystems, such as a power supply system (PSCADA), an environmental control system (BAS), a Fire Alarm System (FAS), a broadcasting system (PA), etc. The BAS system is mainly used for comprehensively managing and controlling electromechanical equipment such as air conditioning ventilation, water supply and drainage, illumination, elevators, escalators and the like in subway stations and section tunnels. In the BAS system, a series of modes are preset for different operation scenes to improve the operation efficiency. The mode represents a preset state and logic rule for monitoring and controlling the environment and equipment in the subway station and the tunnel under different operation scenes and requirements of the BAS system. The conventional mode comparison table development flow is to compare the mode control comparison table point table data provided by BAS manufacturers, draw a device list and a mode number, fill the preset state of the device in each mode, correlate the point position information in the mode and the database, write a script to acquire the device state when the mode is executed, compare the device state with the preset state, and highlight the device state when the state is inconsistent. It can be seen that the overall flow is complex and that drawing and binding point bit information is prone to configuration errors. And, to different stations, the operation scene is different, and equipment is also different, moreover, the script needs to be manually written, and the development workload is great. Disclosure of Invention The invention provides a method, equipment and medium for generating a mode comparison table of an urban rail transit monitoring system, which aims to rapidly draw and generate the mode comparison table, thereby greatly reducing the workload of a user in the configuration process and the time consumption of checking after the configuration is completed. In order to achieve the above object, the first aspect of the present invention provides a method for generating a pattern comparison table of an urban rail transit monitoring system, comprising the steps of: importing pattern comparison table data provided by a manufacturer into a database, and initializing pattern types and a pattern definition table; Generating a corresponding mode type data table and a mode data table according to the initialized mode type and the mode definition table; searching a device list of each station and related subsystems thereof, and constructing a transverse header of a mode table according to the mode type; According to the mode type, a corresponding mode list is obtained from the generated mode data table, a longitudinal table head is constructed, and each mode is associated with the preset equipment state; And sequentially processing node information of each level from the root node by using a tree data structure algorithm to draw a pattern comparison table. Further, data with non-uniform format is identified and processed when the pattern comparison table data is imported. Further, the generation of the pattern type data table and the pattern data table is in one-to-one correspondence through the unique identifier. Further, when the transverse header of the mode table is constructed, the device list is paired with station and subsystem information. Further, the method using the tree data structure algorithm comprises the following steps: Initializing a root node, and setting initial coordinates and size attributes of the root node; Traversing each node layer by adopting a depth-first search algorithm from the root node; repeating the above process until all nodes are accessed and drawn, and returning to the parent node to continue drawing of the subsequent nodes. Further, starting from the root node, traversing each node layer by adopting a depth-first search algorithm, and executing the following operations: Determining the coordinates of the current node, and calculating the width and the height of the current node by taking the x coordinates of the father node and the accumulated y coordinates as references; And drawing the cells of the current node according to the width and the height of the current node, and filling the mode number, the execution button and a preset equipment state list according to the node attribute. Further, in the process of completing the drawi