CN112668131A - Wiring table generation method, device, equipment and computer readable storage medium - Google Patents

Wiring table generation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112668131A
CN112668131A CN202110003209.3A CN202110003209A CN112668131A CN 112668131 A CN112668131 A CN 112668131A CN 202110003209 A CN202110003209 A CN 202110003209A CN 112668131 A CN112668131 A CN 112668131A
Authority
CN
China
Prior art keywords
data
matched
address
character
wiring
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.)
Granted
Application number
CN202110003209.3A
Other languages
Chinese (zh)
Other versions
CN112668131B (en
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 Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group 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 Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202110003209.3A priority Critical patent/CN112668131B/en
Publication of CN112668131A publication Critical patent/CN112668131A/en
Application granted granted Critical
Publication of CN112668131B publication Critical patent/CN112668131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

The invention discloses a wiring table generation method, a wiring table generation device, wiring table generation equipment and a computer readable storage medium. The method comprises the steps of obtaining terminal data of a terminal to be wired; acquiring a wiring setting table; obtaining a wiring pattern feature table; acquiring a character string feature table; the following steps are sequentially performed: s1: acquiring prefix data of the ith group of first matching data; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character feature address by using the first character feature address, matching a preset expression corresponding to the second character feature address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using the first template address, and calling a wiring table according to the wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched. The invention can reduce the generation difficulty of the wiring table.

Description

Wiring table generation method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of wiring table generation, in particular to a wiring table generation method, a wiring table generation device, wiring table generation equipment and a computer readable storage medium.
Background
In railway signal engineering, wiring is an important task, and the technical content of the wiring is low. But the workload is huge and cumbersome. The wiring is to connect two or more nodes, so that the cables of the nodes can be physically connected and electrified, the nodes to be connected have numbers, and the wiring table shows the number relations through a table for the field constructors to compare, specifically, the positions (numbers) of the nodes to be wired are written on.
When the existing wiring software processes wiring, the specific parameter data of the wiring table, such as the number of cells of the wiring table, the spacing between cells, the number of rows and columns of each cell, the height of each row and the width of each column, is written into the program according to the type of wiring. When the program meets a specific wiring terminal, the program can obtain the writing position of the wiring terminal through calculation according to the base point and each parameter data. In the existing method, parameters are directly written into a program, and any parameter change needs to modify the program and recompile the program.
Disclosure of Invention
The invention provides a wiring table generation method, a device, equipment and a computer readable storage medium, which are used for reducing the difficulty of generating a wiring table.
In a first aspect, an embodiment of the present invention provides a wiring table generating method, where the method includes: acquiring sub data of a terminal to be distributed, wherein the sub data of the terminal to be distributed comprises first data to be distributed and second data to be distributed, and each data to be distributed comprises a prefix character and an address character; acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of the first matching data comprises prefix data, a first template address and a first character characteristic address, and N is more than or equal to 2; acquiring a wiring pattern characteristic table, wherein the wiring pattern characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern characteristic data, and the second template addresses correspond to the first template addresses one to one; acquiring a character string feature table, wherein the character string feature table comprises at least two groups of third matching data, each group of the third matching data comprises a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one; the following steps are sequentially performed: s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character characteristic address by using a first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched.
Alternatively, if the result of performing S2 is not matched, the value of i is incremented by 1, and S1 to S5 are sequentially performed.
Alternatively, if the result of performing S3 is not matched, the value of i is incremented by 1, and S1 to S5 are sequentially performed.
Optionally, the method further comprises: if i is equal to N, the process still cannot be executed to S5, a new layout table is created according to the preset rule, and a new second template address, a new first character feature address, a new preset expression, a new second character feature address, and new prefix data are correspondingly generated.
Optionally, the preset expression is a regular expression.
Optionally, the first matching data further includes: wiring type, use or not and engineering type; and if the first matching data is not used correspondingly, the set of first matching data is not utilized for matching.
Optionally, the second matching data further includes a description and a design name, and the distribution table feature data includes: at least one of a number of cells, a number of layers, a number of columns, a number of rows, a cell pitch x, a cell pitch y, a column pitch, a row pitch, a cell width, a cell height, a word width, a word height, a word column position, and a table type.
In a second aspect, an embodiment of the present invention further provides a wiring table generating apparatus, where the apparatus includes: the terminal data acquisition module is used for acquiring terminal data of a terminal to be wired, wherein the terminal data of the terminal to be wired comprises first data to be wired and second data to be wired, and each piece of the data to be wired comprises a prefix character and an address character; acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of the first matching data comprises prefix data, a first template address and a first character characteristic address, and N is more than or equal to 2; the acquisition module is further used for acquiring a wiring pattern feature table, the wiring pattern feature table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern table feature data, and the second template addresses are in one-to-one correspondence with the first template addresses; the obtaining module is further configured to obtain a character string feature table, where the character string feature table includes at least two sets of third matching data, each set of the third matching data includes a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one; an execution module for sequentially executing the following steps: s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character characteristic address by using a first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched.
In a third aspect, an embodiment of the present invention further provides a device for generating a wiring table, where the device includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the wiring table generating method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the wiring table generating method according to the first aspect.
The invention has the beneficial effects that: the method can simply and conveniently generate the wiring table, when the characteristics of a certain wiring table need to be changed, only the characteristic data of the wiring table in the wiring setting table needs to be changed or a group of second matching data is newly built in the wiring setting table, the wiring table generation mode is more flexible, and the difficulty of maintenance of the wiring table generation method is greatly reduced.
Drawings
Fig. 1 is a flowchart of a distribution table generating method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a distribution table generating device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a distribution table generating device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a wiring table generating method according to an embodiment of the present invention, and referring to fig. 1, the wiring table generating method includes:
step 101, obtaining sub data of a terminal to be distributed, wherein the sub data of the terminal to be distributed comprises first data to be distributed and second data to be distributed, and each data to be distributed comprises a prefix character and an address character;
specifically, the data of the terminals to be configured includes data of two terminals, that is, the two terminals need to be electrically connected during wiring, the first data to be configured and the second data to be configured represent the two terminals respectively, the second data to be configured needs to be written in an address corresponding to the first data to be configured on the wiring table, and the second data to be configured is written in an address corresponding to the second data to be configured; prefix characters of data to be matched can be used for indicating the wiring table to which the data to be matched belongs, and address characters can be used for indicating the position of the data to be matched on the wiring table; for example, the first data to be matched is "Z1-101-1", the corresponding second data to be matched is "Z1-204-5", the prefix character can be a letter, e.g., "Z" can represent the prefix character, "1-101-1" and "1-204-5" can represent the address character, "Z1-1" and "Z1-2" respectively represent two cells "01-1" of the wiring table representing row 1, column 1 of the "Z1-1" cell, wherein "Z1" can represent the rack number; in this embodiment, it is necessary to write "Z1-204-5" to column 1 of the first row of "Z1-1" cells, and "Z1-101-1" to column 5 of the 4 th row of "Z1-2" cells; it should be noted that, since the first to-be-configured data and the second to-be-configured data both belong to the range of "Z1", the "Z1" may be omitted and written directly into "101-1" or "204-5" during writing.
102, acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of first matching data comprises a prefix character, a first template address and a first character characteristic address, and N is more than or equal to 2;
exemplarily, table 1 is a wiring arrangement table provided in the present embodiment, as shown in table 1;
TABLE 1
id Type of wiring Template id used Prefix character Character feature id Whether or not to use Type of engineering
1 Z 7 Z,,ZZ,ZM,GZ,LJJC 1 1 Coding
2 Z 7 M 1 1 Coding
3 ZY 4 ZY,GY,Y 1 1 Coding
4 ZY 21 ZY 6 1 Coding
5 ZH 24 ZH 5 1 Coding
6 ZZH 7 ZH,ZZH 1 1 Coding
7 G 7 G,GM 1 1 Coding
8 GL 7 GL 1 1 Coding
9 F 5 F 1 1 Coding
10 F 5 F 2 1 Coding
11 JK 6 JK.JKL 1 1 Coding
12 HLP 27 ZZH,,ZH,Z,GZ,LJJC 9 1 Coding
78 QZ 16 QZ,GQZ 1 1 Interval self-closing
79 QY 17 QY 1 1 Interval self-closing
80 QY 25 QY 7 1 Interval self-closing
81 QZH 18 QZH 4 1 Interval self-closing
82 QGL 19 QZH 3 1 Interval self-closing
83 F 5 F 1 1 Interval self-closing
84 F 5 F 2 1 Interval self-closing
85 JK 6 JK 1 1 Interval self-closing
86 Z 1 LJJC 1 1 Interval self-closing
87 QZ 9 QZ 1 0 Interval self-closing
"id" in table 1 indicates the number-th set of first matching data, "used template id" in table 1 indicates the corresponding first template address, "character feature id" in table 1 indicates the corresponding first character feature address, and "prefix character" in table 1 indicates the corresponding prefix character.
103, acquiring a wiring pattern characteristic table, wherein the wiring pattern characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern characteristic data, and the second template addresses correspond to the first template addresses one to one;
specifically, table 2 is a wiring pattern characteristic table provided in the present embodiment, as shown in table 2,
TABLE 2
Figure BDA0002882416500000061
In table 2, "id" indicates a second template address, and the second template address corresponds to the first template address one by one, for example, the first template address is the same as the second template address, that is, the first template address with the parameter "1" corresponds to the second template address with the parameter "1", in some other embodiments, the first template address and the second template address may also have other corresponding relationships. The wiring table characteristic data may include, for example, at least one of the number of cells, the number of layers, the number of columns, the number of rows, the cell pitch x, the cell pitch y, the column pitch, the row pitch, the cell width, the cell height, the word width, the word height, the word column position, and the table type, and the wiring table characteristic data is used to characterize the wiring table.
104, acquiring a character string feature table, wherein the character string feature table comprises at least two groups of third matching data, each group of third matching data comprises a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one;
specifically, table 3 is a character string feature table provided in the embodiment of the present invention, as shown in table 3,
TABLE 3
Figure BDA0002882416500000071
The "id" in table 3 indicates a second character feature address, which is in one-to-one correspondence with the first character feature address, for example, the second character feature address is the same as the first character feature address, and when the first character feature address is "1", the corresponding second character feature address is also "1", and in some other embodiments, other correspondence may be used. The preset expression may be, for example, a regular expression.
In this embodiment, the execution sequence of steps 101 to 104 is not limited, and may be performed simultaneously or not.
Step 105, sequentially executing the following steps:
s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N;
specifically, for example, i may be first set to 1, that is, prefix data of the 1 st group of first matching data is obtained, that is, prefix characters corresponding to "id" of "1" in table 3 are obtained;
s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data;
specifically, since the prefix character of the first to-be-matched data is "Z", which belongs to the obtained prefix data, that is, the two are matched, S3 may be performed;
s3: acquiring a corresponding second character characteristic address by using the first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data;
specifically, in this embodiment, the first character feature address, that is, the "character feature id" corresponding to "1" in table 3, "that is," 1 ", is obtained from table 3, and the regular expression corresponding to the row whose" id "is" 1 "is matched with the first to-be-matched data or the second to-be-matched data, generally, the first to-be-matched data and the second to-be-matched data of the to-be-matched terminal data have the same format, that is, can be represented by the same regular expression, and if the data format of the first to-be-matched data or the second to-be-matched data conforms to the regular expression, S4 may be executed;
s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to the wiring table characteristic data corresponding to the second template address;
specifically, in this embodiment, that is, the wiring table feature data corresponding to the row with "id" being "1" is obtained from table 2, where the wiring table feature data defines the feature of the wiring table, and in this embodiment, the second data to be configured needs to be written into the wiring table.
S5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched.
Specifically, the address character of the first to-be-matched data is "101-1", i.e. the first row and the first column of the cell of the wiring table 1, so that the second to-be-matched data can be written into the position to generate the corresponding wiring table.
In this embodiment, if the characteristics of a certain wiring table need to be changed, only the characteristic data of the wiring table in the wiring setting table needs to be changed or a set of second matching data is newly established in the wiring setting table, the wiring table generation mode is more flexible, the difficulty of maintenance of the wiring table generation method is greatly reduced, a plurality of preset wiring tables can be stored in the storage device, and calling is more convenient.
In the technical solution of this embodiment, the method for generating the wiring table includes: acquiring sub data of a terminal to be distributed, wherein the sub data of the terminal to be distributed comprises first data to be distributed and second data to be distributed, and each data to be distributed comprises a prefix character and an address character; acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of first matching data comprises prefix data, a first template address and a first character characteristic address, and N is more than or equal to 2; acquiring a wiring pattern characteristic table, wherein the wiring pattern characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern characteristic data, and the second template addresses correspond to the first template addresses one to one; acquiring a character string feature table, wherein the character string feature table comprises at least two groups of third matching data, each group of third matching data comprises a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one; the following steps are sequentially performed: s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character characteristic address by using the first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to the wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched. If the characteristics of a certain wiring table need to be changed, only the characteristic data of the wiring table in the wiring setting table needs to be changed or a group of second matching data is newly established in the wiring setting table, so that the wiring table generation mode is more flexible, and the maintenance difficulty of the wiring table generation method is greatly reduced.
Alternatively, if the result of performing S2 is not matched, the value of i is incremented by 1, and S1 to S5 are sequentially performed.
Specifically, in this embodiment, the initial value of i may be 1, if the result of S2 is a mismatch, that is, the prefix character of the first to-be-matched data does not match the prefix data of the first matching data, the value of i may be incremented by 1, and then S1 to S5 are sequentially performed, that is, i is first set to 2, the "prefix character" corresponding to the row "id" is "2" in table 1 is obtained, and then S2 to S5 are performed.
Alternatively, if the result of performing S3 is not matched, the value of i is incremented by 1, and S1 to S5 are sequentially performed.
Specifically, if the result of S3 is that the preset expression corresponding to the second character feature address does not match the first to-be-matched data and the second to-be-matched data, that is, the first to-be-matched data and the second to-be-matched data cannot be represented by the corresponding regular expressions, the value of i may be added by 1, and then S1 to S5 are sequentially performed.
Optionally, if i is equal to N, the process may still not be executed to S5, a new wiring table is created according to the preset rule, and a new second template address, a new first payment, a new preset expression, a new second character feature address, and new prefix data are correspondingly generated.
Specifically, if i is equal to N, the process may still not be executed to S5, that is, if N sets of first matching data in the wiring setting table are completely matched, the corresponding wiring table may still not be called, which indicates that the terminal data to be configured may not be matched with the wiring setting table or the character string feature table, at this time, the corresponding wiring table may be generated according to a preset rule, the preset rule may be set by a user, and if the feature data of the wiring table is selectable to be default, the preset expression is matched with the terminal data to be configured, a new wiring table is created, and a corresponding new second template address, a corresponding first character feature address, a corresponding preset expression, a corresponding second character feature address, and corresponding prefix data are generated, and then the value of N is incremented by 1, and when the terminal data to be configured of the type is encountered again, the corresponding wiring table may be directly called.
Optionally, the preset expression is a regular expression.
Specifically, each type of wiring terminal data has certain characteristics, such as "Z1-101-2" of the present embodiment is a combined side wiring terminal, and has the following characteristics: starting with a character greater than or equal to 0 with a number, then a character "-", then 1 number, then 1 two-digit number (less than 10 with 0), then a "-", and finally 1 number. The above features can be conveniently described by regular expressions. The wiring character strings encountered can be described by regular expressions, and a character string feature table is formed.
Optionally, the first matching data further comprises: wiring type, use or not and engineering type; and if the first matching data is not used correspondingly, the set of first matching data is not utilized for matching.
Specifically, as shown in table 1, the wiring type may be set by a user, and may represent the type of the wiring table, and whether to use a corresponding value of "1" may represent that the group of first matching data is valid, and "0" may represent that the group of first matching data is invalid. The engineering type may be coding or interval self-closing, for example.
Optionally, the second matching data further includes a description and a design name, and the distribution table feature data includes: at least one of a number of cells, a number of layers, a number of columns, a number of rows, a cell pitch x, a cell pitch y, a column pitch, a row pitch, a cell width, a cell height, a word width, a word height, a word column position, and a table type.
Specifically, as shown in table 2, "description" in table 2 can be used to briefly describe the corresponding wiring table, such as several rows and columns including several cells, etc. The fixed name may represent a specific name of the distribution table, and the fixed name may be freely set by a user.
Fig. 2 is a schematic structural diagram of a wiring table generating device according to an embodiment of the present invention, and referring to fig. 2, the wiring table generating device includes:
the obtaining module 201 is configured to obtain terminal data of a terminal to be wired, where the terminal data of the terminal to be wired includes first data to be wired and second data to be wired, and each data to be wired includes a prefix character and an address character; acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of first matching data comprises prefix data, a first template address and a first character characteristic address, and N is more than or equal to 2; the acquisition module is further used for acquiring a wiring pattern characteristic table, the wiring pattern characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern characteristic data, and the second template addresses correspond to the first template addresses one to one; the obtaining module is further used for obtaining a character string feature table, the character string feature table comprises at least two groups of third matching data, each group of third matching data comprises a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one;
an execution module 202 configured to sequentially execute the following steps: s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character characteristic address by using the first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to the wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched.
Specifically, the wiring table generating device of this embodiment corresponds to the wiring table generating method provided in this embodiment of the present invention, and the working principle thereof can refer to the description of the wiring table generating method part in this embodiment, which is not described herein again.
The wiring table generating device of the embodiment can simply and conveniently generate the wiring table, when the characteristics of a certain wiring table need to be changed, only the characteristic data of the wiring table in the wiring setting table needs to be changed or a group of second matching data is newly built in the wiring setting table, the wiring table generating mode is more flexible, and the difficulty of maintenance of the wiring table generating method is greatly reduced.
Fig. 3 is a schematic structural diagram of a wiring table generating apparatus according to an embodiment of the present invention, and referring to fig. 3, the wiring table generating apparatus includes a processor 70, a storage device 71, an input device 72, and an output device 73; the number of the processors 70 may be one or more, and one processor 70 is taken as an example in fig. 3; the processor 70, the memory 71, the input device 72 and the output device 73 may be connected by a bus or other means, as exemplified by the bus connection in fig. 3.
The storage device 71 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the wiring table generating method in the embodiment of the present invention. The processor 70 executes various functional applications and data processing of the wiring table generating apparatus by running software programs, instructions, and modules stored in the storage device 71, that is, implements the above-described wiring table generating method.
The storage device 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 71 may further include memory located remotely from the processor 70, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus/terminal/server. The output device 73 may include a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a wiring scheme generation method.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the wiring table generation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A wiring scheme generation method, comprising:
acquiring sub data of a terminal to be distributed, wherein the sub data of the terminal to be distributed comprises first data to be distributed and second data to be distributed, and each data to be distributed comprises a prefix character and an address character;
acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of the first matching data comprises prefix data, a first template address and a first character characteristic address, and N is more than or equal to 2;
acquiring a wiring pattern characteristic table, wherein the wiring pattern characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern characteristic data, and the second template addresses correspond to the first template addresses one to one;
acquiring a character string feature table, wherein the character string feature table comprises at least two groups of third matching data, each group of the third matching data comprises a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one; the following steps are sequentially performed:
s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character characteristic address by using a first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched.
2. The method of claim 1, wherein if the result of performing S2 is not matched, then adding 1 to the value of i, and performing S1-S5 sequentially.
3. The method of claim 2, wherein if the result of performing S3 is not matched, then adding 1 to the value of i, and performing S1-S5 sequentially.
4. The method of claim 3, further comprising:
if i is equal to N, the process still cannot be executed to S5, a new layout table is created according to the preset rule, and a new second template address, a new first character feature address, a new preset expression, a new second character feature address, and new prefix data are correspondingly generated.
5. The method of claim 1, wherein the preset expression is a regular expression.
6. The method of claim 1, wherein the first matching data further comprises: wiring type, use or not and engineering type; and if the first matching data is not used correspondingly, the set of first matching data is not utilized for matching.
7. The method of claim 1, wherein the second match data further includes a description and a stereotype name, and wherein the wire list characterization data includes: at least one of a number of cells, a number of layers, a number of columns, a number of rows, a cell pitch x, a cell pitch y, a column pitch, a row pitch, a cell width, a cell height, a word width, a word height, a word column position, and a table type.
8. A wiring scheme generation apparatus, characterized in that the apparatus comprises:
the terminal data acquisition module is used for acquiring terminal data of a terminal to be wired, wherein the terminal data of the terminal to be wired comprises first data to be wired and second data to be wired, and each piece of the data to be wired comprises a prefix character and an address character; acquiring a wiring setting table, wherein the wiring setting table comprises N groups of first matching data, each group of the first matching data comprises prefix data, a first template address and a first character characteristic address, and N is more than or equal to 2; the acquisition module is further used for acquiring a wiring pattern feature table, the wiring pattern feature table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring pattern table feature data, and the second template addresses are in one-to-one correspondence with the first template addresses; the obtaining module is further configured to obtain a character string feature table, where the character string feature table includes at least two sets of third matching data, each set of the third matching data includes a second character feature address and a preset expression, and the second character feature addresses correspond to the first character feature addresses one to one;
an execution module for sequentially executing the following steps: s1: acquiring prefix data of the ith group of first matching data, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first to-be-matched data with the prefix data of the first matched data, and executing S3 if the prefix character of the first to-be-matched data is matched with the prefix data of the first matched data; s3: acquiring a corresponding second character characteristic address by using a first character characteristic address corresponding to the prefix data, matching a preset expression corresponding to the second character characteristic address with the first to-be-matched data or the second to-be-matched data, and executing S4 if the preset expression is matched with the first to-be-matched data or the second to-be-matched data; s4: acquiring a corresponding second template address by using a first template address corresponding to the first character characteristic address, and calling a corresponding wiring table according to wiring table characteristic data corresponding to the second template address; s5: and writing the second data to be matched into the wiring table according to the address characters of the first data to be matched.
9. A wiring pattern table generating apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the wiring table generation method of any of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the wiring list generation method according to any one of claims 1 to 7.
CN202110003209.3A 2021-01-04 2021-01-04 Wiring table generation method, device, equipment and computer readable storage medium Active CN112668131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110003209.3A CN112668131B (en) 2021-01-04 2021-01-04 Wiring table generation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110003209.3A CN112668131B (en) 2021-01-04 2021-01-04 Wiring table generation method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112668131A true CN112668131A (en) 2021-04-16
CN112668131B CN112668131B (en) 2023-11-17

Family

ID=75412669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110003209.3A Active CN112668131B (en) 2021-01-04 2021-01-04 Wiring table generation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112668131B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578271A (en) * 2023-07-12 2023-08-11 卡斯柯信号(北京)有限公司 Drawing method and device for application design process model diagram

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468588A (en) * 2014-05-30 2016-04-06 华为技术有限公司 Character string matching method and apparatus
CN106815282A (en) * 2016-11-29 2017-06-09 腾讯科技(深圳)有限公司 Data access method and device
CN108255836A (en) * 2016-12-28 2018-07-06 普天信息技术有限公司 A kind of character string matching method and device
CN108846672A (en) * 2018-06-25 2018-11-20 北京奇虎科技有限公司 Personalized address generating method, device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468588A (en) * 2014-05-30 2016-04-06 华为技术有限公司 Character string matching method and apparatus
CN106815282A (en) * 2016-11-29 2017-06-09 腾讯科技(深圳)有限公司 Data access method and device
CN108255836A (en) * 2016-12-28 2018-07-06 普天信息技术有限公司 A kind of character string matching method and device
CN108846672A (en) * 2018-06-25 2018-11-20 北京奇虎科技有限公司 Personalized address generating method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578271A (en) * 2023-07-12 2023-08-11 卡斯柯信号(北京)有限公司 Drawing method and device for application design process model diagram
CN116578271B (en) * 2023-07-12 2023-11-28 卡斯柯信号(北京)有限公司 Drawing method and device for application design process model diagram

Also Published As

Publication number Publication date
CN112668131B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN107239392B (en) Test method, test device, test terminal and storage medium
KR20210106398A (en) Conversation-based recommending method, conversation-based recommending apparatus, and device
CN115169568B (en) Quantum calculation processing method and device and electronic equipment
CN110555700A (en) block chain intelligent contract execution method and device and computer readable storage medium
CN112668131A (en) Wiring table generation method, device, equipment and computer readable storage medium
CN110390014A (en) A kind of Topics Crawling method, apparatus and storage medium
CN107391622A (en) A kind of data access method and equipment
CN114138231B (en) Method, circuit and SOC for executing matrix multiplication operation
CN114862449A (en) Method and device for calculating unique natural person identifier, electronic equipment and storage medium
CN115378862A (en) Route configuration method, device, equipment and medium with grouping function
CN116167289A (en) Power grid operation scene generation method and device, computer equipment and storage medium
CA3131106A1 (en) Method, device and system for processing service data by merging sorting algorithm
CN114239479A (en) Circuit module multiplexing design method and device, computer equipment and storage medium
CN116633800A (en) Method, device, equipment and medium for constructing network topology
CN111767038A (en) Scripted intelligent electric meter event judgment and analysis method
Feng et al. Subnormal distribution derived from evolving networks with variable elements
CN111752839A (en) Test case, rule generation method, chip test method, device, equipment and medium
CN105005550A (en) Table generation method and apparatus
CN113360889B (en) Rights management method and apparatus, server, and computer-readable storage medium
CN109544661B (en) Area map drawing method, apparatus, computer device and storage medium
RU107872U1 (en) COMMUNICATION SYSTEM SIMULATOR SIMULATOR DEVICE USING COMMUNICATION SYSTEM MODELING SOFTWARE
CN112241767A (en) Pipe network water pressure monitoring node arrangement method, device, equipment and storage medium
CN109460533B (en) Method and device for improving GEMM calculation performance
CN112084198A (en) Direct column writing method and device for node admittance matrix in compressed storage form
Nepomniaschaya Associative version of the Ramalingam decremental algorithm for dynamic updating the single-sink shortest-paths subgraph

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
GR01 Patent grant
GR01 Patent grant