CN113569103B - Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry - Google Patents

Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry Download PDF

Info

Publication number
CN113569103B
CN113569103B CN202111132585.9A CN202111132585A CN113569103B CN 113569103 B CN113569103 B CN 113569103B CN 202111132585 A CN202111132585 A CN 202111132585A CN 113569103 B CN113569103 B CN 113569103B
Authority
CN
China
Prior art keywords
blind plate
parameters
real
technical
scheme
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
CN202111132585.9A
Other languages
Chinese (zh)
Other versions
CN113569103A (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.)
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Original Assignee
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinrun Fulian Digital Technology Co Ltd filed Critical Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority to CN202111132585.9A priority Critical patent/CN113569103B/en
Publication of CN113569103A publication Critical patent/CN113569103A/en
Application granted granted Critical
Publication of CN113569103B publication Critical patent/CN113569103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90348Query processing by searching ordered data, e.g. alpha-numerically ordered data

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a technical scheme self-matching method, electronic equipment and a storage medium in the coal chemical industry, wherein the method comprises the following steps: receiving a technical scheme, extracting blind plate parameters in the technical scheme, and establishing a blind plate target state list through the blind plate parameters; receiving real-time parameters of a blind plate, and establishing a real-time state list of the blind plate according to the real-time parameters of the blind plate; and self-matching the target state list and the real-time state list, and outputting a matching result. When the technical scheme is imported, the technical scheme is compared with the real-time condition through comparison of the target state of the blind plate in the technical scheme and the blind plate, the comparison of the technical scheme and the real-time condition can be provided for a user, the comparison of a single technical scheme and the real-time condition or the comparison of a plurality of technical schemes and the real-time condition can be provided, the user does not need to manually compare the technical scheme and the real-time condition on site, and the matching error rate is reduced.

