CN113553117A - Method and device for automatically generating configuration data of automatic train supervision system - Google Patents

Method and device for automatically generating configuration data of automatic train supervision system Download PDF

Info

Publication number
CN113553117A
CN113553117A CN202110722130.6A CN202110722130A CN113553117A CN 113553117 A CN113553117 A CN 113553117A CN 202110722130 A CN202110722130 A CN 202110722130A CN 113553117 A CN113553117 A CN 113553117A
Authority
CN
China
Prior art keywords
data
standard
equipment
automatic
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110722130.6A
Other languages
Chinese (zh)
Inventor
邱锡宏
叶伟
李蕊
骆正新
杨艳京
袁重阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202110722130.6A priority Critical patent/CN113553117A/en
Publication of CN113553117A publication Critical patent/CN113553117A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention provides a method and a device for automatically generating configuration data of an automatic train supervision system, wherein the method comprises the following steps: importing engineering data; performing logic conversion on the engineering data to generate standard data which accords with the data configuration specification of an automatic supervision system; and exporting the standard data to obtain a standard configuration file required by the automatic supervision system. According to the method and the device for automatically generating the configuration data of the automatic train supervision system, the engineering data is imported, the engineering data is subjected to logic conversion, the standard data which accords with the data configuration standard of the automatic supervision system is generated, and then the standard data is exported to the configuration file, so that the efficiency of data configuration of the automatic train supervision system is improved, the human resource consumption and the production cost are reduced, and the accuracy of the configuration data is ensured on the basis of correct input data and applicable data processing rules.

Description

