CN112668131B - 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
CN112668131B
CN112668131B CN202110003209.3A CN202110003209A CN112668131B CN 112668131 B CN112668131 B CN 112668131B CN 202110003209 A CN202110003209 A CN 202110003209A CN 112668131 B CN112668131 B CN 112668131B
Authority
CN
China
Prior art keywords
data
address
wiring
matched
character
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.)
Active
Application number
CN202110003209.3A
Other languages
Chinese (zh)
Other versions
CN112668131A (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

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 to be wired; acquiring a wiring setting table; acquiring a wiring diagram characteristic 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 data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching 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 to-be-allocated data into the wiring table according to the address character of the first to-be-allocated data. The invention can reduce the difficulty of generating 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 device, equipment and a computer readable storage medium.
Background
In railway signal engineering, an important task is wiring, which has a low technical content. 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 connected and electrified physically, the nodes to be connected are provided with numbers, the wiring list is to show the number relations through a table, and the on-site constructors can construct the on-site constructors in a contrasting mode, specifically, the positions (numbers) of the other side are written at the positions to be wired.
When the conventional wiring software processes wiring, specific parameter data of the wiring table is written into programs such as the number of cells of the wiring table, the spacing between cells, the number of rows and columns per cell, the row height and the row width, etc., according to the type of wiring. When a program encounters a specific wiring terminal, the writing position of the wiring terminal is obtained through calculation according to the basic point and the parameter data. In the existing method, parameters are directly written into a process sequence, any parameter change needs to modify the program, and the program is recompiled.
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 wiring table generation.
In a first aspect, an embodiment of the present invention provides a wiring table generating method, including: acquiring to-be-wired terminal data, wherein the to-be-wired terminal data comprise first to-be-wired data and second to-be-wired data, and each to-be-wired data comprises prefix characters and address characters; 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; obtaining a wiring diagram characteristic table, wherein the wiring diagram characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram characteristic data, and the second template addresses are in one-to-one correspondence with the first template addresses; 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 are in one-to-one correspondence with the first character feature addresses; the following steps are sequentially performed: s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data; s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, 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 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 character of the first data to be matched.
Alternatively, if the result of executing S2 is a mismatch, the value of i is increased by 1, and S1 to S5 are sequentially executed.
Alternatively, if the result of executing S3 is a mismatch, the value of i is increased by 1, and S1 to S5 are sequentially executed.
Optionally, the method further comprises: if i is equal to N, the method still cannot be executed until S5, a new wiring table is created according to a preset rule, and a new second template address, a first character feature address, a preset expression, a second character feature address and prefix data are correspondingly generated.
Optionally, the preset expression is a regular expression.
Optionally, the first matching data further includes: the wiring type, whether to use or not, and the engineering type; and if the use correspondence of the first matching data is negative, not utilizing the group of first matching data to match.
Optionally, the second matching data further includes description and finalization names, and the wiring table feature data includes: 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.
In a second aspect, an embodiment of the present invention further provides a wiring table generating device, including: the device comprises an acquisition module and a distribution module, wherein the acquisition module is used for acquiring terminal data to be distributed, the terminal data to be distributed comprises first data to be distributed and second data to be distributed, and each data to be distributed comprises prefix characters and address characters; 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 diagram feature table, the wiring diagram feature table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram feature data, and the second template addresses are in one-to-one correspondence with the first template addresses; the acquisition module is further used for acquiring 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 are in one-to-one correspondence with the first character feature addresses; the execution module is used for sequentially executing the following steps: s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data; s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, 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 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 character of the first data to be matched.
In a third aspect, an embodiment of the present invention further provides a wiring table generating apparatus, including: one or more processors; and a storage means 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 generation method as described in 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 wiring table can be simply and conveniently generated, 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 need 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 maintenance difficulty of the wiring table generation method is greatly reduced.
Drawings
FIG. 1 is a flowchart of a wiring table generating method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a wiring table generating device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a wiring table generating device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
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 to-be-wired terminal data, wherein the to-be-wired terminal data comprises first to-be-wired data and second to-be-wired data, and each to-be-wired data comprises prefix characters and address characters;
specifically, the to-be-allocated terminal data includes data of two terminals, that is, the two terminals need to be electrically connected during wiring, the first to-be-allocated data and the second to-be-allocated data respectively represent the two terminals, the second to-be-allocated data need to be written in an address corresponding to the first to-be-allocated data on the wiring table, and the second to-be-allocated data need to be written in an address corresponding to the second to-be-allocated data; the prefix character of the data to be allocated can be used for indicating which wiring table the data to be allocated belongs to, and the address character can be used for indicating the position of the data to be allocated on the wiring table; for example, the first to-be-matched data is "Z1-101-1", the corresponding second to-be-matched data is "Z1-204-5", the prefix character may be a letter, for example, "Z" may represent the prefix character, "1-101-1" and "1-204-5" may represent the address character, "Z1-1" and "Z1-2" respectively represent two units "01-1" of the wiring table and represent the 1 st row and 1 st column of the "Z1-1" unit, wherein "Z1" may represent the rack number; in this embodiment, "Z1-204-5" needs to be written to the first row 1 column of the "Z1-1" cell, and "Z1-101-1" needs to be written to the 4 th row 5 column of the "Z1-2" cell; it should be noted that, because the first to-be-allocated data and the second to-be-allocated data both belong to the range of "Z1", the "Z1" can be omitted during writing, and the "101-1" or "204-5" can be directly written.
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 prefix characters, a first template address and a first character characteristic address, and N is more than or equal to 2;
illustratively, table 1 is a wiring setting table provided in the present embodiment, as shown in table 1;
TABLE 1
id Wiring type Template id used Prefix character Character specialSyndrome id Whether or not to use Engineering type
1 Z 7 Z,,ZZ,ZM,GZ,LJJC 1 1 Code formation
2 Z 7 M 1 1 Code formation
3 ZY 4 ZY,GY,Y 1 1 Code formation
4 ZY 21 ZY 6 1 Code formation
5 ZH 24 ZH 5 1 Code formation
6 ZZH 7 ZH,ZZH 1 1 Code formation
7 G 7 G,GM 1 1 Code formation
8 GL 7 GL 1 1 Code formation
9 F 5 F 1 1 Code formation
10 F 5 F 2 1 Code formation
11 JK 6 JK.JKL 1 1 Code formation
12 HLP 27 ZZH,,ZH,Z,GZ,LJJC 9 1 Code formation
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 what group of first matching data, "used template id" in table 1 indicates a corresponding first template address, "character feature id" in table 1 indicates a corresponding first character feature address, and "prefix character" in table 1 indicates a corresponding prefix character.
Step 103, obtaining a wiring diagram feature table, wherein the wiring diagram feature table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram feature data, and the second template addresses correspond to the first template addresses one by one;
specifically, table 2 is a wiring diagram feature table provided in this embodiment, as shown in table 2,
TABLE 2
The "id" in table 2 indicates a second template address, where 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, i.e. the first template address with the parameter "1" corresponds to the second template address with the parameter "1", and in some other embodiments, the first template address and the second template address may also have other correspondence. The wiring table feature 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 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 by 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 Table 3
The "id" in table 3 indicates a second character feature address, which corresponds to the first character feature address one by one, 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 other embodiments, other correspondence relationships may be also used. The preset expression may be, for example, a regular expression.
The execution order of steps 101 to 104 in this embodiment is not limited, and may be performed simultaneously or not.
Step 105, sequentially executing the following steps:
s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N;
specifically, for example, let i be 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 data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data;
specifically, since the prefix character of the first to-be-matched data is "Z", it belongs to the obtained prefix data, that is, the prefix character and the prefix character are matched, S3 can be executed;
s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, matching a preset expression corresponding to the second character feature address with the first data to be matched or the second data to be matched, and executing S4 if the preset expression is matched with the first data to be matched or the second data to be matched;
specifically, in this embodiment, the first character feature address, that is, "character feature id" corresponding to "id" being "1" in table 3, that is, "1", obtains a regular expression corresponding to a row with "id" being "1" from table 3, and matches the first to-be-matched data or the second to-be-matched data, and in general, 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, the same regular expression can be used to represent the first to-be-matched data or the second to-be-matched data, 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 can 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 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" of "1" is obtained from table 2, where the wiring table feature data defines the features of the wiring table, and in this embodiment, the second data to be allocated needs to be written into the wiring table.
S5: and writing the second to-be-allocated data into the wiring table according to the address character of the first to-be-allocated data.
Specifically, the address character of the first data to be allocated is "101-1", i.e. the first row and first column of the unit of the wiring table 1, so that the second data to be allocated can be written into the position to generate the corresponding wiring table.
In this embodiment, if the feature of a certain wiring table needs to be changed, only the feature data of the wiring table in the wiring setting table needs to be changed or a set of second matching data needs to be newly built in the wiring setting table, so that the wiring table generation mode is more flexible, the maintenance difficulty of the wiring table generation method is greatly reduced, and a plurality of preset wiring tables can be stored in the storage device, so that the calling is more convenient.
The technical scheme of the embodiment includes that the adopted wiring table generation method comprises the following steps: acquiring to-be-wired terminal data, wherein the to-be-wired terminal data comprises first to-be-wired data and second to-be-wired data, and each to-be-wired data comprises prefix characters and address characters; 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 wiring diagram characteristic table is obtained, the wiring diagram characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram characteristic data, and the second template addresses correspond to the first template addresses one by 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 by one; the following steps are sequentially performed: s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data; s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, matching a preset expression corresponding to the second character feature address with the first data to be matched or the second data to be matched, and executing S4 if the preset expression is matched with the first data to be matched or the second data to be matched; 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 character 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 need 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 maintenance difficulty of the wiring table generation method is greatly reduced.
Alternatively, if the result of executing S2 is a mismatch, the value of i is increased by 1, and S1 to S5 are sequentially executed.
Specifically, in this embodiment, the initial value of i may be 1, if the result of S2 is not matched, that is, the prefix character of the first to-be-matched data is not matched with the prefix data of the first to-be-matched data, the value of i may be increased by 1, S1 to S5 may be sequentially executed, that is, i.e., let i be 2, the "prefix character" corresponding to the row with "id" of "2" in table 1 is obtained, and then S2 to S5 are executed.
Alternatively, if the result of executing S3 is a mismatch, the value of i is increased by 1, and S1 to S5 are sequentially executed.
Specifically, if the result of S3 is not matched, that is, the preset expression corresponding to the second character feature address is not matched with 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 increased by 1, and then S1 to S5 may be sequentially executed.
Optionally, if i is equal to N, and still cannot be executed to S5, a new wiring table is created according to a preset rule, and a new second template address, a first payment, a preset expression, a second character feature address, and prefix data are correspondingly generated.
Specifically, if i is equal to N, the process still cannot be performed until S5, that is, after the matching of the N sets of first matching data in the wiring setting table is completed, the corresponding wiring table cannot be called, which means that the terminal data to be matched cannot be matched with the wiring setting table or the character string feature table, at this time, the corresponding wiring table can be generated according to a preset rule, the preset rule can be set by a user, for example, the feature data of the wiring table can be selected by default, the preset expression is matched with the terminal data to be matched, a new wiring table is created, and after the corresponding new second template address, the first character feature address, the preset expression, the second character feature address and the prefix data are generated, the value of N is added by 1, and when the terminal data to be matched of the type is encountered again, the corresponding wiring table can be directly called.
Optionally, the preset expression is a regular expression.
Specifically, each type of wiring terminal data has certain characteristics, for example, "Z1-101-2" in this embodiment is a combined side wiring terminal, and has the following characteristics: starting with 0 or more digits, then one character "-", then 1 digit, then 1 two digits (less than 10 complements 0), then one "-", and finally 1 digit. The above features can be conveniently described by regular expressions. The encountered wiring strings may be described by regular expressions to form a string feature table.
Optionally, the first matching data further includes: the wiring type, whether to use or not, and the engineering type; if the first matching data is not used, the group of first matching data is not used for matching.
Specifically, as shown in table 1, the wiring type may be set by user definition, and may indicate the type of the wiring table, whether the corresponding value of "1" is used may indicate that the set of first matching data is valid, and "0" may indicate that the set of first matching data is invalid. The engineering type may be, for example, encoding or interval self-closing.
Optionally, the second matching data further includes a description and finalization name, and the wiring table feature data includes: 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.
Specifically, as shown in table 2, "description" in table 2 may be used to briefly describe a corresponding wiring table, such as including several cells, several rows, several columns, and the like. The finalized name may represent a specific name of the wiring table, and the finalized 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 to-be-wired terminal data, where the to-be-wired terminal data includes first to-be-wired data and second to-be-wired data, and each to-be-wired data 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 also used for acquiring a wiring diagram characteristic table, the wiring diagram characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram characteristic data, and the second template addresses are in one-to-one correspondence with the first template addresses; the acquisition module is also used for acquiring 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 are in one-to-one correspondence with the first character feature addresses;
an execution module 202 for sequentially executing the following steps: s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data; s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, matching a preset expression corresponding to the second character feature address with the first data to be matched or the second data to be matched, and executing S4 if the preset expression is matched with the first data to be matched or the second data to be matched; 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 character of the first data to be matched.
Specifically, the wiring table generating device in this embodiment corresponds to the wiring table generating method provided in this embodiment, and the working principle thereof may refer to the description of the wiring table generating method in this embodiment, which is not repeated herein.
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 need 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 maintenance difficulty 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 processors 70 may be one or more, one processor 70 being illustrated in fig. 3; the processor 70, memory 71, input device 72 and output device 73 may be connected by a bus or other means, for example in fig. 3.
The storage device 71 is a computer-readable storage medium, and may be used to store a software program, a computer-executable program, 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 executing software programs, instructions and modules stored in the storage device 71, that is, implements the wiring table generating method described above.
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, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, 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 remotely located with respect to 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 means 72 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings of the device/terminal/server and function control. The output means 73 may comprise a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions for performing a wiring table generation method when executed by a computer processor.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the wiring table generating method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A wiring table generation method, characterized in that the method comprises:
acquiring to-be-wired terminal data, wherein the to-be-wired terminal data comprise first to-be-wired data and second to-be-wired data, and each to-be-wired data comprises prefix characters and address characters;
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;
obtaining a wiring diagram characteristic table, wherein the wiring diagram characteristic table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram characteristic data, and the second template addresses are in one-to-one correspondence with the first template addresses;
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 are in one-to-one correspondence with the first character feature addresses; the following steps are sequentially performed:
s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data; s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, 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 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 character of the first data to be matched.
2. The method of claim 1, wherein if the result of performing S2 is a mismatch, the value of i is incremented by 1, and S1 through S5 are sequentially performed.
3. The method of claim 2, wherein if the result of performing S3 is a mismatch, the value of i is incremented by 1, and S1 through S5 are sequentially performed.
4. A method according to claim 3, characterized in that the method further comprises:
if i is equal to N, the method still cannot be executed until S5, a new wiring table is created according to a preset rule, and a new second template address, a first character feature address, a preset expression, a second character feature address and 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: the wiring type, whether to use or not, and the engineering type; and if the use correspondence of the first matching data is negative, not utilizing the group of first matching data to match.
7. The method of claim 1, wherein the second match data further comprises a description and sizing name, and wherein the wiring table feature data comprises: 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.
8. A wiring table generating apparatus, characterized by comprising:
the device comprises an acquisition module and a distribution module, wherein the acquisition module is used for acquiring terminal data to be distributed, the terminal data to be distributed comprises first data to be distributed and second data to be distributed, and each data to be distributed comprises prefix characters and address characters; 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 diagram feature table, the wiring diagram feature table comprises at least two groups of second matching data, each group of second matching data comprises a second template address and wiring diagram feature data, and the second template addresses are in one-to-one correspondence with the first template addresses; the acquisition module is further used for acquiring 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 are in one-to-one correspondence with the first character feature addresses;
the execution module is used for sequentially executing the following steps: s1: prefix data of the first matching data of the ith group is obtained, wherein i is more than or equal to 1 and less than or equal to N; s2: matching the prefix character of the first data to be matched with the prefix data of the first matching data, and executing S3 if the prefix character of the first data to be matched is matched with the prefix data of the first matching data; s3: acquiring a corresponding second character feature address by using a first character feature address corresponding to the prefix data, 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 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 character of the first data to be matched.
9. A wiring table generating apparatus, characterized by comprising:
one or more processors;
storage means for storing one or more programs,
the 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, characterized in that the program, when executed by a processor, implements the wiring table 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 CN112668131A (en) 2021-04-16
CN112668131B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578271B (en) * 2023-07-12 2023-11-28 卡斯柯信号(北京)有限公司 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

Also Published As

Publication number Publication date
CN112668131A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN107360224A (en) Sequence number generation method, system, equipment and storage medium in distributed system
KR20210106398A (en) Conversation-based recommending method, conversation-based recommending apparatus, and device
CN109376153B (en) System and method for writing data into graph database based on NiFi
CN112668131B (en) Wiring table generation method, device, equipment and computer readable storage medium
CN104021123A (en) Method and system for data transfer
CN109815452A (en) Text comparative approach, device, storage medium and electronic equipment
CN113869508A (en) Optical neural network training method, system, storage medium and equipment
CN114297258B (en) Method and equipment for acquiring comprehensive arrangement data of multi-column data
CN110390014A (en) A kind of Topics Crawling method, apparatus and storage medium
CN111259090B (en) Graph generation method and device of relational data, electronic equipment and storage medium
CN112835552A (en) Method for solving inner product of sparse matrix and dense matrix by outer product accumulation
CN115169568A (en) Quantum calculation processing method and device and electronic equipment
CN101639851B (en) Method for storing and querying data and devices thereof
CA3131106A1 (en) Method, device and system for processing service data by merging sorting algorithm
CN112507728A (en) Intelligent conversation method and device, electronic equipment and storage medium
CN110266834B (en) Area searching method and device based on internet protocol address
Feng et al. Subnormal distribution derived from evolving networks with variable elements
CN111767038A (en) Scripted intelligent electric meter event judgment and analysis method
CN107342857A (en) Group technology and device
CN116633800A (en) Method, device, equipment and medium for constructing network topology
CN113360889B (en) Rights management method and apparatus, server, and computer-readable storage medium
Kari Decidability and undecidability in cellular automata
CN112417851B (en) Text error correction word segmentation method and system and electronic equipment
CN109544661B (en) Area map drawing method, apparatus, computer device and storage medium
CN112084198A (en) Direct column writing method and device for node admittance matrix in compressed storage form

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