Description

Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry
Technical Field
The invention relates to the technical field of data processing, in particular to a technical scheme self-matching method, electronic equipment and a storage medium in the coal chemical industry.
Background
In the coal chemical industry, the blind plate in its pipeline sets up in the kneck of equipment and pipeline, trip valve front and back or between two flanges, and its mainly used keeps apart the production medium completely, prevents to influence production because the trip valve is closed untight, serious can cause the accident even. Therefore, every time a new technical scheme is introduced, since the state of the blind plate in the new technical scheme is changed compared with the previous technical scheme, the current state of the blind plate in the pipeline needs to be strictly detected and confirmed to confirm whether the blind plate conforms to the new technical scheme.
However, when the existing new technical scheme is introduced, the current state of the blind plates is detected and confirmed by an engineer on site, and the blind plates are manually compared one by one, so that the efficiency is low and errors are easy to occur.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a technical scheme self-matching method, electronic equipment and a storage medium in the coal chemical industry, and aims to solve the technical problem that the error rate of matching between a blind plate state in a technical scheme and a blind plate state in a field pipeline is high in the existing coal chemical industry.
In order to achieve the above object, the present application provides a technical solution self-matching method in the coal chemical industry, comprising:
receiving a technical scheme, extracting blind plate parameters in the technical scheme, and establishing a blind plate target state list through the blind plate parameters;
receiving real-time parameters of a blind plate, and establishing a real-time state list of the blind plate according to the real-time parameters of the blind plate;
and self-matching the target state list and the real-time state list, and outputting a matching result.
Optionally, the step of receiving the technical solution, extracting the blind plate parameters in the technical solution, and building a blind plate target state list according to the blind plate parameters includes:
receiving a technical scheme;
extracting fields corresponding to the blind plate parameters in the technical scheme, coding the fields corresponding to the blind plate parameters and converting the fields into equal byte lengths to obtain coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in protocol data to form a coded value sequence of a text to be tested;
carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, and generating a suffix automaton based on the suffix tree;
matching the coded value sequence of the text to be detected with the suffix automaton based on a heuristic jump rule to generate a character string to be detected;
performing abstract calculation on the character string to be detected, cutting off the generated abstract value according to a preset length, and generating and outputting the abstract value with equal byte length;
and splicing the abstract values with the equal byte length according to the sequence of fields corresponding to the blind plate parameters in protocol data to form an abstract value sequence of the text to be tested, and constructing a blind plate target state list by using the abstract value sequence.
Optionally, before the step of extracting the field corresponding to the blind plate parameter in the technical solution, the method further includes:
the technical scheme is subjected to grouping pretreatment, and the rules of the grouping pretreatment comprise:
the technical scheme comprises the steps that the blind plate parameters comprise blind plate codes, blind plate names, blind plate positions and blind plate states, the technical scheme is grouped according to the same blind plate positions, the technical scheme is grouped according to the same blind plate states, or the technical scheme is grouped according to the same blind plate positions and blind plate states.
Optionally, the step of performing positive order arrangement on the coded values of equal byte length, generating a suffix tree, and generating a suffix automaton based on the suffix tree includes:
carrying out positive sequence arrangement on the coded values with the equal byte length to obtain a positive sequence set;
generating a suffix tree according to the construction rule of the suffix tree and the forward sequence set;
and traversing all suffix trees, and generating a corresponding suffix automaton through a suffix link construction.
Optionally, the step of matching the coded value sequence of the text to be tested with the suffix automaton based on a heuristic skip rule to generate a character string to be tested includes:
according to a preset sequence, inputting the coded value sequences of the texts to be tested into a suffix automaton one by taking blocks as units for matching;
continuously searching a part matched with the suffix of the text to be detected and the prefix in the mode in the matching process, and gradually increasing the length of the suffix of the text to be detected until all the maximum matched prefixes are found;
and splicing all the text suffixes to be tested corresponding to the maximum matching prefixes according to a preset sequence to generate a character string to be tested.
Optionally, the step of performing self-matching on the target status list and the real-time status list and outputting a matching result includes:
selecting a group of blind plate parameters from the target state list;
selecting a blind plate code or a blind plate name contained in the blind plate parameter as a query basis;
extracting the real-time parameters of the blind plate from the real-time state list according to the query basis;
comparing the blind plate parameters with the real-time blind plate parameters one by one, and if the blind plate parameters are consistent with the real-time blind plate parameters, successfully matching;
and repeating the step of selecting a group of blind plate parameters from the target state list until the blind plate parameters are compared with the real-time blind plate parameters one by one, and if all the blind plate parameters are consistent, successfully matching the blind plate parameters until all the blind plates in the target state list are matched.
Optionally, the step of performing self-matching on the target status list and the real-time status list and outputting a matching result includes:
sequencing a plurality of groups of blind plate parameters contained in the target state list according to a preset rule, and giving serial number identification;
sequentially selecting a group of blind plate parameters from the target state list;
extracting the blind plate real-time parameters of the blind plates corresponding to the serial numbers from the real-time state list according to the serial numbers corresponding to the blind plate parameters, wherein the multiple groups of blind plate real-time parameters contained in the real-time state list are respectively associated with a single serial number;
comparing the blind plate parameters with the real-time blind plate parameters one by one, and if the blind plate parameters are consistent with the real-time blind plate parameters, successfully matching;
and repeating the step of sequentially selecting a group of blind plate parameters from the target state list until the blind plate parameters are compared with the real-time blind plate parameters one by one, and if all the blind plate parameters are consistent, successfully matching the blind plate parameters until all the blind plates in the target state list are matched.
Optionally, in the step of sorting the multiple groups of blind panel parameters included in the target state list according to a preset rule and giving serial number identifiers, the preset rule is the same as a sorting rule of the multiple groups of blind panel real-time parameters included in the real-time state list, and the preset rule includes:
the blind plate parameters comprise blind plate positions, wherein the blind plate positions comprise pipelines in which blind plates are located, the position types of the blind plates in the pipelines and the sequencing serial numbers of the blind plates in the pipelines;
acquiring a pipeline serial number identifier according to a pipeline where the blind plate is located, and acquiring a position type identifier according to the position type of the blind plate in the pipeline;
and sequencing the multiple groups of blind plate parameters according to the pipeline serial number identifiers, sequencing the blind plate parameters with the same pipeline serial number according to the position types, and sequencing the blind plate parameters with the same position types according to the sequencing serial numbers.
In addition, in order to realize above-mentioned purpose, this application still provides a coal chemical industry technical scheme self-matching device, includes:
the first acquisition module is used for receiving the real-time parameters of the blind plate and establishing a real-time state list of the blind plate according to the real-time parameters of the blind plate;
the second acquisition module is used for receiving the technical scheme, extracting the blind plate parameters in the technical scheme and establishing a blind plate target state list through the blind plate parameters;
and the matching module is used for carrying out self-matching on the target state list and the real-time state list and outputting a matching result.
Optionally, the first obtaining module includes:
the first data receiving unit is used for receiving the real-time parameters of the blind plate sent by the client;
the first preprocessing unit is used for carrying out grouping preprocessing on the blind plate real-time parameters, extracting fields corresponding to the blind plate real-time parameters, coding the fields corresponding to the blind plate real-time parameters, converting the fields into equal byte lengths, obtaining coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate real-time parameters in protocol data to form a coded value sequence of a text to be matched;
the character string generating unit to be matched is used for carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, generating a suffix automaton based on the suffix tree, matching the coded value sequence of the text to be matched with the suffix automaton based on a heuristic skip rule and generating a character string to be matched;
the first abstract value generating unit is used for carrying out abstract calculation on the character string to be matched, cutting off the generated abstract value according to a preset length, and generating and outputting an abstract value with equal byte length;
and the blind plate real-time state list generating unit is used for splicing the abstract values with the equal byte length according to the sequence of the original key word fields in the protocol data to form an abstract value sequence of the text to be matched, and the blind plate real-time state list is formed by the abstract value sequence of the text to be matched.
Optionally, the second obtaining module includes:
a second data receiving unit, configured to receive a technical solution;
the second preprocessing unit is used for performing grouping preprocessing on the technical scheme, extracting fields corresponding to the blind plate parameters in the technical scheme, coding the fields corresponding to the blind plate parameters, converting the fields into equal byte lengths, obtaining coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in protocol data to form a coded value sequence of a text to be tested;
the character string generating unit to be tested is used for carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, generating a suffix automaton based on the suffix tree, matching the coded value sequence of the text to be tested with the suffix automaton based on a heuristic skip rule and generating a character string to be tested;
the second abstract value generating unit is used for carrying out abstract calculation on the character string to be detected, cutting off the generated abstract value according to a preset length, and generating and outputting an abstract value with equal byte length;
and the blind plate target state list generating unit is used for splicing the abstract values with the equal byte length according to the sequence of the original key word fields in the protocol data to form an abstract value sequence of the text to be detected, and the blind plate target state list is formed by the abstract value sequence of the text to be detected.
In addition, to achieve the above object, the present application further provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the coal chemical industry solution self-matching method as described above.
In addition, in order to achieve the above object, the present application further provides a storage medium, where a program or instructions are stored on the storage medium, and when the program or instructions are executed by the processor, the steps of the coal chemical industry technical solution self-matching method described above are implemented.
The beneficial effect that this application can realize:
compared with the prior art, when the technical scheme is imported, the comparison result is obtained by comparing the target state of the blind plate in the technical scheme with the real-time state of the blind plate, namely the comparison of the technical scheme with the real-time state can be realized, and the comparison result of the target state of the blind plate and the real-time state of the blind plate is the comparison result of the technical scheme with the real-time state.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flow chart of an embodiment of a self-matching method according to the technical solution of the coal chemical industry of the present application;
FIG. 2 is a diagram illustrating a suffix tree structure generated in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a technical scheme self-matching method in the coal chemical industry, and in a first embodiment of the technical scheme self-matching method in the coal chemical industry, reference is made to fig. 1. It should be noted that, according to different requirements, the order of the steps in the flowcharts can be changed, and some steps can be omitted.
The technical scheme self-matching method in the coal chemical industry comprises the following steps:
step S1, receiving a technical scheme, extracting blind plate parameters in the technical scheme, and establishing a blind plate target state list through the blind plate parameters;
step S2, receiving the real-time parameters of the blind plate, and establishing a blind plate real-time state list through the real-time parameters of the blind plate;
and step S3, performing self-matching on the target state list and the real-time state list, and outputting a matching result.
The method comprises the following specific steps:
step S1, receiving the technical scheme, extracting the blind plate parameters in the technical scheme, and establishing a blind plate target state list through the blind plate parameters, which specifically comprises the following steps:
s11, receiving the technical scheme;
in this embodiment, the receiving method of the technical solution may be one of a voice method, a click method, and a touch method.
The technical scheme comprises background description, scheme targets and blind plate parameters of the technical scheme, wherein the blind plate parameters comprise blind plate names, blind plate codes, blind plate positions and blind plate states.
S12, extracting fields corresponding to the blind plate parameters in the technical scheme, coding the fields corresponding to the blind plate parameters and converting the fields into equal byte lengths to obtain coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in protocol data to form a coded value sequence of the text to be tested;
it should be noted that, in this embodiment, the field corresponding to the blind parameters is encoded and converted into an equal-byte length, where based on the international standard GB2312-80 of "chinese character information exchange code" (international code), the field corresponding to the blind parameters is converted from a chinese character into a binary string, so as to complete the encoding operation, and then the obtained binary string is converted into an equal-byte length binary string through a hash algorithm, so as to obtain an equal-byte length encoded value.
The Hash Algorithm employs one of a Message Digest (MD), a Secure Hash (SHA), or a Message Authentication Code (MAC). In this embodiment, the most common MD method is chosen, which can convert all binary strings of different lengths into 128-bit binary strings.
It should be noted that, in this embodiment, the coded values of the equal byte lengths are spliced to form a coded value sequence of the text to be tested according to the sequence of the fields corresponding to the blind parameters in the protocol data, where the sequence of the fields corresponding to the blind parameters in the protocol data refers to that the fields corresponding to the blind parameters are based on the international standard GB2312-80 of "chinese character information exchange code" (national standard code).
It should be noted that, in this embodiment, before the step of extracting the field corresponding to the blind plate parameter in the technical solution in step S12, the method further includes:
the technical scheme is subjected to grouping pretreatment, and the rules of the grouping pretreatment comprise:
the technical scheme comprises the steps that the blind plate parameters comprise blind plate codes, blind plate names, blind plate positions and blind plate states, the technical scheme is grouped according to the same blind plate positions, the technical scheme is grouped according to the same blind plate states, or the technical scheme is grouped according to the same blind plate positions and blind plate states.
The blind spot location may contain one or more of the following information: the device comprises a pipeline where the blind plate is located, the position type of the blind plate in the pipeline and the sequencing serial number of the blind plate in the pipeline where the blind plate is located, wherein the position type comprises an equipment pipeline interface, a front stop valve, a rear stop valve and a flange, and the blind plate is only in a through state and a blind position state. When the blind plate position includes the information of the sequencing serial number of the blind plate in the pipeline, the technical scheme can be grouped only by taking the same blind plate state as the basis; in other cases, one of the three packet preprocessing rules may be selected for grouping.
Grouping the technical schemes, fully considering that the blind plate positions or the blind plate states in part of the technical schemes are the same, and in the subsequent step of coding the fields corresponding to the blind plate parameters and converting the fields into equal byte lengths to obtain the coded values with the equal byte lengths, splicing the coded values with the equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in protocol data to form a coded value sequence of the text to be tested, the steps are only needed to be carried out once on the fields with the same blind plate positions or the fields with the blind plate states, so that the repeated same work is avoided, and the work efficiency is improved.
S13, carrying out positive sequence arrangement on the coded values with equal byte length, generating a suffix tree, and generating a suffix automaton based on the suffix tree, wherein the suffix automaton comprises the following steps:
s131, carrying out positive sequence arrangement on the coded values with the equal byte length to obtain a positive sequence set;
and calculating the number of character strings of the coding value with the equal byte length, wherein the number of the sequences in the forward sequence set is equal to the number of the character strings, and the acquisition process of the forward sequence set is as follows:
the ith sequence in the forward sequence set is equal to the coded value of the equal byte length minus the forward i-1 characters;
the first sequence in the forward sequence set is the coded value of the equal byte length, the second sequence is the coded value of the equal byte length minus a forward character, and the third sequence is the coded value of the equal byte length minus a forward two characters … …, the last sequence is the forward last character of the coded value of the equal byte length.
S132, generating a suffix tree according to the construction rule of the suffix tree and the forward sequence set;
the construction rule for the suffix number is as follows:
1) setting a root node, and taking the root node as a starting point;
2) selecting sequences in a forward sequence set, setting N-1 leaf nodes and 1 termination according to the number N of character strings, arranging a first character in the sequences on a connecting line between a root node and a first leaf node, arranging a second character in the sequences on a connecting line between the first leaf node and a second leaf node, and so on, and arranging a last character in the sequences on a connecting line between the N-1 th leaf node and the termination;
3) when a new structure (root node-leaf node-end) is generated, the characters arranged on the connecting lines of the root node and the first leaf node in the structure are checked to be compared with the characters arranged on the connecting lines of the root node and the first leaf node in all the structures generated in the front, if the characters are not the same, the characters are not merged, if the structures are the same, the characters arranged on the connecting lines between the first leaf node and the second leaf node in the 2 structures are continuously compared to be the same or not until the characters are different, then the leaf nodes at the upper ends corresponding to the same characters are merged, and the leaf nodes at the lower ends corresponding to the same characters are used as the leaf nodes kept as root.
4) Through the above 3 steps, the construction of the suffix tree is initially completed, and on this basis, the leaf nodes without branches are compressed to generate the final construction of the suffix tree, as shown in fig. 3.
S133, traversing all suffix trees, and generating a corresponding suffix automaton through a suffix link construction.
S14, matching the code value sequence of the text to be tested with the suffix automaton based on a heuristic jump rule to generate a character string to be tested, which specifically comprises the following steps:
according to a preset sequence, inputting the coded value sequences of the texts to be tested into a suffix automaton one by taking blocks as units for matching;
continuously searching a part matched with the suffix of the text to be detected and the prefix in the mode in the matching process, and gradually increasing the length of the suffix of the text to be detected until all the maximum matched prefixes are found;
and splicing all the text suffixes to be tested corresponding to the maximum matching prefixes according to a preset sequence to generate a character string to be tested.
It should be noted that, in this embodiment, matching is based on a BM algorithm, and in the matching process, each failed matching attempt can eliminate as many positions that cannot be matched as possible, so as to speed up the efficiency of converting the coded value sequence into the character string to be detected, and improve the accuracy of conversion.
S15, performing abstract calculation on the character string to be detected, cutting the generated abstract value according to a preset length, generating an abstract value with equal byte length and outputting the abstract value;
it should be noted that, in this embodiment, the digest algorithm (Hash function) is used to perform digest calculation on the character string to be detected, and a digest value generated by the digest calculation is a binary string with a fixed length of 128 bits. For the use and understanding of users, the generated digest value is converted from binary to hexadecimal to obtain a 32-bit generated digest value, and on the basis, the first 8 bits and the last 8 bits of the digest value are removed, i.e. a 16-bit digest value with equal byte length is obtained.
When the field information corresponding to the blind plate name, the blind plate code, the blind plate position, the blind plate state and the like is re-recorded, the field length is different, so that in the matching process, the generated abstract value is cut according to the preset length, the character strings corresponding to the keywords are simple and clear, the character strings corresponding to the blind plate name, the blind plate code, the blind plate position and the blind plate state are not cut disorderly, and the matching result is caused to be wrong.
And S16, splicing the abstract values with equal byte length according to the sequence of the fields corresponding to the blind plate parameters in the protocol data to form an abstract value sequence of the text to be tested, and constructing a blind plate target state list by the abstract value sequence.
And splicing the abstract values with equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in the protocol data to form an abstract value sequence of the text to be tested, and formulating a corresponding splicing rule, so that the sequence disorder of the abstract values with equal byte lengths corresponding to the blind plate parameters in the abstract value sequence can be prevented, and the blind plate target state which is successfully matched is not successfully matched.
Step S2, receiving the real-time parameters of the blind plate, and building a blind plate real-time state list through the real-time parameters of the blind plate, which specifically comprises the following steps:
s21, receiving the real-time parameters of the blind plate sent by the client;
s22, performing grouping pretreatment on the real-time parameters of the blind plate, extracting fields corresponding to the real-time parameters of the blind plate, encoding the fields corresponding to the real-time parameters of the blind plate, converting the fields into equal byte lengths, obtaining encoding values of the equal byte lengths, and splicing the encoding values of the equal byte lengths according to the sequence of the fields corresponding to the real-time parameters of the blind plate in protocol data to form an encoding value sequence of a text to be matched;
s23, carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, and generating a suffix automaton based on the suffix tree;
s24, matching the coded value sequence of the text to be matched with the suffix automaton based on a heuristic jump rule to generate a character string to be matched;
s25, performing abstract calculation on the character string to be matched, cutting the generated abstract value according to a preset length, generating an abstract value with equal byte length and outputting the abstract value;
and S26, splicing the abstract values with equal byte length according to the sequence of the original key word fields in the protocol data to form an abstract value sequence of the text to be matched, and constructing a blind plate real-time state list by the abstract value sequence of the text to be matched.
In this embodiment, the manner of acquiring the blind plate parameters of the client in step S2 is as follows:
and recording the standing accounts of all the blind plates in the pipeline in a client side provided with a blind plate management system, wherein the standing accounts comprise daily work plans of the pipeline. An engineer holds a client side by hand every day, goes to the site, firstly confirms the state of a blind plate by manual work according to the work plan of the day, manually inputs the state of the blind plate to the client side, then shoots an image of the blind plate by a camera module carried by the client side, and confirms the state of the blind plate in the image by adopting an image algorithm, wherein the adopted image algorithm comprises image segmentation and target detection and identification and can be realized by adopting the existing algorithm. And if the state of the blind plate confirmed manually is the same as the state of the blind plate confirmed through the image algorithm, the blind plate real-time state database in the client updates the blind plate parameters in real time.
The client and the web page are connected through a network, so that the network may be a wired network or a Wireless network, such as radio, Wireless Fidelity (WIFI), cellular, satellite, broadcast, and the like. And the client end finishes the point detection, and sends each group of blind plate parameters in the completely updated blind plate real-time state database to the webpage end in a form of a table through the network.
The specific implementation steps of step S22 to step S26 are the same as those of step S12 to step S16, and therefore are not described again in this embodiment. The specific implementation steps of step S22 to step S26 are the same as those of step S12 to step S16, so that the blind plate real-time parameters in the blind plate real-time status list and the blind plate target parameters in the blind plate target status list are character strings with equal byte length, and the matching speed is increased.
Step S3, performing self-matching between the target status list and the real-time status list, and outputting a matching result, which specifically includes:
selecting a group of blind plate parameters from the target state list;
selecting a blind plate code or a blind plate name contained in the blind plate parameter as a query basis;
extracting the real-time parameters of the blind plate from the real-time state list according to the query basis;
comparing the blind plate parameters with the real-time blind plate parameters one by one, and if the blind plate parameters are consistent with the real-time blind plate parameters, successfully matching;
and repeating the step of selecting a group of blind plate parameters from the target state list until the blind plate parameters are compared with the real-time blind plate parameters one by one, and if all the blind plate parameters are consistent, successfully matching the blind plate parameters until all the blind plates in the target state list are matched.
In a second embodiment of the self-matching method according to the technical solution of the coal chemical industry, on the basis of the first embodiment, in the second embodiment, the step S3 of self-matching the target status list and the real-time status list and outputting a matching result includes:
sequencing a plurality of groups of blind plate parameters contained in the target state list according to a preset rule, and giving serial number identification;
sequentially selecting a group of blind plate parameters from the target state list;
extracting the blind plate real-time parameters of the blind plate corresponding to the serial number from the real-time state list according to the serial number corresponding to the group of blind plate parameters, wherein the multiple groups of blind plate real-time parameters contained in the real-time state list are respectively associated with a single serial number;
comparing the blind plate parameters with the real-time blind plate parameters one by one, and if the blind plate parameters are consistent with the real-time blind plate parameters, successfully matching;
and repeating the step of sequentially selecting a group of blind plate parameters from the target state list until the blind plate parameters are compared with the real-time blind plate parameters one by one, and if all the blind plate parameters are consistent, successfully matching the blind plate parameters until all the blind plates in the target state list are matched.
In the step of sorting the multiple groups of blind panel parameters included in the target state list according to a preset rule and giving serial number identifiers, the preset rule is the same as the sorting rule of the multiple groups of blind panel real-time parameters included in the real-time state list, and the preset rule includes:
the blind plate parameters comprise blind plate positions, wherein the blind plate positions comprise pipelines in which blind plates are located, the position types of the blind plates in the pipelines and the sequencing serial numbers of the blind plates in the pipelines;
acquiring a pipeline serial number identifier according to a pipeline where the blind plate is located, and acquiring a position type identifier according to the position type of the blind plate in the pipeline;
and sequencing the multiple groups of blind plate parameters according to the pipeline serial number identifiers, sequencing the blind plate parameters with the same pipeline serial number according to the position types, and sequencing the blind plate parameters with the same position types according to the sequencing serial numbers.
When the technical scheme is imported, the comparison result is obtained by comparing the target state of the blind plate in the technical scheme with the real-time state of the blind plate, namely, the comparison between the technical scheme and the real-time state can be realized, and the comparison result between the target state of the blind plate and the real-time state of the blind plate is the comparison result between the technical scheme and the real-time state.
The application still provides a coal chemical industry technical scheme self-matching device, includes:
the first acquisition module is used for receiving the real-time parameters of the blind plate and establishing a real-time state list of the blind plate according to the real-time parameters of the blind plate;
the second acquisition module is used for receiving the technical scheme, extracting the blind plate parameters in the technical scheme and establishing a blind plate target state list through the blind plate parameters;
and the matching module is used for carrying out self-matching on the target state list and the real-time state list and outputting a matching result.
Optionally, the first obtaining module includes:
the first data receiving unit is used for receiving the real-time parameters of the blind plate sent by the client;
the first preprocessing unit is used for carrying out grouping preprocessing on the blind plate real-time parameters, extracting fields corresponding to the blind plate real-time parameters, coding the fields corresponding to the blind plate real-time parameters, converting the fields into equal byte lengths, obtaining coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate real-time parameters in protocol data to form a coded value sequence of a text to be matched;
the character string generating unit to be matched is used for carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, generating a suffix automaton based on the suffix tree, matching the coded value sequence of the text to be matched with the suffix automaton based on a heuristic skip rule and generating a character string to be matched;
the first abstract value generating unit is used for carrying out abstract calculation on the character string to be matched, cutting off the generated abstract value according to a preset length, and generating and outputting an abstract value with equal byte length;
and the blind plate real-time state list generating unit is used for splicing the abstract values with the equal byte length according to the sequence of the original key word fields in the protocol data to form an abstract value sequence of the text to be matched, and the blind plate real-time state list is formed by the abstract value sequence of the text to be matched.
Optionally, the second obtaining module includes:
a second data receiving unit, configured to receive a technical solution;
the second preprocessing unit is used for performing grouping preprocessing on the technical scheme, extracting fields corresponding to the blind plate parameters in the technical scheme, coding the fields corresponding to the blind plate parameters, converting the fields into equal byte lengths, obtaining coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in protocol data to form a coded value sequence of a text to be tested;
the character string generating unit to be tested is used for carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, generating a suffix automaton based on the suffix tree, matching the coded value sequence of the text to be tested with the suffix automaton based on a heuristic skip rule and generating a character string to be tested;
the second abstract value generating unit is used for carrying out abstract calculation on the character string to be detected, cutting off the generated abstract value according to a preset length, and generating and outputting an abstract value with equal byte length;
and the blind plate target state list generating unit is used for splicing the abstract values with the equal byte length according to the sequence of the original key word fields in the protocol data to form an abstract value sequence of the text to be detected, and the blind plate target state list is formed by the abstract value sequence of the text to be detected.
The present application also provides an electronic device, as shown in fig. 3, the electronic device includes: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the electronic device may further include RF (Radio Frequency) circuitry, sensors, audio circuitry, WiFi modules, and the like.
Those skilled in the art will appreciate that the electronic device configuration shown in fig. 3 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 3, the memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a coal chemical industry solution self-matching program. The operating system is a program for managing and controlling hardware and software resources of the electronic equipment, and supports the running of a technical scheme self-matching program and other software or programs in the coal chemical industry.
In the electronic device shown in fig. 3, the user interface 1003 is mainly used for connecting to a client and performing data communication with the client, such as receiving blind data sent by the client; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be configured to call the coal chemical industry solution self-matching program stored in the memory 1005 and execute the steps of the coal chemical industry solution self-matching method as described above.
The specific implementation manner of the electronic device is basically the same as that of each embodiment of the self-matching method of the technical scheme in the coal chemical industry, and is not described herein again.
The application also provides a storage medium, wherein a program or instructions are stored on the storage medium, and when being executed by the processor, the program or instructions realize the steps of the technical scheme self-matching method in the coal chemical industry.
The specific implementation of the storage medium of the present application is substantially the same as each embodiment of the above-mentioned self-matching method for the technical solution in the coal chemical industry, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (9)