Method and device for automatically generating configuration data of automatic train supervision system
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for automatically generating configuration data of an automatic train supervision system.
Background
The CBTC (Communication Based Train Control) system is a set of interconnected Train automatic Control systems, and is used for commanding and controlling Train operation, and ensuring driving safety. The Automatic Train Supervision system (ATS) needs to import corresponding environment configuration data, such as an access configuration file, a trigger zone configuration file, a kilometer post configuration file, a destination file, all stations and a relationship configuration file between stations.
However, most of the configuration data in the current automatic monitoring system is manually compiled, which consumes a lot of time and energy of data configuration personnel, and is inefficient and the accuracy of data configuration is difficult to guarantee.
Disclosure of Invention
The invention provides a method and a device for automatically generating configuration data of an automatic train supervision system, which are used for overcoming the defects that the efficiency is low and the accuracy of data configuration is difficult to ensure in the prior art and realizing the automation of ATS data configuration.
The invention provides an automatic generation method of configuration data of an automatic train supervision system, which comprises the following steps:
importing engineering data;
performing logic conversion on the engineering data to generate standard data which accords with the data configuration specification of an automatic supervision system;
and exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
According to the automatic generation method of the configuration data of the automatic train supervision system, provided by the invention, the engineering data is subjected to logic conversion to generate standard data meeting the data configuration specification of the automatic supervision system, and the method comprises at least one of the following steps:
converting the equipment names of the equipment in the engineering data into standard equipment names which accord with the data configuration standard of the automatic supervision system;
after device data in a Logicdevice.xml file of each natural station is classified and stored according to device types, standard device data of the required device types are extracted by using a reflection mechanism;
converting the interlocked code bit names and state names to generate standard code bit names and standard state names which accord with the data configuration standard of the automatic monitoring system;
marking the corresponding associated equipment for each track section data based on the engineering data comparison table in the engineering data;
and calculating the distance between the left end of each logical section and the starting point of the track unit where the logical section is located.
According to the method for automatically generating the configuration data of the automatic train supervision system, provided by the invention, the equipment name of each equipment in the engineering data is converted into a standard equipment name which accords with the data configuration standard of the automatic supervision system, and the method specifically comprises the following steps:
performing character segmentation on the equipment name of each equipment in the engineering data to obtain a platform number, a track section number, an equipment prefix and an equipment suffix of each equipment;
and combining the platform number, the track section number, the equipment prefix, the equipment suffix and the line number of each equipment to obtain the standard equipment name corresponding to each equipment.
According to the method for automatically generating the configuration data of the automatic train supervision system, provided by the invention, the interlocked code bit name and the interlocked state name are converted to generate the standard code bit name and the standard state name which accord with the data configuration standard of the automatic supervision system, and the method specifically comprises the following steps:
if the interlock is the preset equipment type, respectively combining the code bit name and the state name of the interlock into a standard code bit name and a standard state name under an automatic supervision system based on a name conversion rule corresponding to the preset equipment type;
otherwise, acquiring a code bit name comparison table and a state name comparison table, and taking an ATS code bit name and an ATS state name which correspond to the code bit name and the state name of the interlocking in the code bit name comparison table and the state name comparison table as the code bit name and the standard state name; and the code bit name comparison table and the state name comparison table respectively contain the code bit name corresponding relation and the state name corresponding relation between the interlock and the automatic monitoring system.
According to the method for automatically generating the configuration data of the automatic train supervision system, provided by the invention, the corresponding associated equipment is marked for each track section data based on the project data comparison table in the project data, and the method specifically comprises the following steps:
determining an uplink and a downlink track of any track section data;
if the uplink and downlink track does not belong to the natural station where the data of any track section is located, marking the equipment in the uplink and downlink track as the associated equipment of the data of any track section;
judging whether turnout equipment or a signal machine exists in any track section data and associated section data;
and if the turnout equipment and/or the signal machine exist, marking the turnout equipment and/or the signal machine as the associated equipment of any track section data, and recording the turnout direction.
According to the automatic generation method of the configuration data of the automatic train supervision system provided by the invention, the logic conversion is carried out on the engineering data, and the method also comprises the following steps:
preprocessing the engineering data; the preprocessing comprises removing front and rear spaces in the engineering data, assigning a null value as a default value and carrying out format conversion on the digital data;
carrying out data inspection on the preprocessed engineering data; the data check comprises duplication name check, illegal character check, validity check and null value check of digital data of each station yard device.
According to the method for automatically generating the configuration data of the automatic train supervision system, the step of exporting the standard data to obtain the standard configuration file required by the automatic train supervision system specifically comprises the following steps:
organizing the standard data based on a nested data model, and gradually accessing each element content in the nested data model by using a recursion method, and outputting the element content to a Document object in an XML (extensive markup language) file; the nested data model is of a tree structure;
or, creating an internal form, writing each column name into the head line of the internal form, and then sequentially writing the standard data into the internal form according to the lines.
The invention also provides an automatic generation device for the configuration data of the automatic train supervision system, which comprises the following components:
the data import unit is used for importing engineering data;
the logic conversion unit is used for carrying out logic conversion on the engineering data to generate standard data which accords with the data configuration standard of an automatic supervision system;
and the data export unit is used for exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of the automatic configuration data generation method of the automatic train supervision system when executing the computer program.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for automatically generating configuration data of an automatic train supervision system as described in any one of the above.
According to the method and the device for automatically generating the configuration data of the automatic train supervision system, the engineering data is imported, the engineering data is subjected to logic conversion, the standard data which accords with the data configuration standard of the automatic supervision system is generated, and then the standard data is exported to the configuration file, so that the efficiency of data configuration of the automatic train supervision system is improved, the human resource consumption and the production cost are reduced, and the accuracy of the configuration data is ensured on the basis of correct input data and applicable data processing rules.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for automatically generating configuration data of an automatic train supervision system according to the present invention;
FIG. 2 is a second schematic flow chart of the method for automatically generating configuration data of an automatic train supervision system according to the present invention;
FIG. 3 is a data flow diagram of an automatic configuration data generation method according to the present invention;
fig. 4 is a schematic structural diagram of an automatic configuration data generation device of an automatic train supervision system according to the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for automatically generating configuration data of an automatic train supervision system according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 110, importing engineering data;
step 120, performing logic conversion on the engineering data to generate standard data meeting the data configuration specification of the automatic monitoring system;
and step 130, exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
Specifically, since the automatic supervision system relates to configuration information of both a single station and a whole subway line, the engineering data of all the centralized areas are imported according to a certain organization form in the case of the existence of all-line engineering data, and the engineering data of a single or a plurality of interlocked centralized areas are imported according to a certain organization form in the case of the lack of data. Here, the imported concentration area file includes: interlocking table, engineering data comparison table, ATS auxiliary data table-centralized region, ATS code bit table, LogicDevice. The imported full-line file comprises: xml, equipment number table, and ATS assistance data table — full line. In addition, the natural site file, logicdevice.
Because the organization structure and format of the imported engineering data do not meet the data requirements of the simulation test environment and the configuration file accepted by the automatic supervision system is difficult to directly generate, the engineering data can be logically converted according to the ATS product data configuration operation instruction book to generate the standard data meeting the data configuration specification of the automatic supervision system.
After the logic conversion is completed, the standard data can be exported to the configuration file with the corresponding format according to the format of the configuration file required by the automatic supervision system. Here, the corresponding data in the specification data may be screened out according to the data type required by each configuration file, and then written into the corresponding configuration file.
In addition, in the process of data import and logic processing conversion, the original engineering data can be checked, and certain abnormality analysis can be performed on logic calculation abnormality, so that various abnormal information is output to corresponding log files, and data configuration personnel can be helped to check and check data errors. Moreover, each link can be visualized on a page, functions of file import, path selection, configuration data generation and the like are provided for a user, and the management capability of data configuration of the automatic train supervision system is greatly improved.
According to the method provided by the embodiment of the invention, the engineering data is imported and logically converted to generate the standard data which accords with the data configuration standard of the automatic monitoring system, and then the standard data is exported to the configuration file, so that the efficiency of data configuration of the automatic monitoring system of the train is improved, the human resource consumption and the production cost are reduced, and the accuracy of the configuration data is ensured on the basis of the correctness of the input data and the applicability of the data processing rule.
Based on the above embodiment, step 120 includes at least one of the following steps:
converting the equipment names of the equipment in the engineering data into standard equipment names which accord with the data configuration specification of an automatic supervision system;
after device data in a Logicdevice.xml file of each natural station is classified and stored according to device types, standard device data of the required device types are extracted by using a reflection mechanism;
converting the interlocked code bit names and state names to generate standard code bit names and standard state names which accord with the data configuration standard of the automatic monitoring system;
marking the corresponding associated equipment for each track section data based on an engineering data comparison table in the engineering data;
and calculating the distance between the left end of each logical section and the starting point of the track unit where the logical section is located.
Specifically, when the engineering data is logically converted, the device names of the devices in the engineering data may be subjected to name conversion, so that the device names are converted into standard device names meeting the data configuration specification of the automatic monitoring system.
For the Logicdevice.xml file of each natural station, the device data in the file can be classified and summarized according to the device type, the device data of various devices can be stored separately, and then the standard device data of the required device type can be extracted from the device data by utilizing a reflection mechanism of a program language.
Considering that the code bit names and state names interlocked in the engineering data are different from the code bit names and state names in the automatic monitoring system in naming mode, the code bit names and state names interlocked can be converted to generate standard code bit names and standard state names which accord with the data configuration standard of the automatic monitoring system.
In addition, the associated device corresponding to each track section data can be marked based on the project data comparison table in the project data, so that when the corresponding configuration file is generated, the device information of the associated device corresponding to each track section data can be obtained according to each track section data.
The distance between the left end of each logical section and the start of the track unit in which it is located can also be calculated. And if the track section is a turnout, judging the direction of the turnout, and then calculating the distance between the left end of each logic section and the starting point of the track unit where the logic section is located by combining the direction of the turnout and the up-down direction. Here, since the switch point is present on the switch and the switch point has a certain length, the distance can be corrected by adding or subtracting the switch point length to or from the sum of the lengths of all logical zones prior to the current logical zone based on the switch opening direction and the up-down direction. If the track section is a turnout-free section, the position of the current logic section in the track section is judged, and if the current logic section belongs to the nth logic section of the current track unit, the lengths of the previous n-1 logic sections are accumulated to be used as the distance from the current logic section to the starting point.
Based on any of the above embodiments, converting the device name of each device in the engineering data into a standard device name that conforms to the data configuration specification of the automatic monitoring system specifically includes:
performing character segmentation on the equipment name of each equipment in the engineering data to obtain a platform number, a track section number, an equipment prefix and an equipment suffix of each equipment;
and combining the platform number, the track section number, the equipment prefix, the equipment suffix and the line number of each equipment to obtain the standard equipment name corresponding to each equipment.
Specifically, according to a preset character segmentation rule, the equipment name of each equipment in the engineering data is subjected to character segmentation to obtain a platform number, a track section number, an equipment prefix and an equipment suffix of each equipment. And then, combining the platform number, the track section number, the equipment prefix, the equipment suffix and the line number of each equipment according to the naming rule in the automatic supervision system to obtain the standard equipment name corresponding to each equipment.
Based on any of the above embodiments, converting the code bit name and the state name of the interlock to generate a standard code bit name and a standard state name that conform to the data configuration specification of the automatic supervision system, specifically including:
if the interlock is the preset equipment type, respectively combining the code bit name and the state name of the interlock into a standard code bit name and a standard state name under an automatic supervision system based on a name conversion rule corresponding to the preset equipment type;
otherwise, acquiring a code bit name comparison table and a state name comparison table, and taking an ATS code bit name and an ATS state name which correspond to the code bit name and the state name interlocked in the code bit name comparison table and the state name comparison table as a standard code bit name and a standard state name; the code bit name comparison table and the state name comparison table respectively comprise code bit name corresponding relation and state name corresponding relation between the interlocking and the automatic monitoring system.
Specifically, if the interlock is a preset device type, for example, a system device, a button device, a switch segment, a turnout segment, a scattered indication lamp, and speed limit information, the code bit name and the state name of the interlock may be combined into a standard code bit name and a standard state name under the automatic supervision system, respectively, based on the name conversion rule corresponding to the preset device type. Wherein, different preset device types correspond to different name conversion rules.
Otherwise, a code bit name comparison table and a state name comparison table are obtained, and the ATS code bit name and the ATS state name which correspond to the code bit name and the state name which are interlocked in the code bit name comparison table and the state name comparison table are directly replaced to be used as the standard code bit name and the standard state name. The code bit name comparison table and the state name comparison table respectively comprise code bit name corresponding relations and state name corresponding relations between the interlocking system and the automatic monitoring system.
Based on any of the embodiments, based on the engineering data comparison table in the engineering data, marking the associated device corresponding to each track section data, specifically including:
determining an uplink and a downlink track of any track section data;
if the uplink and downlink track does not belong to the natural station where the track section data is located, marking the equipment in the uplink and downlink track as the associated equipment of the track section data;
judging whether turnout equipment or a signal machine exists in the track section data and the associated section data;
if the turnout equipment and/or the signal exist, the turnout equipment and/or the signal are marked as the associated equipment of the track section data, and the turnout direction is recorded.
Specifically, the data of each track section is sequentially retrieved according to the input engineering data table. And acquiring uplink and downlink tracks of any track section data. If the uplink and downlink tracks of the track section data do not belong to the natural station where the track section data is located, the devices in the uplink and downlink tracks can be marked as the associated devices of the track section data.
In addition, whether the track section data and the associated section data have turnout equipment or signal equipment can be judged. If at least one of the switch devices and the signal machines exists, the existing switch devices and/or signal machines are marked as the associated devices of the track section data, and the direction of the switch is recorded.
Based on any one of the above embodiments, the logic conversion is performed on the engineering data, and the method further includes:
preprocessing engineering data; the preprocessing comprises removing front and back spaces in the engineering data, assigning a null value as a default value and carrying out format conversion on the digital data;
carrying out data inspection on the preprocessed engineering data; the data check comprises duplication check of each station yard device, illegal character check, validity check of digital data and null value check.
Specifically, after the engineering data is imported, the engineering data may be preprocessed. The preprocessing operation may include clearing previous and subsequent spaces in the engineering data, assigning a null value as a default value, and performing format conversion on the digital data.
Subsequently, data inspection can be performed on the preprocessed engineering data to automatically detect the correctness and integrity of the preprocessed engineering data, so that the data accuracy of the finally exported configuration file is ensured. The data checking operation may include duplication checking for each yard device, checking for illegal characters, checking for validity of the digital data, checking for null values, and the like.
Based on any of the above embodiments, step 130 specifically includes:
organizing standard data based on the nested data model, and accessing each element content in the nested data model step by using a recursion method, and outputting the element content to a Document object in an XML (extensive markup language) file; the nested data model is of a tree structure;
or, creating an internal form, writing each column name into the head line of the internal form, and then sequentially writing the standard data into the internal form according to the lines.
Specifically, the format of the configuration file of the automatic supervision system is mainly the XML format and the table, so that data export can be performed for each file format. For the XML format, a tree structure is adopted in the XML document, the tree structure is expanded from a root element to the bottommost child element, one parent element has one or more child elements, the child elements can be found through the parent element, the root element is the parent element of all elements, and the child elements on the same level become siblings. With respect to the above-described features of the XML format, a nested DATA model < DATA > is constructed to represent elements of an XML document. The nested data model is a tree structure, and the nested data model can be specifically defined as follows: the nested DATA model < DATA-A > contains n DATA models { < DATA-B1>, < DATA-B2>, < DATA-B2>, …, < DATA-Bn > (n ≧ 0) }, then < DATA-A > is used as a root element and is also a parent element of n DATA models < DATA-Bk > (1 ≦ k ≦ n), and each < DATA-Bk > (1 ≦ k ≦ n) similarly contains m DATA models { < DATA-C1>, < DATA-C2>, < DATA-C2>, …, < DATA-Cm ≧ 0 }.
Organizing the standard DATA according to a < DATA > nested DATA model, after completing the nested storage of the standard DATA, accessing the < DATA > DATA model by adopting a recursion method, starting from a root element, gradually accessing the < DATA-K > element content of each level, and outputting the element content of each level to a Document object in an XML file according to the format requirement of the XML, so that the standard DATA is stored, the upper-lower level relation of the standard DATA is ensured, and the tree structure requirement of the XML file is met.
For a table type configuration file, taking an Excel file as an example, firstly creating or opening an Excel file, creating an internal form of the Excel, then writing each column name into the head line of the internal form, then writing the specification data into the internal form in sequence according to lines, and storing the content of the internal form.
Based on any of the above embodiments, fig. 2 is a second schematic flow chart of the method for automatically generating configuration data of an automatic train supervision system according to an embodiment of the present invention, as shown in fig. 2, the method includes:
selecting a root directory where an input file is located, so as to read a specific engineering data file, an interlocking mining and driving file and a name comparison file, wherein the root directory mainly comprises:
full-line files: xml, equipment number table, ATS auxiliary data table-full line;
file in centralized area: interlocking table, engineering data comparison table, ATS auxiliary data table-concentration area, ATS code bit table, DevCode.xml;
natural station files: logicdevice.
And selecting a storage path of the configuration file for storing the configuration data to be generated. Clicking the 'select path' button will pop up a dialog box for path selection, selecting a certain path, and clicking 'confirm', then completing the path selection.
And clicking 'generated data', starting to export the configuration data of the automatic train supervision system, displaying the export progress of each data table in real time by a progress bar, and displaying 'export file completion' and saving the data configuration table in the selected path if all the data tables are exported.
In addition, the log is recorded in real time during the data reading and generating process. Log information is displayed in real time on an interface, and exception information is also stored in a log file which is positioned in a log folder under a program directory, if the txt file corresponding to the date and time is not 0KB, the exception is proved to be captured in the running process of the program, and the txt log file needs to be opened to check the reason of the exception.
Fig. 3 is a data flow diagram of the method for automatically generating configuration data according to the embodiment of the present invention, and as shown in fig. 3, after the original engineering data is imported, the original engineering data is input to a data conversion node to perform logic conversion, so as to obtain ATS configuration data, and then the ATS configuration data is input to a configuration file generation node to perform data export, so as to obtain a corresponding configuration file.
Based on any of the above embodiments, fig. 4 is a schematic structural diagram of an automatic configuration data generation device of an automatic train supervision system according to an embodiment of the present invention, and as shown in fig. 4, the device includes: a data import unit 410, a logic conversion unit 420, and a data export unit 430.
The data import unit 410 is used for importing engineering data;
the logic conversion unit 420 is configured to perform logic conversion on the engineering data to generate standard data meeting the data configuration specification of the automatic monitoring system;
the data export unit 430 is used to export the specification data to obtain the standard configuration file required by the automatic supervision system.
According to the device provided by the embodiment of the invention, the engineering data is imported and logically converted to generate the standard data which accords with the data configuration standard of the automatic monitoring system, and then the standard data is exported to the configuration file, so that the efficiency of data configuration of the automatic monitoring system of the train is improved, the human resource consumption and the production cost are reduced, and the accuracy of the configuration data is ensured on the basis of the correctness of the input data and the applicability of the data processing rule.
Based on the above embodiment, the logic converting unit 420 is specifically configured to perform at least one of the following steps:
converting the equipment names of the equipment in the engineering data into standard equipment names which accord with the data configuration specification of an automatic supervision system;
after device data in a Logicdevice.xml file of each natural station is classified and stored according to device types, standard device data of the required device types are extracted by using a reflection mechanism;
converting the interlocked code bit names and state names to generate standard code bit names and standard state names which accord with the data configuration standard of the automatic monitoring system;
marking the corresponding associated equipment for each track section data based on an engineering data comparison table in the engineering data;
and calculating the distance between the left end of each logical section and the starting point of the track unit where the logical section is located.
Based on any of the above embodiments, converting the device name of each device in the engineering data into a standard device name that conforms to the data configuration specification of the automatic monitoring system specifically includes:
performing character segmentation on the equipment name of each equipment in the engineering data to obtain a platform number, a track section number, an equipment prefix and an equipment suffix of each equipment;
and combining the platform number, the track section number, the equipment prefix, the equipment suffix and the line number of each equipment to obtain the standard equipment name corresponding to each equipment.
Based on any of the above embodiments, converting the code bit name and the state name of the interlock to generate a standard code bit name and a standard state name that conform to the data configuration specification of the automatic supervision system, specifically including:
if the interlock is the preset equipment type, respectively combining the code bit name and the state name of the interlock into a standard code bit name and a standard state name under an automatic supervision system based on a name conversion rule corresponding to the preset equipment type;
otherwise, acquiring a code bit name comparison table and a state name comparison table, and taking an ATS code bit name and an ATS state name which correspond to the code bit name and the state name interlocked in the code bit name comparison table and the state name comparison table as a standard code bit name and a standard state name; the code bit name comparison table and the state name comparison table respectively comprise code bit name corresponding relation and state name corresponding relation between the interlocking and the automatic monitoring system.
Based on any of the embodiments, based on the engineering data comparison table in the engineering data, marking the associated device corresponding to each track section data, specifically including:
determining an uplink and a downlink track of any track section data;
if the uplink and downlink track does not belong to the natural station where the track section data is located, marking the equipment in the uplink and downlink track as the associated equipment of the track section data;
judging whether turnout equipment or a signal machine exists in the track section data and the associated section data;
if the turnout equipment and/or the signal exist, the turnout equipment and/or the signal are marked as the associated equipment of the track section data, and the turnout direction is recorded.
Based on any of the above embodiments, before performing the logical conversion on the engineering data, the data importing unit 410 is further configured to:
preprocessing engineering data; the preprocessing comprises removing front and back spaces in the engineering data, assigning a null value as a default value and carrying out format conversion on the digital data;
carrying out data inspection on the preprocessed engineering data; the data check comprises duplication check of each station yard device, illegal character check, validity check of digital data and null value check.
Based on any of the above embodiments, the data deriving unit 430 specifically includes:
organizing standard data based on the nested data model, and accessing each element content in the nested data model step by using a recursion method, and outputting the element content to a Document object in an XML (extensive markup language) file; the nested data model is of a tree structure;
or, creating an internal form, writing each column name into the head line of the internal form, and then sequentially writing the standard data into the internal form according to the lines.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a method of automatic generation of train automatic supervision system configuration data, the method comprising: importing engineering data; performing logic conversion on the engineering data to generate standard data which accords with the data configuration specification of an automatic supervision system; and exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the automatic train supervision system configuration data generation method provided by the above methods, the method including: importing engineering data; performing logic conversion on the engineering data to generate standard data which accords with the data configuration specification of an automatic supervision system; and exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the above-mentioned automatic train supervision system configuration data automatic generation method, the method including: importing engineering data; performing logic conversion on the engineering data to generate standard data which accords with the data configuration specification of an automatic supervision system; and exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An automatic generation method for configuration data of an automatic train supervision system is characterized by comprising the following steps:
importing engineering data;
performing logic conversion on the engineering data to generate standard data which accords with the data configuration specification of an automatic supervision system;
and exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
2. The method for automatically generating configuration data of an automatic train supervision system according to claim 1, wherein the logic conversion of the engineering data to generate specification data conforming to an automatic supervision system data configuration specification comprises at least one of the following steps:
converting the equipment names of the equipment in the engineering data into standard equipment names which accord with the data configuration standard of the automatic supervision system;
after device data in a Logicdevice.xml file of each natural station is classified and stored according to device types, standard device data of the required device types are extracted by using a reflection mechanism;
converting the interlocked code bit names and state names to generate standard code bit names and standard state names which accord with the data configuration standard of the automatic monitoring system;
marking the corresponding associated equipment for each track section data based on the engineering data comparison table in the engineering data;
and calculating the distance between the left end of each logical section and the starting point of the track unit where the logical section is located.
3. The method for automatically generating configuration data of an automatic train supervision system according to claim 2, wherein the converting the device name of each device in the engineering data into a standard device name conforming to the automatic supervision system data configuration specification specifically comprises:
performing character segmentation on the equipment name of each equipment in the engineering data to obtain a platform number, a track section number, an equipment prefix and an equipment suffix of each equipment;
and combining the platform number, the track section number, the equipment prefix, the equipment suffix and the line number of each equipment to obtain the standard equipment name corresponding to each equipment.
4. The method for automatically generating configuration data of an automatic train supervision system according to claim 2, wherein converting the code bit name and the state name of the interlock to generate a standard code bit name and a standard state name that conform to an automatic supervision system data configuration specification specifically comprises:
if the interlock is the preset equipment type, respectively combining the code bit name and the state name of the interlock into a standard code bit name and a standard state name under an automatic supervision system based on a name conversion rule corresponding to the preset equipment type;
otherwise, acquiring a code bit name comparison table and a state name comparison table, and taking an ATS code bit name and an ATS state name which correspond to the code bit name and the state name of the interlocking in the code bit name comparison table and the state name comparison table as the code bit name and the standard state name; and the code bit name comparison table and the state name comparison table respectively contain the code bit name corresponding relation and the state name corresponding relation between the interlock and the automatic monitoring system.
5. The method according to claim 2, wherein the step of marking the associated device corresponding to each track section data for each track section data based on the project data comparison table in the project data specifically comprises:
determining an uplink and a downlink track of any track section data;
if the uplink and downlink track does not belong to the natural station where the data of any track section is located, marking the equipment in the uplink and downlink track as the associated equipment of the data of any track section;
judging whether turnout equipment or a signal machine exists in any track section data and associated section data;
and if the turnout equipment and/or the signal machine exist, marking the turnout equipment and/or the signal machine as the associated equipment of any track section data, and recording the turnout direction.
6. The method for automatically generating configuration data of an automatic train supervision system according to any one of claims 1 to 5, wherein the logic conversion of the engineering data further comprises:
preprocessing the engineering data; the preprocessing comprises removing front and rear spaces in the engineering data, assigning a null value as a default value and carrying out format conversion on the digital data;
carrying out data inspection on the preprocessed engineering data; the data check comprises duplication name check, illegal character check, validity check and null value check of digital data of each station yard device.
7. The method for automatically generating configuration data of an automatic train supervision system according to any one of claims 1 to 5, wherein the deriving the specification data to obtain a standard configuration file required by the automatic supervision system specifically comprises:
organizing the standard data based on a nested data model, and gradually accessing each element content in the nested data model by using a recursion method, and outputting the element content to a Document object in an XML (extensive markup language) file; the nested data model is of a tree structure;
or, creating an internal form, writing each column name into the head line of the internal form, and then sequentially writing the standard data into the internal form according to the lines.
8. An automatic configuration data generation device for an automatic train supervision system, comprising:
the data import unit is used for importing engineering data;
the logic conversion unit is used for carrying out logic conversion on the engineering data to generate standard data which accords with the data configuration standard of an automatic supervision system;
and the data export unit is used for exporting the standard data to obtain a standard configuration file required by the automatic supervision system.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor when executing the program implements the steps of the method for automatic generation of configuration data for an automatic train supervision system according to any of claims 1 to 7.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the method for automatically generating configuration data of an automatic supervision system for a train according to any one of claims 1 to 7.
CN202110722130.6A 2021-06-28 2021-06-28 Method and device for automatically generating configuration data of automatic train supervision system Pending CN113553117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110722130.6A CN113553117A (en) 2021-06-28 2021-06-28 Method and device for automatically generating configuration data of automatic train supervision system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110722130.6A CN113553117A (en) 2021-06-28 2021-06-28 Method and device for automatically generating configuration data of automatic train supervision system

