DYNAMIC PARAMETER CALCULATION METHOD BASED ON CTC SIMULATION TRAINING PROCEDURE AND APPARATUS THEREOF

20230365176 ยท 2023-11-16

    Inventors

    Cpc classification

    International classification

    Abstract

    The present invention relates to a dynamic parameter calculation method based on a CTC simulation training procedure and an apparatus thereof. The method includes the following steps: step S.sub.1: establishing a parameterized multi-branch emergency response procedure template; and step S.sub.2: performing dynamic parameter calculation and substitution on CTC data by using a combinatorial computational branching method. Compared with the related art, the present invention has the advantages of strong applicability, high real-time performance, and high accuracy.

    Claims

    1. A dynamic parameter calculation method based on a CTC simulation training procedure, comprising the following steps: step S.sub.1: establishing a parameterized multi-branch emergency response procedure template; and step S.sub.2: performing dynamic parameter calculation and substitution on CTC data by using a combinatorial computational branching method.

    2. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 1, wherein step 2 comprises the following steps: step S.sub.21: obtaining run chart information by using a CTC run chart server interface; step S.sub.22: obtaining representation information by using a CTC station representation server interface; step S.sub.23: obtaining CTC operation information by using a CTC event server interface; step S.sub.24: obtaining data information of each station based on existing CTC data; and step S.sub.25: obtaining, gathering, and calculating, by a calculation terminal, information, wherein a specific calculation triggering process is decided based on loading and flowing of the parameterized multi-branch emergency response procedure template.

    3. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 2, wherein step S.sub.25 comprises the following sub-steps: step S.sub.251: loading the parameterized multi-branch emergency response procedure template, reading content of an initial parameter calculation node, and initiating an initial parameter calculation request; step S.sub.252: recording, by the calculation terminal, a next initial parameter calculation request, and starting a periodic calculation; step S.sub.253: sending, by the calculation terminal after completing each round of periodic calculation, a calculation result with a change in value, to replace a reserved word in the parameterized multi-branch emergency response procedure template; step S.sub.254: automatically cleaning, by the calculation terminal after completing each round of periodic calculation, a single-calculation node in a calculation queue; step S.sub.255: initiating a process parameter calculation request after content of the parameterized multi-branch emergency response procedure template flows to a process parameter calculation node; step S.sub.256: recording, by the calculation terminal, a next calculation request, and repeatedly performing steps S.sub.253 to S.sub.255; step S.sub.257: after the content of the parameterized multi-branch emergency response procedure template flows to a node terminating a plurality of calculations or when software determines timing for terminating a plurality of calculations, sending a request to terminate a plurality of specified computations; and step S.sub.258: cleaning, by the calculation terminal after receiving the request to terminate a plurality of computations, the plurality of calculations terminated as requested.

    4. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 1, wherein the parameterized multi-branch emergency response procedure template in step 2 comprises dynamic-parameter reserved words, calculation branches, one to fifth input parameters, and specific values.

    5. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 4, wherein the dynamic-parameter reserved words comprise specific train number, equipment, signal status, fault information, and route information; and the dynamic-parameter reserved words are replaced with specific values obtained through dynamic parameter calculation.

    6. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 3, wherein an initial parameter calculation node in step S.sub.251 is located in an initial position of the parameterized multi-branch emergency response procedure template, and when the loading is performed at the initial position of the parameterized multi-branch emergency response procedure template, dynamic parameter calculation is started and the dynamic-parameter reserved word is replaced with a specific value.

    7. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 3, wherein the process parameter calculation node in step S.sub.255 is located in the parameterized multi-branch emergency response procedure template, and after the parameterized multi-branch emergency response procedure template flows to such step, calculation is triggered and the dynamic-parameter reserved word is replaced with a specific value.

    8. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 1, wherein the parameterized multi-branch emergency response procedure template in step 2 further comprises a single-calculation node, a multi-calculation node, and a node terminating a plurality of calculations, and these nodes are specified by parameters thereof, wherein the single-calculation node performs calculation only once, and does make a change any more after a specific value is replaced; the multi-calculation node performs updating in real time and replaces a specific value obtained through calculation; and the node terminating a plurality of calculations is filled in after a value of a multi-calculation node does not need to be changed any more, and a plurality of specified calculations are terminated after a procedure flows to such node.

    9. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 6, wherein the node terminating a plurality of calculations is a non-essential option, and timing to terminate a plurality of computations is automatically determined by a program.

    10. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 2, wherein the combinatorial computational branching method in step 2 specifically comprises: taking a calculation result of a branch as an input parameter of another branch on the condition that a combination relationship between calculation branches exists, and obtaining a final calculation result by performing calculation by a combination of a plurality of branches.

    11. The dynamic parameter calculation method based on a CTC simulation training procedure according to claim 3, wherein the calculation terminal in step S.sub.25 maintains a calculation queue and a result mapping table, wherein intermediate results of branch calculations and a final result are all stored in the result mapping table, a specific value of a required parameter is read from the result mapping table when each branch calculation is started, and content in the result mapping table is updated after the branch calculations.

    12. An apparatus for the dynamic parameter calculation method based on a CTC simulation training procedure according to claim 1, comprising: a template establishing module, configured to establish the parameterized multi-branch emergency response procedure template; and a module for dynamic parameter calculation and substitution, configured to perform the dynamic parameter calculation and substitution on CTC data by using the combinatorial computational branching method.

    13. An electronic device, comprising a memory and a processor, wherein a computer program is stored on the memory, and when executing the program, the processor performs the method according to claim 1.

    14. A computer readable storage medium, storing a computer program, wherein when executing the program, the processor performs the method according to claim 1.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0046] FIG. 1 shows a combination of dynamic calculation information flows.

    [0047] FIG. 2 is a flowchart of a dynamic calculation procedure.

    [0048] FIG. 3 shows a calculation process triggered by an emergency response procedure flow.

    DESCRIPTION OF THE EMBODIMENTS

    [0049] The technical solutions of the embodiments of the present invention are clearly described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art on the basis of the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

    [0050] In the present invention, a dynamic parameter calculation method based on a CTC simulation training procedure is provided, including the following steps: [0051] step S.sub.1: Establish a parameterized multi-branch emergency response procedure template. [0052] Step S.sub.2: Perform dynamic parameter calculation and substitution on CTC data by using a combinatorial computational branching method.

    [0053] Step S.sub.1 of establishing the parameterized multi-branch emergency response procedure template specifically includes the following steps: [0054] Step S.sub.11: A procedure structure presentation form in the emergency response procedure template includes a branch structure, a determining condition, a sequential structure, and a parallel structure, where a procedure direction can be selected by an actual value obtained through parameter calculation. [0055] Step S.sub.12: Present dynamic parameters such as specific train number, equipment, signal status, fault information, and route information in the emergency response procedure template in the form of reserved words, and replace these dynamic parameters after specific values are calculated. The emergency response procedure template includes an initial parameter calculation node and a process parameter calculation node, and further includes a single-calculation node and a multi-calculation node, or a node terminating a plurality of calculations according to the quantity of calculations. Each node includes element information for calculating the specific value of each reserved word.

    [0056] Step S.sub.12 specifically includes the following steps: [0057] Step S.sub.121: The emergency response procedure template includes dynamic-parameter reserved words, calculation branches, one to fifth input parameters, and specific values, where the dynamic-parameter reserved word is taken as a parameter filled in during a specific procedure. [0058] Step S.sub.122: Put the initial parameter calculation node at the beginning of the emergency response procedure template, and start calculation when the procedure is loaded and replacement is performed using a specific value; and put the process parameter calculation node in steps of the procedure, and after the emergency response procedure flows to this step, trigger calculation and perform replacement using a specific value. [0059] Step S.sub.123: Specify the single-calculation node and the multi-calculation node by using parameters thereof, where the single-calculation node performs calculation only once, and does make a change any more after a specific value is replaced; and the multi-calculation node updates a calculation result in real time and replaces a specific value obtained through calculation; and fill in the node terminating a plurality of calculations after a value of a multi-calculation node does not need to be changed any more, and terminate a plurality of specified calculations after a procedure flows to such node, where the node terminating a plurality of calculations is a non-essential option, and software allows timing for terminating a plurality of calculations to be determined automatically.

    [0060] Step S.sub.2 of performing the dynamic parameter calculation and substitution on CTC data by using the combinatorial computational branching method specifically includes the following steps: [0061] Step S.sub.21: Obtain run chart information by using a CTC run chart server interface. [0062] Step S.sub.22: Obtain representation information by using a CTC station representation server interface. [0063] Step S.sub.23: Obtain CTC operation information by using a CTC event server interface. [0064] Step S.sub.24: Obtain data information of each station based on existing CTC data. [0065] Step S.sub.25: A calculation terminal of the software obtains, gathers, and calculates information, where a specific calculation triggering process is decided based on loading and flowing of the emergency response procedure.

    [0066] Step S.sub.25 specifically includes the following steps: [0067] Step S.sub.251: Load the emergency response procedure template, read content of an initial parameter calculation node, and initiate an initial parameter calculation request. [0068] Step S.sub.252: The calculation terminal records a next calculation request, and starts a periodic calculation within 1 s to 20 s. [0069] Step S.sub.253: After completing each round of periodic calculation, the calculation terminal sends a calculation result with a change in value, to replace a reserved word in the emergency response procedure template, where a value may change from being null to being valid, or values of two calculations may be different. [0070] step S.sub.254: automatically cleaning, by the calculation terminal after completing each round of periodic calculation, a single-calculation node in a calculation queue; [0071] Step S.sub.255: Initiate a process calculation request after content of the emergency response procedure template flows to a process calculation node. [0072] Step S.sub.256: The calculation terminal records a next calculation request, and repeatedly performs steps S.sub.253 to S.sub.255. [0073] Step S.sub.257: After the content of the emergency response procedure template flows to a node terminating a plurality of calculations or when software determines timing for terminating a plurality of calculations, send a request to terminate a plurality of specified computations, where each termination calculation request is only for one calculation. [0074] Step S.sub.258: After receiving the request to terminate a plurality of computations, the calculation terminal cleans the plurality of calculations terminated as requested.

    [0075] The combinatorial computational branching method includes the following steps: [0076] Step S.sub.31: Take a calculation result of a branch as an input parameter of another branch on the condition that a combination relationship between calculation branches exists, and obtain a final calculation result by performing calculation by a combination of a plurality of branches. [0077] Step S.sub.32: The calculation terminal maintains a calculation queue and a result mapping table, where intermediate results of branch calculations and a final result are all stored in the result mapping table, a specific value of a required parameter is read from the result mapping table when each branch calculation is started, and content in the result mapping table is updated after the branch calculations.

    [0078] The present invention is described in detail below with reference to the drawings.

    [0079] FIG. 1 shows an information source and an information flow of information required for dynamic calculation. FIG. 1 shows SAU loaded on calculation terminal of the system platform in S11 of the present invention. In S12 to S15, information responding to these software in the CTC system of software stations such as a server, a run chart server, an event server, software for scheduling command and controlling and limiting train speed are sent to the calculation terminal for calculating.

    [0080] FIG. 2 is a flowchart of a dynamic calculation procedure, specifically including the following steps: [0081] Step S21: Initiate a dynamic calculation request or a request to terminate a plurality of calculations after the emergency response procedure flows to a calculation node, and if it is a calculation request, insert relevant information of the calculation request into the calculation queue, or it is a termination request, delete a specified multi-calculation node from the calculation queue. [0082] Step S22: Read a calculation node from the calculation queue, search a result mapping table for an input parameter of the calculation node, determine whether the input parameter is a result value of a previous calculation, and replace the input parameter with a specific value if it is. [0083] Step S23: Start a calculation, search for a calculation branch corresponding to the calculation node, and enter the calculation branch to perform a relevant business calculation. [0084] Step S24: Obtain a calculation result after the calculation, and update a value in the result mapping table. [0085] Step S25: Check a change in the value of the result mapping table, and send a changed value. [0086] Step S26: Check whether a calculation node in the calculation queue is a single-calculation node, and delete the node from the queue if it is.

    [0087] In each periodic calculation, steps S22 to S26 are repeated, and in S21, the emergency response procedure flows to a calculation node to trigger calculation.

    [0088] FIG. 3 shows a calculation process triggered by an emergency response procedure flow, specifically including the following steps: [0089] Step S31: Wait for a flow of an emergency response procedure, and perform step S32 if the flow arrives. [0090] Step S32: Determine whether a flowed procedure node is destination, and end the overall emergency response procedure if it is; otherwise, perform step S33. [0091] Step S33: Determine whether the flowed procedure node is a settlement node, and perform step S34 if it is; otherwise, perform step S35. [0092] Step S34: Initiate a dynamic calculation request, and perform step S31, so that S31 to S34 are performed cyclically. [0093] Step S35: Determine whether the flowed node is a node requested to terminate a plurality of calculations, and perform step S36 if it is; otherwise, perform step S31, such that S31 to S35 are performed cyclically. [0094] Step S36: Initiate a request of a node terminating a plurality of calculations, and perform step S31, so that S31 to S36 are performed cyclically.

    [0095] The above describes the method embodiments, and the solutions of the present invention are further described below through the apparatus embodiments.

    [0096] In the present invention, an apparatus for the dynamic parameter calculation method based on a CTC simulation training procedure is provided, and includes: [0097] a template establishing module, configured to establish the parameterized multi-branch emergency response procedure template; and [0098] a module for dynamic parameter calculation and substitution, configured to perform the dynamic parameter calculation and substitution on CTC data by using the combinatorial computational branching method.

    [0099] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, and for the specific operation process of the described modules, reference may be made to the corresponding processes in the foregoing method embodiments. Details are not described herein.

    [0100] The electronic device of the present invention includes a central processing unit (CPU) that can perform various proper actions and processing according to computer program instructions in read-only memory (ROM) or computer program instructions loaded from a storage unit into random-access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. Input/output (I/O) interfaces are also connected to the bus.

    [0101] Various components in the device are connected to the I/O interfaces, including: input units such as a keyboard and a mouse; output units such as various types of displays and speakers; storage units such as a magnetic disk and an optical disk; and communication units such as a network card, a modem, and a wireless communication transceiver. The communication unit allows the device to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

    [0102] The processing unit executes the various steps of the foregoing method, for example, steps S.sub.1 and S.sub.2. For example, in some embodiments, steps S.sub.1 and S.sub.2 may be implemented as a computer software program tangibly embodied on a machine-readable medium such as a storage unit. In some embodiments, some or all of the computer programs may be loaded and/or installed on the device by using the ROM and/or the communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more sub-steps of steps S.sub.1 and S.sub.2 may be performed. Alternatively, in other embodiments, the CPU may be configured to perform steps S.sub.1 and S.sub.2 in any other suitable manner (for example, by means of firmware).

    [0103] The functions described herein above may be performed, at least partly, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), an application specific standard product (ASSP), a system on chip (SOC), a complex programmable logic device (CPLD), and the like.

    [0104] Program code for implementing the method of the present invention may be written in any combination of one or more programming languages. These program code may be provided for a processor or controller of a general purpose computer, a special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by a processor or controller, causes the functions/operations specified in the flowcharts and/or block diagrams to be carried out. The program code may be executed on a machine entirely or partly, partly on the machine and partly on a remote machine when being an independent software package, or entirely on the remote machine or a server.

    [0105] In the context of the present invention, a machine-readable medium may be a tangible medium that may include or store a program for use by or in connection to an instruction execution system, an apparatus, or a device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable media may include, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, an apparatus, or a device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, a portable computer disk, a hard disk, a random-access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

    [0106] The above descriptions are only specific implementations of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed by the present invention. Modifications or substitutions should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.