1. A technical scheme self-matching method in the coal chemical industry is characterized by comprising the following steps:
receiving a technical scheme, extracting blind plate parameters in the technical scheme, and establishing a blind plate target state list through the blind plate parameters;
receiving real-time parameters of a blind plate, and establishing a real-time state list of the blind plate according to the real-time parameters of the blind plate;
performing self-matching on the target state list and the real-time state list, and outputting a matching result;
the step of receiving the technical scheme, extracting the blind plate parameters in the technical scheme, and establishing a blind plate target state list through the blind plate parameters comprises the following steps:
receiving a technical scheme;
extracting fields corresponding to the blind plate parameters in the technical scheme, coding the fields corresponding to the blind plate parameters and converting the fields into equal byte lengths to obtain coded values of the equal byte lengths, and splicing the coded values of the equal byte lengths according to the sequence of the fields corresponding to the blind plate parameters in protocol data to form a coded value sequence of a text to be tested;
carrying out positive sequence arrangement on the coded values with the equal byte length, generating a suffix tree, and generating a suffix automaton based on the suffix tree;
matching the coded value sequence of the text to be detected with the suffix automaton based on a heuristic jump rule to generate a character string to be detected;
performing abstract calculation on the character string to be detected, cutting off the generated abstract value according to a preset length, and generating and outputting the abstract value with equal byte length;
and splicing the abstract values with the equal byte length according to the sequence of fields corresponding to the blind plate parameters in protocol data to form an abstract value sequence of the text to be tested, and constructing a blind plate target state list by using the abstract value sequence.
2. The coal chemical industry technical scheme self-matching method as claimed in claim 1, wherein before the step of extracting the field corresponding to the blind plate parameter in the technical scheme, the method further comprises:
the technical scheme is subjected to grouping pretreatment, and the rules of the grouping pretreatment comprise:
the technical scheme comprises the steps that the blind plate parameters comprise blind plate codes, blind plate names, blind plate positions and blind plate states, the technical scheme is grouped according to the same blind plate positions, the technical scheme is grouped according to the same blind plate states, or the technical scheme is grouped according to the same blind plate positions and blind plate states.
3. The coal chemical industry technical solution self-matching method as set forth in claim 1, wherein the step of arranging the coded values of the equal byte length in a positive order, generating a suffix tree, and generating a suffix automaton based on the suffix tree comprises:
carrying out positive sequence arrangement on the coded values with the equal byte length to obtain a positive sequence set;
generating a suffix tree according to the construction rule of the suffix tree and the forward sequence set;
and traversing all suffix trees, and generating a corresponding suffix automaton through a suffix link construction.
4. The coal chemical industry technical solution self-matching method as claimed in claim 1, wherein the step of matching the coded value sequence of the text to be tested with the suffix automaton based on heuristic skip rules to generate a character string to be tested includes:
according to a preset sequence, inputting the coded value sequences of the texts to be tested into a suffix automaton one by taking blocks as units for matching;
continuously searching a part matched with the suffix of the text to be detected and the prefix in the mode in the matching process, and gradually increasing the length of the suffix of the text to be detected until all the maximum matched prefixes are found;
and splicing all the text suffixes to be tested corresponding to the maximum matching prefixes according to a preset sequence to generate a character string to be tested.
5. The coal chemical industry technical solution self-matching method as set forth in claim 1, wherein the step of self-matching the target status list and the real-time status list and outputting a matching result comprises:
selecting a group of blind plate parameters from the target state list;
selecting a blind plate code or a blind plate name contained in the blind plate parameter as a query basis;
extracting the real-time parameters of the blind plate from the real-time state list according to the query basis;
comparing the blind plate parameters with the real-time blind plate parameters one by one, and if the blind plate parameters are consistent with the real-time blind plate parameters, successfully matching;
and repeating the step of selecting a group of blind plate parameters from the target state list until the blind plate parameters are compared with the real-time blind plate parameters one by one, and if all the blind plate parameters are consistent, successfully matching the blind plate parameters until all the blind plates in the target state list are matched.
6. The coal chemical industry technical solution self-matching method as set forth in claim 1, wherein the step of self-matching the target status list and the real-time status list and outputting a matching result comprises:
sequencing a plurality of groups of blind plate parameters contained in the target state list according to a preset rule, and giving serial number identification;
sequentially selecting a group of blind plate parameters from the target state list;
extracting the blind plate real-time parameters of the blind plates corresponding to the serial numbers from the real-time state list according to the serial numbers corresponding to the blind plate parameters, wherein the multiple groups of blind plate real-time parameters contained in the real-time state list are respectively associated with a single serial number;
comparing the blind plate parameters with the real-time blind plate parameters one by one, and if the blind plate parameters are consistent with the real-time blind plate parameters, successfully matching;
and repeating the step of sequentially selecting a group of blind plate parameters from the target state list until the blind plate parameters are compared with the real-time blind plate parameters one by one, and if all the blind plate parameters are consistent, successfully matching the blind plate parameters until all the blind plates in the target state list are matched.
7. The coal chemical industry technical solution self-matching method according to claim 6, wherein in the step of sorting the plurality of sets of blind panel parameters included in the target state list according to a preset rule and giving serial number identifiers, the preset rule is the same as the sorting rule of the plurality of sets of blind panel real-time parameters included in the real-time state list, and the preset rule includes:
the blind plate parameters comprise blind plate positions, wherein the blind plate positions comprise pipelines in which blind plates are located, the position types of the blind plates in the pipelines and the sequencing serial numbers of the blind plates in the pipelines;
acquiring a pipeline serial number identifier according to a pipeline where the blind plate is located, and acquiring a position type identifier according to the position type of the blind plate in the pipeline;
and sequencing the multiple groups of blind plate parameters according to the pipeline serial number identifiers, sequencing the blind plate parameters with the same pipeline serial number according to the position types, and sequencing the blind plate parameters with the same position types according to the sequencing serial numbers.
8. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the coal chemical industry solution self-matching method of any one of claims 1 to 7.
9. A storage medium storing a program or instructions thereon, which when executed by a processor, implement the steps of the coal chemical industry solution self-matching method of any one of claims 1 to 7.
CN202111132585.9A 2021-09-27 2021-09-27 Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry Active CN113569103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111132585.9A CN113569103B (en) 2021-09-27 2021-09-27 Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111132585.9A CN113569103B (en) 2021-09-27 2021-09-27 Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry

Publications (2)

Publication Number Publication Date
CN113569103A CN113569103A (en) 2021-10-29
CN113569103B true CN113569103B (en) 2022-01-07

Family

ID=78174738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111132585.9A Active CN113569103B (en) 2021-09-27 2021-09-27 Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry

Country Status (1)

Country Link
CN (1) CN113569103B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109917646A (en) * 2019-02-27 2019-06-21 武汉中电节能有限公司 A kind of district cooling and heating equipment optimization operating system and method
CN111738631A (en) * 2020-08-25 2020-10-02 北京康斯特仪表科技股份有限公司 Instrument management system, management platform, industrial instrument and method
CN112035201A (en) * 2020-08-24 2020-12-04 珠海格力电器股份有限公司 Device parameter display method and device, computer device and storage medium
US10924358B1 (en) * 2019-10-07 2021-02-16 Dell Products L.P. Method and system for multivariate profile-based host operational state classification
CN112381972A (en) * 2020-11-10 2021-02-19 珠海优特电力科技股份有限公司 Method and device for confirming work position, storage medium, and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150104436A1 (en) * 2013-10-13 2015-04-16 Chang Gung Medical Foundation, Linkou Branch Application and pharmaceutical composition of preactivated and disaggregated shape-changed platelets
CN209385699U (en) * 2018-11-28 2019-09-13 无锡市华尔泰机械制造有限公司 A kind of fast opening blind

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109917646A (en) * 2019-02-27 2019-06-21 武汉中电节能有限公司 A kind of district cooling and heating equipment optimization operating system and method
US10924358B1 (en) * 2019-10-07 2021-02-16 Dell Products L.P. Method and system for multivariate profile-based host operational state classification
CN112035201A (en) * 2020-08-24 2020-12-04 珠海格力电器股份有限公司 Device parameter display method and device, computer device and storage medium
CN111738631A (en) * 2020-08-25 2020-10-02 北京康斯特仪表科技股份有限公司 Instrument management system, management platform, industrial instrument and method
CN112381972A (en) * 2020-11-10 2021-02-19 珠海优特电力科技股份有限公司 Method and device for confirming work position, storage medium, and electronic device

