Device number file generation method, device, electronic device and storage medium
By automatically extracting the equipment number information in the signal plan and generating the equipment number file, the problem of low efficiency and low accuracy of equipment number file generation in the traditional method is solved, and fast and accurate equipment number file generation is achieved.
Patent Information
- Application Number
- CN202110981142.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-08-25
AI Technical Summary
In communication-based automatic train control systems, traditional methods rely on manual generation of equipment number files, which is inefficient and inaccurate, and can easily lead to errors.
Based on the equipment element information and preset configuration files in the signal plan, the location number and attribute number of the equipment are automatically extracted, and the equipment number file is generated, including line number, concentration area number, station number and equipment serial number.
It realizes the rapid and accurate generation of equipment number files, avoids the problems of low efficiency and low accuracy caused by manual filling, and improves the efficiency and accuracy of the generation of equipment number files.
Smart Images

Figure CN113836611B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of file generation, and in particular to a method, device, electronic device and storage medium for generating a device number file. Background Art
[0002] In the Communication Based Train Control System (CBTC system), the equipment number is the unique identifier of each ground equipment (signal, track section, switch, transponder, platform door, emergency stop, flood prevention door, etc.), so it is necessary to obtain the equipment number file for train control management.
[0003] In the traditional method, the equipment in the CAD signal plan is manually compared. According to the preset equipment numbering principle, each equipment of different types in the figure is numbered in turn, and the equipment number is manually filled in the engineering data comparison table to form an equipment number file. However, this method is completely dependent on manual labor, which is not only inefficient, but also leads to a high error rate in the equipment number file due to human errors. Summary of the invention
[0004] The present invention provides a method, an apparatus, an electronic device and a storage medium for generating a device number file, so as to solve the defects of low efficiency and low accuracy in generating a device number file in the prior art.
[0005] The present invention provides a method for generating a device number file, comprising:
[0006] Extract the number information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device;
[0007] Generate a device number file based on the number information of each device.
[0008] According to a method for generating a device number file provided by the present invention, the number information includes a position number and an attribute number;
[0009] The method of extracting the numbering information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device includes:
[0010] Based on the graphic element information of each device in the signal plane diagram, determine the position number of each device;
[0011] Based on the preset configuration file of each device, the property number of each device is determined.
[0012] According to a method for generating a device number file provided by the present invention, the location number includes a line number, a centralized area number, a station number, and a device serial number;
[0013] The determining the position number of each device based on the graphic element information of each device in the signal plane diagram includes:
[0014] Based on the graphic element information of each device, identifying the line graphic element corresponding to each device from the signal plane diagram, and extracting the number of the line graphic element as the line number of each device;
[0015] Based on the graphic element information of each device, identifying the centralized area boundary graphic element corresponding to each device from the signal plane diagram, and extracting the number of the corresponding centralized area boundary graphic element as the centralized area number of each device;
[0016] Based on the graphic element information of each device, the station identification graphic element corresponding to each device is identified from the signal plan, and the number of the corresponding station identification graphic element is extracted as the station number of each device;
[0017] The device serial number of each device is extracted from the graphic element information of each device.
[0018] According to a method for generating a device number file provided by the present invention, the numbering of the boundary elements of each concentrated area in the signal plane diagram is determined based on the following process:
[0019] Based on the coordinates of all the concentrated area boundary primitives in the signal plane diagram and the first order, all the concentrated area boundary primitives are sorted, and all the sorted concentrated area boundary primitives are numbered according to the first preset rule to obtain the number of each concentrated area boundary primitive.
[0020] According to a method for generating a device number file provided by the present invention, the numbering of each station identification element in the signal plan is determined based on the following process:
[0021] Based on the centralized area boundary graphic elements corresponding to each device, all station identification graphic elements within the corresponding centralized area boundary graphic element range are determined;
[0022] Based on the type of each station identification graphic element, the number of each station identification graphic element is determined.
[0023] According to a method for generating a device number file provided by the present invention, the type of the station identification graphic element is a Class I centralized station or a non-Class I centralized station;
[0024] The step of determining the number of each station identification graphic element based on the type of each station identification graphic element comprises:
[0025] If the type of the station identification graphic element is determined to be a Class I centralized station, the preset number is used as the number of the corresponding station identification graphic element;
[0026] If it is determined that the type of the station identification graphic element is a non-level I centralized station, the station identification graphic elements corresponding to all non-level I centralized stations are taken as a station cluster, and based on the coordinates of all station identification graphic elements in the station cluster and the second order, all the station identification graphic elements in the station cluster are sorted, and all the sorted station identification graphic elements are numbered according to the second preset rule to obtain the number of each station identification graphic element in the station cluster.
[0027] According to a device number file generation method provided by the present invention, the device serial number of each device is determined based on the following process:
[0028] Based on the station identification graphic elements corresponding to each device, determine the boundary axle counting unit corresponding to each device;
[0029] Based on the preset grouping rules, all devices within the demarcation axle counting unit are grouped, and according to the serial number allocation rules corresponding to each group, a corresponding device serial number is allocated to each grouped device.
[0030] The present invention also provides a device number file generating device, comprising:
[0031] An information extraction unit, used to extract the number information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device;
[0032] The file generating unit is used to generate a device number file based on the number information of each device.
[0033] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned device number file generation methods when executing the computer program.
[0034] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned device number file generation methods are implemented.
[0035] The device numbering file generation method, apparatus, electronic device and storage medium provided by the present invention can automatically, quickly and accurately extract the numbering information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device, and then automatically generate a device numbering file based on the numbering information of each device, thereby avoiding the problem of low efficiency and accuracy caused by relying on manual filling of device numbers in traditional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a flow chart of the method for generating a device number file provided by the present invention;
[0038] Figure 2 It is a schematic diagram of device graphic element attributes provided by the present invention;
[0039] Figure 3 It is a schematic diagram of equipment numbering provided by the present invention;
[0040] Figure 4 It is a schematic diagram of the equipment types and numbers provided by the present invention;
[0041] Figure 5 It is a schematic diagram of the device number file provided by the present invention;
[0042] Figure 6 It is a structural schematic diagram of the device number file generating device provided by the present invention;
[0043] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] The traditional method is to manually compare the equipment in the CAD signal plan, and number each device of different types in the figure in turn according to the established equipment numbering principles, and manually fill in the equipment number into the engineering data comparison table to generate an equipment number file.
[0046] However, most equipment numbers are composed of "manufacturer code", "equipment type", "line number", "ZC concentration area number", "station number", and "equipment serial number". The binary representation of the equipment number contains a total of 32 bits. If it is filled in the engineering data comparison table, it needs to be converted into hexadecimal representation. At the same time, the signal plan of a complete line has a large number of ground equipment, and the equipment number contains a lot of information about a device. If the traditional manual equipment numbering and equipment number file generation are used, the workload is large, prone to errors, and inefficient, and a lot of manpower costs will be wasted.
[0047] To this end, the present invention provides a method for generating a device number file. Figure 1 It is a flow chart of the method for generating a device number file provided by the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0048] Step 110: extract the numbering information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device.
[0049] Specifically, the signal plan contains a large number of equipment graphics, and each equipment graphics is drawn using standardized graphics. For example, before drawing the signal plan, graphics such as lines, axle counters, signal machines, switches, transponders, stations, platform doors, and centralized area boundaries are designed into different types of custom entity blocks, that is, they are encapsulated into different types of standard blocks, and a standard graphics library is established to achieve standardization of station signal plan graphics. Each device in the standard graphics library has complete attribute information, which not only records the various attributes of the equipment graphics itself, but also records the relevant information of other equipment graphics in the signal plan associated with it. Various graphics attributes such as Figure 2 The perfect graphic element attribute design makes various equipment graphics elements in the signal plane diagram interrelated.
[0050] Since the equipment elements in the signal plan are interrelated, the relative position relationship of each equipment element can be automatically calculated when drawing each equipment element, such as the line to which each equipment belongs, the ZC (Zone Controller) concentration area, the station to which each equipment belongs, etc. After obtaining the relative position relationship of each equipment element in the signal plan, the number information of each equipment element can be automatically obtained. Figure 3 As shown, the equipment number can be composed of "manufacturer code", "equipment type", "line number", "ZC concentration area number", "station number" and "equipment serial number". After determining the line to which each device belongs, the number of the line can be used as the "line number" of the device; after determining the concentration area to which each device belongs, the number of the concentration area can be used as the "ZC concentration area number" of the device.
[0051] The preset configuration file of each device refers to a file that stores the manufacturer and type information of each device. By reading this file, the manufacturer number information and device type number information of each device can be obtained. Figure 4 The device type and number in the Excel configuration file are shown. The manufacturer code and device type can be obtained by reading the Excel configuration file. It can be understood that for different engineering projects, the content in the Excel configuration file can be flexibly changed so that the corresponding device type and number can be accurately read in real time.
[0052] Step 120: Generate a device number file based on the number information of each device.
[0053] Specifically, after obtaining the numbering information of each device, the numbering information of each device can be stored in the primitive attributes of the corresponding device. When it is necessary to obtain the numbering file of the device, the corresponding device numbering file can be generated by exporting the information in the primitive attributes of the device.
[0054] like Figure 5 As shown, after the automatically calculated device number data is saved in the graphic element attributes of each device, the program identifies and reads the device graphic element in the signal plan view, and exports the device name and device number attributes together into the engineering data comparison table to obtain the device number file.
[0055] It should be noted that the embodiment of the present invention can perform CAD secondary development through ObjectARX, so that various equipment primitives in the CAD signal plan view have complete attribute information, thereby realizing the identification of various equipment primitives from the signal plan view and automatically completing the equipment number calculation of various equipment, and exporting the calculation results of the equipment number to the engineering data comparison table to generate an equipment number file to replace the traditional manual equipment numbering.
[0056] It is understandable that the embodiment of the present invention can use ObjectARX for CAD secondary development, and encapsulate various equipment primitives in the CAD signal plan into standard unified blocks, so as to realize the effective identification of various equipment in the CAD signal plan, and further realize the automatic calculation and export of various equipment numbers. For example, open the CAD software and load the drawing plug-in, then open the "Subway Library" through the CAD menu command, and select the unified blocks provided on the library panel according to the drawing needs to complete the drawing of the signal plan. Then, read the various primitive data in the signal plan through the CAD menu "Automatic Equipment Numbering" command, perform automatic equipment numbering calculation, and finally export it to the engineering data comparison table to automatically generate the equipment numbering file.
[0057] The device numbering file generation method provided in the embodiment of the present invention can automatically, quickly and accurately extract the numbering information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device, and then automatically generate a device numbering file based on the numbering information of each device, thereby avoiding the problem of low efficiency and accuracy caused by relying on manual filling of device numbers in traditional methods.
[0058] Based on the above embodiment, the numbering information includes a position number and an attribute number;
[0059] Based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device, the number information of each device is extracted, including:
[0060] Based on the graphic element information of each device in the signal plane diagram, determine the position number of each device;
[0061] Based on the preset configuration file of each device, the property number of each device is determined.
[0062] Specifically, the location number may represent the regional location of the device, such as the line, the centralized area, the station, etc. The attribute number may represent the attribute of the device, such as the manufacturer of the device, the type of the device, etc.
[0063] For the position number, the coordinates of each device in the graphic element can be determined based on the graphic element information of each device in the signal plan, and combined with other graphic element coordinates in the signal plan (such as the coordinates of the centralized area boundary graphic element, the coordinates of the station identification graphic element, etc.), the relative position information of the current device can be determined, such as the centralized area and the station to which the current device belongs. Then, the number of the centralized area and the number of the station to which it belongs are used as the position number.
[0064] The property number can be extracted from a preset configuration file of each device. The preset configuration file can store the manufacturer, type and corresponding number of each device, so that the property number of the device can be automatically and accurately extracted from the preset configuration file.
[0065] Based on any of the above embodiments, the location number includes a line number, a centralized area number, a station number, and a device serial number;
[0066] Based on the graphic element information of each device in the signal plane diagram, determine the location number of each device, including:
[0067] Based on the graphic element information of each device, the line graphic element corresponding to each device is identified from the signal plane diagram, and the number of the line graphic element is extracted as the line number of each device;
[0068] Based on the graphic element information of each device, the centralized area boundary graphic element corresponding to each device is identified from the signal plane diagram, and the number of the corresponding centralized area boundary graphic element is extracted as the centralized area number of each device;
[0069] Based on the graphic element information of each device, the station identification graphic element corresponding to each device is identified from the signal plan, and the number of the corresponding station identification graphic element is extracted as the station number of each device;
[0070] The device serial number of each device is extracted from the graphic element information of each device.
[0071] Specifically, the line number refers to the number corresponding to the line to which each device belongs, the centralized area number refers to the number corresponding to the centralized area to which each device belongs, the station number refers to the number corresponding to the station to which each device belongs, and the equipment serial number refers to the serial number of each device in the station to which it belongs.
[0072] Based on the coordinates of each device graphic element, the line graphic element corresponding to each device can be identified, and the corresponding line graphic element number can be used as the line number of each device. Based on the coordinates of each device graphic element, and combined with the coordinates of all concentrated area boundary graphic elements in the signal plan, the concentrated area boundary graphic element to which each device belongs can be determined, and the number of the corresponding concentrated area boundary graphic element can be used as the concentrated area number of each device. Similarly, based on the coordinates of each device graphic element, and combined with the coordinates of all station identification graphic elements in the concentrated area to which it belongs in the signal plan, the station corresponding to each device can be determined, and the station identification graphic element number of the corresponding station can be used as the station number of each device. After determining the station to which each device belongs, all devices within the range of the station are obtained. After all the devices are numbered according to preset rules, the device serial number of each device can be obtained.
[0073] Based on any of the above embodiments, the numbering of the boundary elements of each concentrated area in the signal plane diagram is determined based on the following process:
[0074] Based on the coordinates of all the concentrated area boundary elements in the signal plane diagram and the first order, all the concentrated area boundary elements are sorted, and all the sorted concentrated area boundary elements are numbered according to the first preset rule to obtain the number of each concentrated area boundary element.
[0075] Specifically, after determining the coordinates of all concentrated area boundary elements in the signal plane diagram, all concentrated area boundary elements are sorted according to a first order (such as in the order of coordinates from left to right), and all sorted concentrated area boundary elements are numbered according to a first preset rule (such as numbered 1, 2, ..., n in sequence), thereby obtaining the number of each concentrated area boundary element.
[0076] For example, by identifying the ZC concentration area boundary element in the signal plane diagram, it is determined how many ZC concentration areas there are in the diagram, and then the coordinate position of the ZC concentration area boundary element in the signal plane diagram is obtained, and the ZC concentration areas are numbered in order from left to right. Among them, the devices within the scope of a ZC concentration area all use the same ZC concentration area number.
[0077] It can be seen that the embodiment of the present invention can automatically number the boundary elements of each concentrated area in the signal plane diagram, avoiding the problem of low efficiency and easy error caused by relying on manual numbering in the traditional method.
[0078] Based on any of the above embodiments, the numbering of each station identification element in the signal plan is determined based on the following process:
[0079] Based on the centralized area boundary graphic elements corresponding to each device, all station identification graphic elements within the corresponding centralized area boundary graphic element range are determined;
[0080] Based on the type of each station identification graphic element, the number of each station identification graphic element is determined.
[0081] Specifically, after determining the centralized area boundary primitives to which each device belongs, all station identification primitives within the centralized area boundary primitive range can be determined. According to the type of each station identification primitive, a corresponding numbering rule is determined, and each station identification primitive is numbered.
[0082] Based on any of the above embodiments, the type of the station identification graphic element is a Class I centralized station or a non-Class I centralized station;
[0083] Based on the type of each station sign graphic element, determine the number of each station sign graphic element, including:
[0084] If the type of the station identification graphic element is determined to be a Class I centralized station, the preset number is used as the number of the corresponding station identification graphic element;
[0085] If it is determined that the type of the station identification graphic element is a non-level I centralized station, the station identification graphic elements corresponding to all non-level I centralized stations are taken as a station cluster, and based on the coordinates of all station identification graphic elements in the station cluster and the second order, all the station identification graphic elements in the station cluster are sorted, and all the sorted station identification graphic elements are numbered according to the second preset rule to obtain the number of each station identification graphic element in the station cluster.
[0086] Specifically, when determining the number of each station identification element, first identify the station identification element and the ZC concentration area boundary element in the signal plan, and determine how many station identification elements there are in a certain ZC concentration area through the coordinate positions of the station identification element and the ZC concentration area boundary element in the signal plan, and then find the first-level station identification with the "type" attribute of "I-level centralized station" through the "type" attribute of the station identification element, and set the station number of the first-level station identification to 0. The station identifications of the remaining non-I-level centralized stations are numbered in order from left to right within the current ZC range. Among them, the equipment within the range of a station uses the same station number.
[0087] Based on any of the above embodiments, the device serial number of each device is determined based on the following process:
[0088] Based on the station identification graphic elements corresponding to each device, determine the boundary axle counting unit corresponding to each device;
[0089] Based on the preset grouping rules, all devices within the boundary axle counting unit range are grouped, and according to the serial number allocation rules corresponding to each group, the corresponding device serial number is allocated to each grouped device.
[0090] Specifically, the calculation of the equipment serial number requires the statistics of the number of various types of equipment within the station range. To determine the station range, it is necessary to find the four station boundary axle counters on both sides of the station identification element that are closest to the station identification element and are located on the up and down main lines. To determine whether an axle counter element is a station boundary axle counter, you can check the "Is it a station boundary" attribute of the axle counter element to determine. If the attribute value is "yes", it is a station boundary axle counter. After the station range is determined, the various equipment in the diagram can be identified, and the various types of equipment within the station range can be counted using the coordinate position of the equipment in the signal plan. Then, according to the up and down attributes of the line where the equipment is located, the same type of equipment is divided into two groups. For equipment drawn on the up line, the equipment serial number starts from 2 and increases from left to right in the order of 2, 4, 6, 8...; for equipment drawn on the down line, the equipment serial number starts from 1 and increases from left to right in the order of 1, 3, 5, 7...
[0091] The device number file generating apparatus provided by the present invention is described below. The device number file generating apparatus described below and the device number file generating method described above can be referenced to each other.
[0092] Based on any of the above embodiments, the present invention provides a device number file generation device, such as Figure 6 As shown, the device comprises:
[0093] An information extraction unit 610 is used to extract the number information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device;
[0094] The file generating unit 620 is used to generate a device number file based on the number information of each device.
[0095] Based on any of the above embodiments, the numbering information includes a position number and an attribute number;
[0096] The information extraction unit 610 includes:
[0097] A position number determination unit, used to determine the position number of each device based on the graphic element information of each device in the signal plane diagram;
[0098] The property number determining unit is used to determine the property number of each device based on a preset configuration file of each device.
[0099] Based on any of the above embodiments, the location number includes a line number, a centralized area number, a station number, and a device serial number;
[0100] The position number determining unit comprises:
[0101] A line number determination unit, configured to identify line graphics elements corresponding to each device from the signal plane diagram based on graphics element information of each device, and extract the numbers of the line graphics elements as line numbers of each device;
[0102] A centralized area number determination unit, configured to identify the centralized area boundary primitive corresponding to each device from the signal plane diagram based on the primitive information of each device, and extract the number of the corresponding centralized area boundary primitive as the centralized area number of each device;
[0103] A station number determination unit, for identifying the station identification graphic element corresponding to each device from the signal plan based on the graphic element information of each device, and extracting the number of the corresponding station identification graphic element as the station number of each device;
[0104] The serial number determination unit is used to extract the device serial number of each device from the graphic element information of each device.
[0105] Based on any of the above embodiments, it also includes:
[0106] A concentrated area boundary element number determination unit is used to sort all concentrated area boundary elements based on the coordinates of all concentrated area boundary elements in the signal plane diagram and a first order, and to number all sorted concentrated area boundary elements according to a first preset rule to obtain the number of each concentrated area boundary element.
[0107] Based on any of the above embodiments, it also includes:
[0108] The identification element determination unit is used to determine all station identification elements within the range of the corresponding centralized area boundary element based on the centralized area boundary element corresponding to each device;
[0109] The identification element number determination unit is used to determine the number of each station identification element based on the type of each station identification element.
[0110] Based on any of the above embodiments, the type of the station identification element is a Class I centralized station or a non-Class I centralized station;
[0111] The identification primitive number determination unit includes:
[0112] A first determining unit is used to determine that the type of the station identification graphic element is a Class I centralized station, and then use a preset number as the number of the corresponding station identification graphic element;
[0113] The second determination unit is used to determine that the type of the station identification graphic element is a non-level I centralized station, and then take the station identification graphic elements corresponding to all non-level I centralized stations as a station cluster, and sort all the station identification graphic elements in the station cluster based on the coordinates of all the station identification graphic elements in the station cluster and the second order, and number all the sorted station identification graphic elements according to the second preset rule to obtain the number of each station identification graphic element in the station cluster.
[0114] Based on any of the above embodiments, it also includes:
[0115] A boundary axle counting unit determining unit, used for determining the boundary axle counting unit corresponding to each device based on the station identification graphic element corresponding to each device;
[0116] The grouping unit is used to group all the equipment within the range of the boundary axle counting unit based on a preset grouping rule, and allocate a corresponding equipment serial number to each grouped equipment according to the serial number allocation rule corresponding to each group.
[0117] Figure 7 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 7 As shown, the electronic device may include: a processor 710, a memory 720, a communications interface 730 and a communication bus 740, wherein the processor 710, the memory 720 and the communications interface 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 720 to execute the device number file generation method, which includes: extracting the number information of each device based on the device primitive information in the signal plane diagram and the preset configuration file of each device; and generating the device number file based on the number information of each device.
[0118] In addition, the logic instructions in the above-mentioned memory 720 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0119] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the device numbering file generation method provided by the above-mentioned methods, and the method includes: based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device, extracting the numbering information of each device; based on the numbering information of each device, generating a device numbering file.
[0120] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the above-mentioned device numbering file generation method provided, the method comprising: extracting the numbering information of each device based on the device graphic element information in the signal plane diagram and the preset configuration file of each device; generating a device numbering file based on the numbering information of each device.
[0121] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a device number file, characterized in that: include: Extract the number information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device; Each device graphic element is drawn using standardized graphic elements, and each device graphic element is interrelated, so that when drawing each device graphic element, the relative position relationship of each device graphic element can be automatically calculated. The graphic element information of each device records various attributes of each device graphic element itself and related information of other device graphics elements in the signal plane associated with each device graphic element; the preset configuration file of each device refers to a file that stores information of each device manufacturer and each device type; The numbering information of each device is stored in the graphic element attributes of the corresponding device, and the information in the graphic element attributes of each device is exported to generate a device numbering file; The numbering information includes a position number and an attribute number; The method of extracting the numbering information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device includes: Based on the graphic element information of each device in the signal plane diagram, determine the position number of each device; Determine the attribute number of each device based on the preset configuration file of each device; The location number includes a line number, a centralized area number, a station number, and an equipment serial number; The determining the position number of each device based on the graphic element information of each device in the signal plane diagram includes: Based on the graphic element information of each device, identifying the line graphic element corresponding to each device from the signal plane diagram, and extracting the number of the line graphic element as the line number of each device; Based on the graphic element information of each device, identifying the centralized area boundary graphic element corresponding to each device from the signal plane diagram, and extracting the number of the corresponding centralized area boundary graphic element as the centralized area number of each device; Based on the graphic element information of each device, the station identification graphic element corresponding to each device is identified from the signal plan, and the number of the corresponding station identification graphic element is extracted as the station number of each device; Extracting the device serial number of each device from the graphic element information of each device; The numbering of each station identification element in the signal plan is determined based on the following process: Based on the centralized area boundary graphic elements corresponding to each device, all station identification graphic elements within the corresponding centralized area boundary graphic element range are determined; Based on the type of each station identification graphic element, determine the number of each station identification graphic element; The type of the station identification element is a Class I centralized station or a non-Class I centralized station; The step of determining the number of each station identification graphic element based on the type of each station identification graphic element comprises: If the type of the station identification graphic element is determined to be a Class I centralized station, the preset number is used as the number of the corresponding station identification graphic element; If it is determined that the type of the station identification graphic element is a non-level I centralized station, the station identification graphic elements corresponding to all non-level I centralized stations are taken as a station cluster, and based on the coordinates of all station identification graphic elements in the station cluster and the second order, all the station identification graphic elements in the station cluster are sorted, and all the sorted station identification graphic elements are numbered according to the second preset rule to obtain the number of each station identification graphic element in the station cluster.
2. The method for generating a device number file according to claim 1, characterized in that: The numbering of the boundary elements of each concentrated area in the signal plane diagram is determined based on the following process: Based on the coordinates of all the concentrated area boundary primitives in the signal plane diagram and the first order, all the concentrated area boundary primitives are sorted, and all the sorted concentrated area boundary primitives are numbered according to the first preset rule to obtain the number of each concentrated area boundary primitive.
3. The method for generating a device number file according to claim 1, characterized in that: The device serial number of each device is determined based on the following process: Based on the station identification graphic elements corresponding to each device, determine the boundary axle counting unit corresponding to each device; Based on the preset grouping rules, all devices within the demarcation axle counting unit are grouped, and according to the serial number allocation rules corresponding to each group, a corresponding device serial number is allocated to each grouped device.
4. A device number file generation device, characterized in that: include: An information extraction unit, used to extract the number information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device; Each device graphic element is drawn using standardized graphic elements, and each device graphic element is interrelated, so that when drawing each device graphic element, the relative position relationship of each device graphic element can be automatically calculated. The graphic element information of each device records various attributes of each device graphic element itself and related information of other device graphics elements in the signal plane associated with each device graphic element; the preset configuration file of each device refers to a file that stores information of each device manufacturer and each device type; A file generating unit, used for storing the numbering information of each device into the graphic primitive attribute of the corresponding device, and exporting the information in the graphic primitive attribute of each device to generate a device numbering file; The numbering information includes a position number and an attribute number; The method of extracting the numbering information of each device based on the graphic element information of each device in the signal plane diagram and the preset configuration file of each device includes: Based on the graphic element information of each device in the signal plane diagram, determine the position number of each device; Determine the attribute number of each device based on the preset configuration file of each device; The location number includes a line number, a centralized area number, a station number, and an equipment serial number; The determining the position number of each device based on the graphic element information of each device in the signal plane diagram includes: Based on the graphic element information of each device, identifying the line graphic element corresponding to each device from the signal plane diagram, and extracting the number of the line graphic element as the line number of each device; Based on the graphic element information of each device, identifying the centralized area boundary graphic element corresponding to each device from the signal plane diagram, and extracting the number of the corresponding centralized area boundary graphic element as the centralized area number of each device; Based on the graphic element information of each device, the station identification graphic element corresponding to each device is identified from the signal plan, and the number of the corresponding station identification graphic element is extracted as the station number of each device; Extracting the device serial number of each device from the graphic element information of each device; The numbering of each station identification element in the signal plan is determined based on the following process: Based on the centralized area boundary graphic elements corresponding to each device, all station identification graphic elements within the corresponding centralized area boundary graphic element range are determined; Based on the type of each station identification graphic element, determine the number of each station identification graphic element; The type of the station identification element is a Class I centralized station or a non-Class I centralized station; The step of determining the number of each station identification graphic element based on the type of each station identification graphic element comprises: If the type of the station identification graphic element is determined to be a Class I centralized station, the preset number is used as the number of the corresponding station identification graphic element; If it is determined that the type of the station identification graphic element is a non-level I centralized station, the station identification graphic elements corresponding to all non-level I centralized stations are taken as a station cluster, and based on the coordinates of all station identification graphic elements in the station cluster and the second order, all the station identification graphic elements in the station cluster are sorted, and all the sorted station identification graphic elements are numbered according to the second preset rule to obtain the number of each station identification graphic element in the station cluster.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the device number file generation method according to any one of claims 1 to 3 are implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the device number file generation method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Rail transit comprehensive monitoring picture batch processing point connection realizing method
CN105187763A
Automatically generating method and device of power plant identification system code
CN106777644A
CBTC line basic data generating method and device
CN107512292A
Interlocking table automatic generation method and device
CN109552368A
A railway signal circuit combination frame side terminal wiring method
CN109711032A