Publications (1)

Publication Number Publication Date
CN113553117A true CN113553117A (en) 2021-10-26

Family

ID=78131012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110722130.6A Pending CN113553117A (en) 2021-06-28 2021-06-28 Method and device for automatically generating configuration data of automatic train supervision system

Country Status (1)

Country Link
CN (1) CN113553117A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237757A (en) * 2021-12-21 2022-03-25 卡斯柯信号有限公司 Method and system for automatically generating configuration file, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237757A (en) * 2021-12-21 2022-03-25 卡斯柯信号有限公司 Method and system for automatically generating configuration file, storage medium and electronic equipment
CN114237757B (en) * 2021-12-21 2024-04-30 卡斯柯信号有限公司 Automatic configuration file generation method, system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN109033479B (en) Urban track traffic interconnect electronic map data generate system and method
CN109760720B (en) Method and device for automatically generating interface code bit table based on signal plane layout diagram
CN111897715A (en) Method and device for automatically generating configuration data of simulation test environment
CN111522741A (en) Interface test code generation method and device, electronic equipment and readable storage medium
CN113553117A (en) Method and device for automatically generating configuration data of automatic train supervision system
CN109933786A (en) The construction method of transponder message tool based on compiling rule
CN109815124B (en) MBSE-based interlocking function defect analysis method and device and interlocking system
CN112668292B (en) Method for automatically extracting tracking matrix from system configuration rule and application thereof
CN114281821A (en) Data chart sharing system and method
CN113723063A (en) Method for converting RTF (real time function) into HTML (hypertext markup language) and realizing effect on PDF (Portable document Format) file
CN110851861B (en) Method for assisting ATC vehicle-mounted safety data verification and automatic generation of verification report
CN117252108A (en) Data rationality verification method, system and storage medium based on semantic integrity
CN112783989A (en) Data processing method and device based on block chain
CN110688823A (en) XML file verification method and device
CN114398475A (en) Data processing method, data processing device, electronic equipment and storage medium
CN115047849A (en) Data configuration method and device based on FAO ZC simulation test system
CN117056238B (en) Method and computing device for verifying correctness of model conversion under deployment framework
CN116142253B (en) Code bit table generation method and device
CN114666009B (en) Automatic transponder message generation method based on pattern matching
CN113807078A (en) Signal interlocking system control method and device, electronic equipment and storage medium
CN117922645A (en) Daily virtual marshalling train-based log analysis method and daily virtual marshalling train-based log analysis device
CN116743203A (en) Method and device for automatically generating message of rail transit transponder
CN117874306A (en) Engineering data source processing method and device, electronic equipment and storage medium
CN116048968A (en) Method, equipment and medium for efficiently exporting demand coverage from test case
CN116340284A (en) Automatic generation tool for urban rail transit subsystem database and application method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination