Anchor chain real-time data processing system for urban rail transit network operation command center system
By adopting the real-time data processing method of anchor chain in the operation command center system of the urban rail transit network, the problems of simple and dull equipment status monitoring in the existing technology are solved, and flexible processing and real-time monitoring of equipment status are realized, supporting the height of the system Customized and efficient data processing.
Patent Information
- Application Number
- CN202411563286.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-11
AI Technical Summary
The existing urban rail transit network operation command center system can only simply monitor the current status of the equipment, and cannot flexibly deal with the current status of the equipment.
Real-time data processing methods of anchor chains are adopted, including anchor chain data configuration module, dynamic detection module, loading and compilation module, data binding module, data execution module, data publishing module and dynamic unloading module. Through the coordinated work of these modules, the equipment is realized Flexible processing of status and real-time monitoring.
Real-time monitoring and flexible handling of millisecond response to the equipment status of the urban rail transit network operation command center system is realized, supporting the highly customized system and the replacement of data processing processes without stopping.
Smart Images

Figure CN119415218A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated control of urban rail transit, and in particular relates to a method for processing anchor chain real-time data for a rail transit network operation command center system. Background Art
[0002] The Urban Rail Transit Network Operation Command Center System (NOCC for short) is a large-scale urban rail transit automation system. Its main functions include real-time centralized monitoring of urban rail transit equipment, equipment fault diagnosis and equipment health management.
[0003] On the one hand, the urban rail transit network operation command center system can realize real-time centralized monitoring and control of power equipment, fire alarm information and its equipment, station environmental control equipment, section environmental control equipment, environmental equipment, shielding door equipment, flood prevention door equipment, escalator equipment, lighting equipment, access control equipment, automatic ticket vending and checking equipment, broadcasting and closed-circuit television equipment, and broadcast information and clock information of the passenger information display system; on the other hand, the urban rail transit network operation command center system can also realize fault analysis, fault prediction, equipment health management, equipment maintenance management, etc. of urban rail transit equipment.
[0004] At present, the urban rail transit network operation command center system handles the equipment status in a relatively simple and slow manner and is unable to flexibly handle the current status of the equipment. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a real-time data processing method for anchor chains for an urban rail transit network operation command center system, so as to solve the problem in the prior art that the urban rail transit network operation command center system can only perform simple monitoring of the current status of the equipment and cannot flexibly handle the current status of the equipment.
[0006] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] The present invention discloses an anchor chain real-time data processing system for an urban rail transit network operation command center system, comprising: an anchor chain data configuration module, an anchor chain dynamic detection module, an anchor chain loading and compiling module, an anchor chain data binding module, an anchor chain data execution module, an anchor chain data publishing module and an anchor chain dynamic unloading module;
[0008] Anchor chain data configuration module, used for anchor point data setting and chain link dynamic script configuration of the urban rail transit network operation command center system;
[0009] Anchor chain dynamic detection module, used for the detection of dynamic changes in anchor chain configuration data and anchor point data in the urban rail transit network operation command center system;
[0010] Anchor chain loading and compiling module, used for loading anchor point structure information and loading and compiling chain link dynamic scripts in the urban rail transit network operation command center system;
[0011] Anchor chain data binding module, used for binding anchor point structure information with equipment points, virtual points and table data of the urban rail transit network operation command center system;
[0012] Anchor chain data execution module, used for anchor link execution tree binding and execution of the urban rail transit network operation command center system;
[0013] Anchor chain data publishing module, used for internal dynamic publishing of anchor point data and external data push of urban rail transit network operation command center system;
[0014] The anchor chain dynamic unloading module is used for unloading the chain link execution tree structure, dynamic script and anchor point structure of the urban rail transit network operation command center system.
[0015] Furthermore, the anchor chain data configuration module specifically performs the following steps:
[0016] 11) Create anchor chain data configuration, including: anchor chain name, number of links, delay time, multi-anchor waiting time and anchor chain mode;
[0017] 12) Based on the anchor chain data configuration created in step 11), a single anchor chain node configuration is performed, including: anchor chain node name, selection of predecessor node, selection of input anchor point, selection of process anchor point, selection of output anchor point, writing of link dynamic script, static detection of link dynamic script and dynamic detection of link dynamic script;
[0018] 13) Selecting an input anchor point from the configuration database of the urban rail transit network operation command center system, including: an analog device input anchor point, a digital device input anchor point, a virtual analog input anchor point, and a virtual digital input anchor point;
[0019] 14) Selecting a process anchor point from the configuration database of the urban rail transit network operation command center system, including: an analog device process anchor point, a digital device process anchor point, a virtual analog process anchor point, and a virtual digital process anchor point;
[0020] 15) Selecting output anchor points from the configuration database of the urban rail transit network operation command center system, including: analog device output anchor points, digital device output anchor points, virtual analog output anchor points, and virtual digital output anchor points;
[0021] 16) According to the input anchor points, process anchor points and output anchor points selected in step 13), step 14) and step 15), write the link dynamic script through visual script editing; the link dynamic script format supports LUA script, JAVASCRIPT script and QML script; the input anchor point is used as the link dynamic script input variable, the process anchor point is used as the link dynamic script intermediate process variable, and the output anchor point is used as the link dynamic script output variable; LUA script, JAVASCRIPT script and QML script are used as the execution script of the link dynamic script;
[0022] 17) detecting the consistency of the input anchor point, process anchor point, output anchor point selected in step 13), step 14), step 15) with the input anchor point, process anchor point, output anchor point of the link dynamic script in step 16) through static scanning processing, and the correctness of the link dynamic script processing process in step 16), and displaying the static scanning processing results, including correctness or error information;
[0023] 18) Initializing the value of the input anchor point, the value of the process anchor point and the value of the preset output anchor point, executing the link dynamic script after the static detection in step 17), and detecting the consistency between the value of the real output anchor point and the value of the preset output anchor point;
[0024] 19) Saving the anchor point information and link dynamic script detected in step 18) into the configuration database of the urban rail transit network operation command center system;
[0025] 110) Determine whether it is necessary to configure subsequent anchor chain nodes. If necessary, return to step 12) to configure subsequent anchor chain nodes; otherwise, compose all anchor chain nodes into anchor chain data in sequence and execute step 111);
[0026] 111) The anchor chain data in step 110) is saved to the configuration database of the urban rail transit network operation command center system, and the anchor chain data configuration message is released to the urban rail transit network operation command center system.
[0027] Furthermore, the anchor chain dynamic detection module specifically performs the following steps:
[0028] 21) Monitor and record the dynamic changes of anchor chain data configuration information;
[0029] 22) Reading the anchor chain data configuration from the configuration database regularly according to the message of the dynamic change of the anchor chain data configuration information monitored in step 21);
[0030] 23) Dynamically detect the anchor chain data configuration read in step 22), and dynamically compare it with the pre-saved anchor chain data configuration to determine whether it is a new configuration, whether it needs to be loaded, whether the old configuration needs to be unloaded, the configuration loading time and the configuration effect time, etc.;
[0031] 24) sending the anchor chain data configuration judgment result in step 23) to the urban rail transit network operation command center system;
[0032] 25) Subscribe to the data change message of the anchor point in the anchor chain data configuration information through the subscription method of the urban rail transit network operation command center system;
[0033] 26) Monitor the data change message of the anchor point in the anchor chain data configuration information, and execute the anchor chain script in the anchor chain data configuration information.
[0034] Furthermore, the anchor chain loading compilation module specifically executes the following steps:
[0035] 31) Loading anchor chain configuration information from the configuration database of the urban rail transit network operation command center system, parsing the anchor chain configuration information, and obtaining anchor chain node position information;
[0036] 32) Based on the anchor chain node position information obtained in step 31), the anchor chain node configuration is loaded from the configuration database of the urban rail transit line network operation command center system, the anchor chain node information is parsed, and the anchor point path name and the link dynamic script position information are obtained. The anchor points include input anchor points, process anchor points, and output anchor points;
[0037] 33) Based on the input anchor point path name obtained in step 32), the input anchor point is loaded from the configuration database of the urban rail transit line network operation command center system, and the input anchor point memory structure information is generated and initialized, including: analog device input anchor point, digital device input anchor point, virtual analog input anchor point and virtual digital input anchor point;
[0038] 34) Based on the process anchor path name obtained in step 32), the process anchor is loaded from the configuration database of the urban rail transit line network operation command center system, and the process anchor memory structure information is generated and initialized, including: analog device process anchor, digital device process anchor, virtual analog process anchor and virtual digital process anchor;
[0039] 35) Based on the output anchor point path name obtained in step 32), the output anchor point is loaded from the urban rail transit line network operation command center system, and the output anchor point memory structure data is generated and initialized, including: analog device output anchor point, digital device output anchor point, virtual analog output anchor point and virtual digital output anchor point;
[0040] 36) Based on the link dynamic script location information obtained in step 32), the link dynamic script is loaded from the configuration database of the urban rail transit network operation command center system;
[0041] 37) analyzing the chain link dynamic script loaded in step 36), detecting whether the input anchor point loaded in step 33), the process anchor point loaded in step 34), and the output anchor point loaded in step 35) correspond to the input anchor point, process anchor point, and output anchor point in the chain link dynamic script; if they correspond, executing step 38); if not, displaying an error message;
[0042] 38) compiling the link dynamic script that has passed the detection in step 37) to generate a link execution syntax tree for executing the link dynamic script;
[0043] 39) Binding the link execution syntax tree generated in step 38) with the input anchor point loaded in step 33), the process anchor point loaded in step 34), and the output anchor point loaded in step 35) to generate an anchor link execution tree;
[0044] 310) Determine whether it is necessary to load and compile subsequent anchor chain nodes. If necessary, go to step 32) to load subsequent anchor chain nodes; otherwise, go to step 311);
[0045] 311) Gather the anchor link execution syntax trees generated by each anchor link node to generate an anchor link execution syntax forest;
[0046] 312) Binding the output anchor point of the preceding anchor chain node and the input anchor point of the succeeding anchor chain node according to the anchor chain configuration information in step 31);
[0047] 313) Repeat step 312) to bind all the previous anchor link execution trees and subsequent anchor link execution trees of the anchor chain configuration in series to generate a data access path of the anchor link execution forest;
[0048] 314) The storage anchor link execution forest access path and the input anchor of the execution syntax tree at the beginning of the path and the output anchor of the execution syntax tree at the end of the path.
[0049] Furthermore, the anchor chain data binding module specifically performs the following steps:
[0050] 41) Obtain equipment point information, virtual point information, and table data information from the urban rail transit network operation command center system;
[0051] 42) Generate the equipment point, virtual point and table data structure of the urban rail transit network operation command center system according to the acquired equipment point information, virtual point information and table data information;
[0052] 43) Generate an anchor chain data binding structure, including: anchor link execution forest path, path input anchor point, path output anchor point, path process anchor point and trigger condition;
[0053] 44) According to the anchor chain binding configuration information, the device point, virtual point, and table data structure generated in step 42) are bound to the path input anchor point, path output anchor point, and path process anchor point in step 43);
[0054] 45) According to the binding configuration information in the anchor chain configuration information, the device point, virtual point, and table data structure generated in step 42) are bound to the trigger condition in step 43) through the data publishing and subscription mechanism of the urban rail transit line network operation command center system; when the data of the device point, virtual point, and table data structure generated in step 42) changes, the trigger condition configured in the anchor chain configuration information is judged, and after the judgment is passed, the custom data processing function associated with it in the link script configured in the anchor chain configuration information is executed;
[0055] 46) The anchor chain data binding structure bound in step 45) is stored in the urban rail transit network operation command center system.
[0056] Furthermore, the anchor chain data execution module specifically executes the following steps:
[0057] 51) Load and monitor the equipment point, virtual point or table data of the rail transit line network operation command center system bound and stored in step 46); when the monitored data changes, the anchor chain data structure obtains the change notification, the anchor chain data structure obtains all the trigger conditions, and judges the trigger conditions. Through the logical judgment between the conditions, it is judged whether the anchor chain data execution conditions are met. If they are met, the anchor chain real-time data processing is performed from the input end of the anchor point chain link execution forest path; otherwise, the execution process of this trigger is terminated;
[0058] 52) Starting from the input end of the anchor link execution forest path, obtain all input anchor point real-time data of the starting anchor link node execution tree, execute the compiled data processing method of the anchor link node execution tree, and output the anchor point real-time data;
[0059] 53) Execute the processing method of the subsequent anchor chain node execution tree until the last anchor chain node execution tree processing method is executed, end the anchor chain execution, and output the anchor point real-time data.
[0060] Furthermore, the anchor chain data publishing module specifically performs the following steps:
[0061] 61) Set the output anchor point real-time data;
[0062] 62) querying the device point, virtual point or table model bound to the output anchor point in step 61), and sending the data of the output anchor point to the bound device point, virtual point or table model;
[0063] 63) Publishing the equipment point, virtual point or table model in step 62) according to the publishing mechanism of the urban rail transit network operation command center system;
[0064] 64) Subscribing to the external program or service of the device point, virtual point or table model in step 62) according to the subscription mechanism of the urban rail transit line network operation command center system to obtain notification messages of changes in real-time data of the anchor point;
[0065] 65) The external program or service obtains the real-time changing data of the device point, virtual point or table model in step 62), and processes the data according to the business logic specific to the external program or service.
[0066] Furthermore, the anchor chain dynamic unloading module specifically performs the following steps:
[0067] 71) Obtain the changes in the anchor chain configuration information from the configuration database of the urban rail transit network operation command center system and set the anchor chain dynamic unloading flag;
[0068] 72) Detect the current anchor chain execution status of the device point, virtual point or table model. If it is not being executed, unbind the anchor chain execution at the device point, virtual point or table model, and enter step 74); otherwise, set the anchor chain execution suspension flag and timer at the device point, virtual point or table model, suspend the execution process, and enter step 73);
[0069] 73) After the timer expires, check again. If it is not executed, unbind the anchor chain execution and go to step 74); otherwise, reset the timer and repeat step 73);
[0070] 74) Delete anchor chain execution related structures, including: anchor chain data binding structure, input anchor point, process anchor point, output anchor point, anchor link execution tree, anchor link execution forest and anchor link execution forest path.
[0071] Beneficial effects of the present invention:
[0072] The present invention monitors anchor data changes in real time through data anchor subscription and release, and responds to millions of anchor data changes within milliseconds; dynamically loads and unloads link scripts to achieve flexible replacement of anchor data processing flow without system shutdown; dynamically compiles link scripts to achieve openness and high performance of anchor data and link scripts, and builds low-coupling data processing flow with other modules of the operation command center system to achieve highly customized requirements of the operation command center system; dynamically binds data anchor tables and connects data anchor links, and real-time data and logic processing flow in both directions, and multiple data anchors and multiple link scripts flexibly build large and complex data processing flows in a directed acyclic graph (DAG) manner;
[0073] The present invention uses data anchor points as the basis for input and output data, and uses link processing as the process for anchor chain real-time data processing, which flexibly realizes the cascaded millisecond-level dynamic real-time data processing process of millions of equipment point table data of the urban rail transit line network operation command center system and the second-level replacement of the data processing process without stopping the system, and can provide an effective reference for equipment status monitoring and equipment control of the urban rail transit equipment line network operation command center system. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 The figure is a functional block diagram of the system of the present invention. DETAILED DESCRIPTION
[0075] In order to facilitate the understanding of those skilled in the art, the present invention is further described below in conjunction with embodiments and drawings. The contents mentioned in the implementation modes are not intended to limit the present invention.
[0076] Reference Figure 1 As shown, an anchor chain real-time data processing system for an urban rail transit network operation command center system of the present invention comprises: an anchor chain data configuration module, an anchor chain dynamic detection module, an anchor chain loading and compiling module, an anchor chain data binding module, an anchor chain data execution module, an anchor chain data publishing module and an anchor chain dynamic unloading module;
[0077] The anchor chain data configuration module is used for the anchor point data setting and link dynamic script configuration of the urban rail transit line network operation command center system; the specific execution steps of the anchor chain data configuration module are as follows:
[0078] 11) Create anchor chain data configuration, including: anchor chain name, number of links, delay time, multi-anchor waiting time and anchor chain mode;
[0079] 12) Based on the anchor chain data configuration created in step 11), a single anchor chain node configuration is performed, including: anchor chain node name, selection of predecessor node, selection of input anchor point, selection of process anchor point, selection of output anchor point, writing of link dynamic script, static detection of link dynamic script and dynamic detection of link dynamic script;
[0080] 13) Selecting an input anchor point from the configuration database of the urban rail transit network operation command center system, including: an analog device input anchor point, a digital device input anchor point, a virtual analog input anchor point, and a virtual digital input anchor point;
[0081] 14) Selecting a process anchor point from the configuration database of the urban rail transit network operation command center system, including: an analog device process anchor point, a digital device process anchor point, a virtual analog process anchor point, and a virtual digital process anchor point;
[0082] 15) Selecting output anchor points from the configuration database of the urban rail transit network operation command center system, including: analog device output anchor points, digital device output anchor points, virtual analog output anchor points, and virtual digital output anchor points;
[0083] 16) According to the input anchor points, process anchor points and output anchor points selected in step 13), step 14) and step 15), write the link dynamic script through visual script editing; the link dynamic script format supports LUA script, JAVASCRIPT script and QML script; the input anchor point is used as the link dynamic script input variable, the process anchor point is used as the link dynamic script intermediate process variable, and the output anchor point is used as the link dynamic script output variable; LUA script, JAVASCRIPT script and QML script are used as the execution script of the link dynamic script;
[0084] 17) detecting the consistency of the input anchor point, process anchor point, output anchor point selected in step 13), step 14), step 15) with the input anchor point, process anchor point, output anchor point of the link dynamic script in step 16) through static scanning processing, and the correctness of the link dynamic script processing process in step 16), and displaying the static scanning processing results, including correctness or error information;
[0085] 18) Initializing the value of the input anchor point, the value of the process anchor point and the value of the preset output anchor point, executing the link dynamic script after the static detection in step 17), and detecting the consistency between the value of the real output anchor point and the value of the preset output anchor point;
[0086] 19) Saving the anchor point information and link dynamic script detected in step 18) into the configuration database of the urban rail transit network operation command center system;
[0087] 110) Determine whether it is necessary to configure subsequent anchor chain nodes. If necessary, return to step 12) to configure subsequent anchor chain nodes; otherwise, compose all anchor chain nodes into anchor chain data in sequence and execute step 111);
[0088] 111) The anchor chain data in step 110) is saved to the configuration database of the urban rail transit network operation command center system, and the anchor chain data configuration message is released to the urban rail transit network operation command center system.
[0089] The anchor chain dynamic detection module is used to detect the dynamic changes of the anchor chain configuration data and the dynamic changes of the anchor point data in the urban rail transit line network operation command center system; the specific execution steps of the anchor chain dynamic detection module are as follows:
[0090] 21) Monitor and record the dynamic changes of anchor chain data configuration information;
[0091] 22) Reading the anchor chain data configuration from the configuration database regularly according to the message of the dynamic change of the anchor chain data configuration information monitored in step 21);
[0092] 23) Dynamically detect the anchor chain data configuration read in step 22), and dynamically compare it with the pre-saved anchor chain data configuration to determine whether it is a new configuration, whether it needs to be loaded, whether the old configuration needs to be unloaded, the configuration loading time and the configuration effect time, etc.;
[0093] 24) sending the anchor chain data configuration judgment result in step 23) to the urban rail transit network operation command center system;
[0094] 25) Subscribe to the data change message of the anchor point in the anchor chain data configuration information through the subscription method of the urban rail transit network operation command center system;
[0095] 26) Monitor the data change message of the anchor point in the anchor chain data configuration information, and execute the anchor chain script in the anchor chain data configuration information.
[0096] The anchor chain loading and compiling module is used for loading the anchor point structure information and loading and compiling the link dynamic script of the urban rail transit line network operation command center system; the specific execution steps of the anchor chain loading and compiling module are as follows:
[0097] 31) Loading anchor chain configuration information from the configuration database of the urban rail transit network operation command center system, parsing the anchor chain configuration information, and obtaining anchor chain node position information;
[0098] 32) Based on the anchor chain node position information obtained in step 31), the anchor chain node configuration is loaded from the configuration database of the urban rail transit line network operation command center system, the anchor chain node information is parsed, and the anchor point path name and the link dynamic script position information are obtained. The anchor points include input anchor points, process anchor points, and output anchor points;
[0099] 33) Based on the input anchor point path name obtained in step 32), the input anchor point is loaded from the configuration database of the urban rail transit line network operation command center system, and the input anchor point memory structure information is generated and initialized, including: analog device input anchor point, digital device input anchor point, virtual analog input anchor point and virtual digital input anchor point;
[0100] 34) Based on the process anchor path name obtained in step 32), the process anchor is loaded from the configuration database of the urban rail transit line network operation command center system, and the process anchor memory structure information is generated and initialized, including: analog device process anchor, digital device process anchor, virtual analog process anchor and virtual digital process anchor;
[0101] 35) Based on the output anchor point path name obtained in step 32), the output anchor point is loaded from the urban rail transit line network operation command center system, and the output anchor point memory structure data is generated and initialized, including: analog device output anchor point, digital device output anchor point, virtual analog output anchor point and virtual digital output anchor point;
[0102] 36) Based on the link dynamic script location information obtained in step 32), the link dynamic script is loaded from the configuration database of the urban rail transit network operation command center system;
[0103] 37) analyzing the chain link dynamic script loaded in step 36), detecting whether the input anchor point loaded in step 33), the process anchor point loaded in step 34), and the output anchor point loaded in step 35) correspond to the input anchor point, process anchor point, and output anchor point in the chain link dynamic script; if they correspond, executing step 38); if not, displaying an error message;
[0104] 38) compiling the link dynamic script that has passed the detection in step 37) to generate a link execution syntax tree for executing the link dynamic script;
[0105] 39) Binding the link execution syntax tree generated in step 38) with the input anchor point loaded in step 33), the process anchor point loaded in step 34), and the output anchor point loaded in step 35) to generate an anchor link execution tree;
[0106] 310) Determine whether it is necessary to load and compile subsequent anchor chain nodes. If necessary, go to step 32) to load subsequent anchor chain nodes; otherwise, go to step 311);
[0107] 311) Gather the anchor link execution syntax trees generated by each anchor link node to generate an anchor link execution syntax forest;
[0108] 312) Binding the output anchor point of the preceding anchor chain node and the input anchor point of the succeeding anchor chain node according to the anchor chain configuration information in step 31);
[0109] 313) Repeat step 312) to bind all the previous anchor link execution trees and subsequent anchor link execution trees of the anchor chain configuration in series to generate a data access path of the anchor link execution forest;
[0110] 314) The storage anchor link execution forest access path and the input anchor of the execution syntax tree at the beginning of the path and the output anchor of the execution syntax tree at the end of the path.
[0111] The anchor chain data binding module is used to bind the anchor point structure information of the urban rail transit network operation command center system with the equipment point, virtual point, and table data; the specific execution steps of the anchor chain data binding module are as follows:
[0112] 41) Obtain equipment point information, virtual point information, and table data information from the urban rail transit network operation command center system;
[0113] 42) Generate the equipment point, virtual point and table data structure of the urban rail transit network operation command center system according to the acquired equipment point information, virtual point information and table data information;
[0114] 43) Generate an anchor chain data binding structure, including: an anchor link execution forest path, a path input anchor point, a path output anchor point, a path process anchor point and a trigger condition;
[0115] 44) According to the anchor chain binding configuration information, the device point, virtual point, and table data structure generated in step 42) are bound to the path input anchor point, path output anchor point, and path process anchor point in step 43);
[0116] 45) According to the binding configuration information in the anchor chain configuration information, the device point, virtual point, and table data structure generated in step 42) are bound to the trigger condition in step 43) through the data publishing and subscription mechanism of the urban rail transit line network operation command center system; when the data of the device point, virtual point, and table data structure generated in step 42) changes, the trigger condition configured in the anchor chain configuration information is judged, and after the judgment is passed, the custom data processing function associated with it in the link script configured in the anchor chain configuration information is executed;
[0117] 46) The anchor chain data binding structure bound in step 45) is stored in the urban rail transit network operation command center system.
[0118] The anchor chain data execution module is used for binding and executing the anchor link execution tree of the urban rail transit network operation command center system; the specific execution steps of the anchor chain data execution module are as follows:
[0119] 51) Load and monitor the equipment point, virtual point or table data of the rail transit line network operation command center system bound and stored in step 46); when the monitored data changes, the anchor chain data structure obtains the change notification, the anchor chain data structure obtains all the trigger conditions, and judges the trigger conditions. Through the logical judgment between the conditions, it is judged whether the anchor chain data execution conditions are met. If they are met, the anchor chain real-time data processing is performed from the input end of the anchor point chain link execution forest path; otherwise, the execution process of this trigger is terminated;
[0120] 52) Starting from the input end of the anchor link execution forest path, obtain all input anchor point real-time data of the starting anchor link node execution tree, execute the compiled data processing method of the anchor link node execution tree, and output the anchor point real-time data;
[0121] 53) Execute the processing method of the subsequent anchor chain node execution tree until the last anchor chain node execution tree processing method is executed, end the anchor chain execution, and output the anchor point real-time data.
[0122] The anchor chain data publishing module is used for the internal dynamic publishing of anchor point data and external data push of the urban rail transit line network operation command center system; the specific execution steps of the anchor chain data publishing module are as follows:
[0123] 61) Set the output anchor point real-time data;
[0124] 62) querying the device point, virtual point or table model bound to the output anchor point in step 61), and sending the data of the output anchor point to the bound device point, virtual point or table model;
[0125] 63) Publishing the equipment point, virtual point or table model in step 62) according to the publishing mechanism of the urban rail transit network operation command center system;
[0126] 64) Subscribing to the external program or service of the device point, virtual point or table model in step 62) according to the subscription mechanism of the urban rail transit line network operation command center system to obtain notification messages of changes in real-time data of the anchor point;
[0127] 65) The external program or service obtains the real-time changing data of the device point, virtual point or table model in step 62), and processes the data according to the business logic specific to the external program or service.
[0128] The anchor chain dynamic unloading module is used for the chain link execution tree structure, dynamic script and anchor point structure unloading of the urban rail transit line network operation command center system; the specific execution steps of the anchor chain dynamic unloading module are as follows:
[0129] 71) Obtain the changes in the anchor chain configuration information from the configuration database of the urban rail transit network operation command center system and set the anchor chain dynamic unloading flag;
[0130] 72) Detect the current anchor chain execution status of the device point, virtual point or table model. If it is not being executed, unbind the anchor chain execution at the device point, virtual point or table model, and enter step 74); otherwise, set the anchor chain execution suspension flag and timer at the device point, virtual point or table model, suspend the execution process, and enter step 73);
[0131] 73) After the timer expires, check again. If it is not executed, unbind the anchor chain execution and go to step 74); otherwise, reset the timer and repeat step 73);
[0132] 74) Delete anchor chain execution related structures, including: anchor chain data binding structure, input anchor point, process anchor point, output anchor point, anchor link execution tree, anchor link execution forest and anchor link execution forest path.
[0133] The present invention has many specific application paths. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements can be made without departing from the principle of the present invention. These improvements should also be regarded as the protection scope of the present invention.
Claims
1. A real-time data processing system for anchor chains used in the urban rail transit network operation command center system, characterized in that: include: Anchor chain data configuration module, anchor chain dynamic detection module, anchor chain loading and compilation module, anchor chain data binding module, anchor chain data execution module, anchor chain data publishing module and anchor chain dynamic unloading module; Anchor chain data configuration module, used for anchor point data setting and chain link dynamic script configuration of the urban rail transit network operation command center system; Anchor chain dynamic detection module, used for the detection of dynamic changes in anchor chain configuration data and anchor point data in the urban rail transit network operation command center system; Anchor chain loading and compiling module, used for loading anchor point structure information and loading and compiling chain link dynamic scripts in the urban rail transit network operation command center system; Anchor chain data binding module, used for binding anchor point structure information with equipment points, virtual points and table data of the urban rail transit network operation command center system; Anchor chain data execution module, used for anchor link execution tree binding and execution of urban rail transit network operation command center system; Anchor chain data publishing module, used for internal dynamic publishing of anchor point data and external data push of urban rail transit network operation command center system; The anchor chain dynamic unloading module is used for unloading the chain link execution tree structure, dynamic script and anchor point structure of the urban rail transit network operation command center system.
2. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 1 is characterized in that: The anchor chain data configuration module specifically performs the following steps: 11) Create anchor chain data configuration, including: anchor chain name, number of links, delay time, multi-anchor waiting time and anchor chain mode; 12) Based on the anchor chain data configuration created in step 11), a single anchor chain node configuration is performed, including: anchor chain node name, selection of predecessor node, selection of input anchor point, selection of process anchor point, selection of output anchor point, writing of link dynamic script, static detection of link dynamic script and dynamic detection of link dynamic script; 13) Selecting an input anchor point from the configuration database of the urban rail transit network operation command center system, including: an analog device input anchor point, a digital device input anchor point, a virtual analog input anchor point, and a virtual digital input anchor point; 14) Selecting a process anchor point from the configuration database of the urban rail transit network operation command center system, including: an analog device process anchor point, a digital device process anchor point, a virtual analog process anchor point, and a virtual digital process anchor point; 15) Selecting output anchor points from the configuration database of the urban rail transit network operation command center system, including: analog device output anchor points, digital device output anchor points, virtual analog output anchor points, and virtual digital output anchor points; 16) According to the input anchor points, process anchor points and output anchor points selected in step 13), step 14) and step 15), write the link dynamic script through visual script editing; the link dynamic script format supports LUA script, JAVASCRIPT script and QML script; the input anchor point is used as the link dynamic script input variable, the process anchor point is used as the link dynamic script intermediate process variable, and the output anchor point is used as the link dynamic script output variable; LUA script, JAVASCRIPT script and QML script are used as the execution script of the link dynamic script; 17) detecting the consistency of the input anchor point, process anchor point, output anchor point selected in step 13), step 14), step 15) with the input anchor point, process anchor point, output anchor point of the link dynamic script in step 16) through static scanning processing, and the correctness of the link dynamic script processing process in step 16), and displaying the static scanning processing results, including correctness or error information; 18) Initializing the value of the input anchor point, the value of the process anchor point and the value of the preset output anchor point, executing the link dynamic script after the static detection in step 17), and detecting the consistency between the value of the real output anchor point and the value of the preset output anchor point; 19) Saving the anchor point information and link dynamic script detected in step 18) into the configuration database of the urban rail transit network operation command center system; 110) Determine whether it is necessary to configure subsequent anchor chain nodes. If necessary, return to step 12) to configure subsequent anchor chain nodes; otherwise, compose all anchor chain nodes into anchor chain data in sequence and execute step 111); 111) The anchor chain data in step 110) is saved to the configuration database of the urban rail transit network operation command center system, and the anchor chain data configuration message is released to the urban rail transit network operation command center system.
3. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 2 is characterized in that: The specific execution steps of the anchor chain dynamic detection module are as follows: 21) Monitor and record the dynamic changes of anchor chain data configuration information; 22) Reading the anchor chain data configuration from the configuration database regularly according to the message of the dynamic change of the anchor chain data configuration information monitored in step 21); 23) Dynamically detect the anchor chain data configuration read in step 22), and dynamically compare it with the pre-saved anchor chain data configuration to determine whether it is a new configuration, whether it needs to be loaded, whether the old configuration needs to be unloaded, the configuration loading time and the configuration effect time; 24) sending the anchor chain data configuration judgment result in step 23) to the urban rail transit network operation command center system; 25) Subscribe to the data change message of the anchor point in the anchor chain data configuration information through the subscription method of the urban rail transit network operation command center system; 26) Monitor the data change message of the anchor point in the anchor chain data configuration information, and execute the anchor chain script in the anchor chain data configuration information.
4. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 3 is characterized in that: The specific execution steps of the anchor chain loading compilation module are as follows: 31) Loading anchor chain configuration information from the configuration database of the urban rail transit network operation command center system, parsing the anchor chain configuration information, and obtaining anchor chain node position information; 32) Based on the anchor chain node position information obtained in step 31), the anchor chain node configuration is loaded from the configuration database of the urban rail transit line network operation command center system, the anchor chain node information is parsed, and the anchor point path name and the link dynamic script position information are obtained. The anchor points include input anchor points, process anchor points, and output anchor points; 33) Based on the input anchor point path name obtained in step 32), the input anchor point is loaded from the configuration database of the urban rail transit line network operation command center system, and the input anchor point memory structure information is generated and initialized, including: analog device input anchor point, digital device input anchor point, virtual analog input anchor point and virtual digital input anchor point; 34) Based on the process anchor path name obtained in step 32), the process anchor is loaded from the configuration database of the urban rail transit line network operation command center system, and the process anchor memory structure information is generated and initialized, including: analog device process anchor, digital device process anchor, virtual analog process anchor and virtual digital process anchor; 35) Based on the output anchor point path name obtained in step 32), the output anchor point is loaded from the urban rail transit line network operation command center system, and the output anchor point memory structure data is generated and initialized, including: analog device output anchor point, digital device output anchor point, virtual analog output anchor point and virtual digital output anchor point; 36) Based on the link dynamic script location information obtained in step 32), the link dynamic script is loaded from the configuration database of the urban rail transit network operation command center system; 37) analyzing the chain link dynamic script loaded in step 36), detecting whether the input anchor point loaded in step 33), the process anchor point loaded in step 34), and the output anchor point loaded in step 35) correspond to the input anchor point, process anchor point, and output anchor point in the chain link dynamic script; if they correspond, executing step 38); if not, displaying an error message; 38) compiling the link dynamic script that has passed the detection in step 37) to generate a link execution syntax tree for executing the link dynamic script; 39) Binding the link execution syntax tree generated in step 38) with the input anchor point loaded in step 33), the process anchor point loaded in step 34), and the output anchor point loaded in step 35) to generate an anchor link execution tree; 310) Determine whether it is necessary to load and compile subsequent anchor chain nodes. If necessary, go to step 32) to load subsequent anchor chain nodes; otherwise, go to step 311); 311) Gather the anchor link execution syntax trees generated by each anchor link node to generate an anchor link execution syntax forest; 312) Binding the output anchor point of the preceding anchor chain node and the input anchor point of the succeeding anchor chain node according to the anchor chain configuration information in step 31); 313) Repeat step 312) to bind all the previous anchor link execution trees and subsequent anchor link execution trees of the anchor chain configuration in series to generate a data access path of the anchor link execution forest; 314) The storage anchor link execution forest access path and the input anchor of the execution syntax tree at the beginning of the path and the output anchor of the execution syntax tree at the end of the path.
5. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 4 is characterized in that: The anchor chain data binding module specifically performs the following steps: 41) Obtain equipment point information, virtual point information, and table data information from the urban rail transit network operation command center system; 42) Generate the equipment point, virtual point and table data structure of the urban rail transit network operation command center system according to the acquired equipment point information, virtual point information and table data information; 43) Generate an anchor chain data binding structure, including: anchor link execution forest path, path input anchor point, path output anchor point, path process anchor point and trigger condition; 44) According to the anchor chain binding configuration information, the device point, virtual point, and table data structure generated in step 42) are bound to the path input anchor point, path output anchor point, and path process anchor point in step 43); 45) According to the binding configuration information in the anchor chain configuration information, the device point, virtual point, and table data structure generated in step 42) are bound to the trigger condition in step 43) through the data publishing and subscription mechanism of the urban rail transit line network operation command center system; when the data of the device point, virtual point, and table data structure generated in step 42) changes, the trigger condition configured in the anchor chain configuration information is judged, and after the judgment is passed, the custom data processing function associated with it in the link script configured in the anchor chain configuration information is executed; 46) The anchor chain data binding structure bound in step 45) is stored in the urban rail transit network operation command center system.
6. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 5 is characterized in that: The anchor chain data execution module specifically executes the following steps: 51) Load and monitor the equipment point, virtual point or table data of the rail transit line network operation command center system bound and stored in step 46); when the monitored data changes, the anchor chain data structure obtains the change notification, the anchor chain data structure obtains all the trigger conditions, and judges the trigger conditions. Through the logical judgment between the conditions, it is judged whether the anchor chain data execution conditions are met. If they are met, the anchor chain real-time data processing is performed from the input end of the anchor point chain link execution forest path; otherwise, the execution process of this trigger is terminated; 52) Starting from the input end of the anchor link execution forest path, obtain all input anchor point real-time data of the starting anchor link node execution tree, execute the compiled data processing method of the anchor link node execution tree, and output the anchor point real-time data; 53) Execute the processing method of the subsequent anchor chain node execution tree until the last anchor chain node execution tree processing method is executed, end the anchor chain execution, and output the anchor point real-time data.
7. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 6 is characterized in that: The anchor chain data publishing module specifically performs the following steps: 61) Set the output anchor point real-time data; 62) querying the device point, virtual point or table model bound to the output anchor point in step 61), and sending the data of the output anchor point to the bound device point, virtual point or table model; 63) Publishing the equipment point, virtual point or table model in step 62) according to the publishing mechanism of the urban rail transit network operation command center system; 64) Subscribing to the external program or service of the device point, virtual point or table model in step 62) according to the subscription mechanism of the urban rail transit line network operation command center system to obtain notification messages of changes in real-time data of the anchor point; 65) The external program or service obtains the real-time changing data of the device point, virtual point or table model in step 62), and processes the data according to the business logic specific to the external program or service.
8. The anchor chain real-time data processing system for the urban rail transit network operation command center system according to claim 7 is characterized in that: The specific execution steps of the anchor chain dynamic unloading module are as follows: 71) Obtain the changes in the anchor chain configuration information from the configuration database of the urban rail transit network operation command center system and set the anchor chain dynamic unloading flag; 72) Detect the current anchor chain execution status of the device point, virtual point or table model. If it is not being executed, unbind the anchor chain execution at the device point, virtual point or table model, and enter step 74); otherwise, set the anchor chain execution suspension flag and timer at the device point, virtual point or table model, suspend the execution process, and enter step 73); 73) After the timer expires, check again. If it is not executed, unbind the anchor chain execution and go to step 74); otherwise, reset the timer and repeat step 73); 74) Delete anchor chain execution related structures, including: anchor chain data binding structure, input anchor point, process anchor point, output anchor point, anchor link execution tree, anchor link execution forest and anchor link execution forest path.