Also Published As

Publication number Publication date
CN113569103A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
RU2608464C2 (en) Device, method and network server for detecting data structures in data stream
WO2022126966A1 (en) Interface parameter verification and conversion method and apparatus, and device and storage medium
CN111339382B (en) Character string data retrieval method, device, computer equipment and storage medium
US20050027731A1 (en) Compression dictionaries
CN111262876B (en) Data processing method, device and equipment based on block chain and storage medium
CN108733317B (en) Data storage method and device
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN101369278B (en) Approximate adaptation method and apparatus
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
CN113569103B (en) Technical scheme self-matching method, electronic equipment and storage medium in coal chemical industry
CN108243015B (en) Call bill information extraction method, call bill server and network management server
CN108829872B (en) Method, device, system and storage medium for rapidly processing lossless compressed file
CN111355821A (en) Connection code generation method, device, electronic device and storage medium
CN114025024B (en) Data transmission method and device
CN112559546B (en) Database synchronization method, database synchronization device, computer equipment and readable storage medium
CN113204683B (en) Information reconstruction method and device, storage medium and electronic equipment
CN113221173A (en) Ciphertext processing method, device, equipment and storage medium
CN112434231B (en) Data processing method and device and electronic equipment
CN115276889A (en) Decoding processing method, decoding processing device, computer equipment and storage medium
CN113872963A (en) Message protocol rapid analysis method and system based on free label splicing technology
CN113536767A (en) Data processing method, device, equipment, medium and computer program product
CN112241621A (en) Method and device for identifying client environment through user agent
JP4456574B2 (en) Compressed data transmission method
CN112532414A (en) Method, device and equipment for determining ISP attribution and computer storage medium
CN116910756B (en) Detection method for malicious PE (polyethylene) files

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