CN117034200A - Industrial control rule merging method and device - Google Patents
Industrial control rule merging method and device Download PDFInfo
- Publication number
- CN117034200A CN117034200A CN202311110277.5A CN202311110277A CN117034200A CN 117034200 A CN117034200 A CN 117034200A CN 202311110277 A CN202311110277 A CN 202311110277A CN 117034200 A CN117034200 A CN 117034200A
- Authority
- CN
- China
- Prior art keywords
- rule
- industrial control
- parameter
- rules
- merging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请公开一种工控规则合并方法及装置,涉及计算机技术领域。本申请的方法包括:获取每个待合并的工控规则中的规则参数要素,其中,所述工控规则中包含至少一个所述规则参数要素;基于所述规则参数要素,确定每个工控规则对应的规则类型;基于所述规则类型,对相应的工控规则执行合并操作。
This application discloses an industrial control rule merging method and device, which relates to the field of computer technology. The method of this application includes: obtaining the rule parameter elements in each industrial control rule to be merged, wherein the industrial control rule contains at least one of the rule parameter elements; based on the rule parameter elements, determining the corresponding to each industrial control rule Rule type; based on the rule type, perform a merge operation on the corresponding industrial control rules.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for merging industrial control rules.
Background
Along with the development of technology, the use of industrial control equipment is also gradually intelligent, the flow needs to be controlled in the use process of the industrial control equipment, the current flow needs to be detected by means of a certain rule, and along with the increase of the application scene and the use duration of the industrial control equipment, the industrial control rule needs to be increased gradually.
At present, in the management process of the existing industrial control rules, the existing industrial control rules are generally only recorded, but in practical application, when the application scene used by the industrial control equipment is continuously increased and the service time is continuously increased, the number of the recorded industrial control rules is also increased, so that the existing industrial control equipment is difficult to store so many industrial control rules under the condition of limited storage space, and therefore, how to effectively manage the industrial control rules and avoid the problem that the industrial control rules occupy the storage space excessively is a problem to be solved in the field.
Disclosure of Invention
The embodiment of the application provides an industrial control rule merging method and device, which mainly aim to realize the industrial control rule merging method to effectively manage industrial control rules, thereby solving the problem that the industrial control rules of industrial control equipment excessively occupy storage space.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
in a first aspect, the present application provides an industrial control rule merging method, where the method includes:
acquiring rule parameter elements in each industrial control rule to be combined, wherein the industrial control rule comprises at least one rule parameter element;
determining a rule type corresponding to each industrial control rule based on the rule parameter elements;
and based on the rule type, executing merging operation on the corresponding industrial control rule.
Optionally, each rule type corresponds to N priorities, where N is a positive integer;
the step of executing the merging operation on the corresponding industrial control rule based on the rule type comprises the following steps:
n priorities corresponding to the rule types respectively are determined;
determining N batches of rules to be combined based on the determined N priorities, wherein the priorities of industrial control rules in the rules to be combined in the same batch are the same;
And executing merging operation on the rules to be merged of the N batches according to the sorting of the N priorities.
Optionally, the executing the merging operation on the rules to be merged of the N batches includes:
and executing the merging operation on the rules to be merged belonging to the same rule type in the rules to be merged of each of the N batches.
Optionally, the method further comprises:
determining whether the number of the industrial control rules accords with a preset termination condition; wherein the preset termination condition includes: the number of the industrial control rules is lower than a preset number, or the ratio of the number of the industrial control rules to the number of the initial industrial control rules is lower than a preset ratio;
if the number of the industrial control rules accords with the preset termination condition, terminating execution of the merging operation;
and if the number of the industrial control rules is determined to be not in accordance with the preset termination condition, executing the merging operation.
Optionally, each rule parameter element includes at least one rule parameter, and each rule parameter has a corresponding parameter classification, where the rule parameter is used to trigger the industrial control rule;
based on the rule parameter elements, determining the rule type corresponding to each industrial control rule comprises the following steps:
And determining the rule type corresponding to each industrial control rule based on the parameter classification corresponding to each rule parameter included by the rule parameter element.
Optionally, the executing the merging operation on the corresponding industrial control rule based on the rule type includes:
in the industrial control rules, acquiring industrial control rules with the same parameter classification, and recording the industrial control rules as first rules;
and respectively executing merging operation on rule parameters in the plurality of first rules according to the parameter classification.
Optionally, each parameter class corresponding to each to-be-combined industrial control rule has at least one rule parameter, and the method further includes:
among the industrial control rules to be combined, determining the industrial control rule with the target priority as a second rule;
determining a set formed by rule parameters contained in each second rule as a first parameter set;
determining all parameter classifications corresponding to the second rule, and determining a set formed by rule parameters under each parameter classification as a second parameter set to obtain a plurality of second parameter sets corresponding to all parameter classifications;
calculating the plurality of second parameter sets by using a Cartesian product algorithm to obtain a third parameter set, wherein elements in the third parameter set are combination sequences of rule parameters in each second parameter set;
When the third parameter set matches the first parameter set, determining that the second rule meets a merging condition, and/or executing merging on the second rule.
Optionally, the method further comprises:
when the third parameter set is not matched with the first parameter set, part of the industrial control rules in all the second rules are redetermined as the second rules, and the first parameter set and the third parameter set are redetermined respectively;
when the redetermined first parameter set matches the redetermined third parameter set, determining that the redetermined second rule meets the merging condition, and/or performing merging on the redetermined second rule.
Optionally, the redefining a part of the industrial control rules in all the second rules as the second rules, and redefining the first parameter set and the third parameter set respectively include:
screening out part of industrial control rules from all the second rules by using a preset loop body algorithm to serve as the redetermined second rules; and the preset loop body algorithm is used for reducing the rule number of the second rule when the first parameter set is not matched with the third parameter set, and redefining the second rule with the reduced rule number as the second rule until the redetermined first parameter set is matched with the redetermined third parameter set or the number of the industrial control rules is reduced to a preset value.
Optionally, the method further comprises:
when the number of the industrial control rules after the preset times of merging operation is determined to still not meet the preset termination condition, in the industrial control rules after the preset times of merging operation, rule parameters under the same parameter classification are subjected to merging operation, and the same rule parameters in the rule parameters after the merging operation are subjected to de-duplication to obtain a fourth parameter set;
and determining the fourth parameter set as a merged rule parameter.
Optionally, the executing the merging operation on the corresponding industrial control rule based on the rule type includes at least one of the following:
when the rule type is an address type, address extraction is respectively carried out on rule parameters of each industrial control rule to obtain a plurality of address information, and the address information is combined to obtain combined address information; the combined address information comprises an address range formed by a plurality of address information and/or an address set formed by a plurality of address scattered points;
when the rule type is a function code type, respectively extracting the function codes of the parameters of each industrial control rule to obtain a plurality of function codes, and de-duplicating the plurality of function codes to obtain combined function codes;
When the rule type is a value class, respectively extracting values from rule parameters of each industrial control rule to obtain a plurality of values, and combining the plurality of values to obtain a combined value, wherein the combined value comprises a value range formed by the plurality of values and/or a value set formed by a plurality of value scattered points;
when the rule type is a numerical range type, respectively extracting the numerical ranges of rule parameters of each industrial control rule to obtain a plurality of numerical ranges, and calculating a union of the numerical ranges to obtain a combined numerical range;
when the rule types are character strings and the rule parameters are multiple, extracting the character strings from the rule parameters of each industrial control rule to obtain multiple character strings, determining the same part and different parts in the multiple character strings, calculating the union of the different parts, and determining the character strings formed by the union of the same part and the different parts as the combined character strings.
Optionally, before said determining the same part and different parts of the plurality of character strings, the method further comprises:
When the rule type is a character string, determining the similarity between any two character strings in a plurality of character strings based on a preset similarity algorithm, wherein the similarity is equal to the ratio between the number of the same characters in the two character strings and the number of all characters after the duplicate of the two character strings is removed;
and if the similarity reaches a preset similarity threshold, determining the same part and different parts in the corresponding two character strings until the same part and different parts in the plurality of character strings are obtained.
In a second aspect, the present application further provides an industrial control rule merging device, including:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring rule parameter elements in each industrial control rule to be combined, and the industrial control rule comprises at least one rule parameter element;
the first determining unit is used for determining the rule type corresponding to each industrial control rule based on the rule parameter elements;
and the execution unit is used for executing the merging operation on the corresponding industrial control rule based on the rule type.
Optionally, each rule type corresponds to N priorities, where N is a positive integer;
the execution unit includes:
the first determining module is used for determining N priorities corresponding to the rule types respectively;
The second determining module is used for determining N batches of rules to be combined based on the determined N priorities, wherein the priorities of the industrial control rules in the rules to be combined in the same batch are the same;
and the first execution module is used for executing the merging operation on the rules to be merged of the N batches according to the N priority orders.
Optionally, the first execution module is specifically configured to execute the merging operation on the rule to be merged belonging to the same rule type in the rule to be merged of each of the N batches.
Optionally, the apparatus further includes:
the second determining unit is used for determining whether the number of the industrial control rules accords with a preset termination condition; wherein the preset termination condition includes: the number of the industrial control rules is lower than a preset number, or the ratio of the number of the industrial control rules to the number of the initial industrial control rules is lower than a preset ratio;
the first operation unit is used for stopping executing the merging operation if the number of the industrial control rules accords with the preset termination condition;
and the second operation unit is used for executing the merging operation if the number of the industrial control rules is determined to be not in accordance with the preset termination condition.
Optionally, each rule parameter element includes at least one rule parameter, and each rule parameter has a corresponding parameter classification, where the rule parameter is used to trigger the industrial control rule;
The first determining unit is specifically configured to determine a rule type corresponding to each industrial control rule based on a parameter classification corresponding to each rule parameter included in the rule parameter element.
Optionally, the execution unit includes:
the acquisition module is used for acquiring the industrial control rule with the same parameter classification from the industrial control rules and recording the industrial control rule as a first rule;
and the second execution module is used for respectively executing merging operation on rule parameters in the plurality of first rules according to the parameter classification.
Optionally, each parameter class corresponding to each to-be-combined industrial control rule has at least one rule parameter, and the execution unit further includes:
the third determining module is used for determining the industrial control rule with the target priority as a second rule in the industrial control rules to be combined;
a fourth determining module, configured to determine a set of rule parameters included in each of the second rules as a first parameter set;
a fifth determining module, configured to determine all parameter classifications corresponding to the second rule, determine a set formed by rule parameters under each parameter classification as a second parameter set, and obtain a plurality of second parameter sets corresponding to all parameter classifications;
The calculation module is used for calculating the plurality of second parameter sets by using a Cartesian product algorithm to obtain a third parameter set, wherein elements in the third parameter set are combined sequences of rule parameters in each second parameter set;
a sixth determining module, configured to determine that the second rule meets a merging condition when the third parameter set matches the first parameter set, and/or perform merging on the second rule.
Optionally, the execution unit further includes:
a seventh determining module, configured to re-determine, when the third parameter set does not match the first parameter set, a part of industrial control rules in all second rules as the second rules, and re-determine the first parameter set and the third parameter set respectively;
an eighth determining module is configured to determine that the redetermined second rule meets the merging condition and/or perform merging on the redetermined second rule when the redetermined first parameter set matches the redetermined third parameter set.
Optionally, the seventh determining module is specifically configured to screen a part of the industrial control rules from all the second rules by using a preset cyclic body algorithm as the redetermined second rules; and the preset loop body algorithm is used for reducing the rule number of the second rule when the first parameter set is not matched with the third parameter set, and redefining the second rule with the reduced rule number as the second rule until the redetermined first parameter set is matched with the redetermined third parameter set or the number of the industrial control rules is reduced to a preset value.
Optionally, the apparatus further includes:
the third operation unit is used for taking the rule parameters under the same parameter classification from the industrial control rules after the preset times of merging operation are executed when the number of the industrial control rules after the preset times of merging operation is not met with the preset termination condition, and carrying out de-duplication on the same rule parameters in the rule parameters after the union operation to obtain a fourth parameter set;
and the third determining unit is used for determining the fourth parameter set as the rule parameter after combination.
Optionally, the execution unit includes:
the first merging module is used for respectively extracting the address of the rule parameters of each industrial control rule when the rule type is an address type to obtain a plurality of address information, and merging the plurality of address information to obtain merged address information; the combined address information comprises an address range formed by a plurality of address information and/or an address set formed by a plurality of address scattered points;
the second merging module is used for extracting the function codes of the parameters of each industrial control rule respectively when the rule type is the function code type to obtain a plurality of function codes, and de-duplicating the plurality of function codes to obtain merged function codes;
The third merging module is used for extracting the values from the rule parameters of each industrial control rule respectively when the rule type is a value class to obtain a plurality of values, merging the plurality of values to obtain a merged value, wherein the merged value comprises a value range formed by the plurality of values and/or a value set formed by a plurality of value scattered points;
the fourth merging module is used for extracting the numerical ranges of the rule parameters of each industrial control rule respectively when the rule type is the numerical range type to obtain a plurality of numerical ranges, and calculating the union of the numerical ranges to obtain a merged numerical range;
and a fifth merging module, configured to, when the rule type is a string type and the rule parameters are multiple, respectively perform string extraction on the rule parameters of each industrial control rule to obtain multiple strings, determine the same part and different parts in the multiple strings, calculate the union of the different parts, and determine the string formed by the union of the same part and the different parts as a merged string.
Optionally, the execution unit further includes:
The similarity determining module is used for determining the similarity between any two character strings in the plurality of character strings based on a preset similarity algorithm when the rule type is a character string, wherein the similarity is equal to the ratio between the number of the same characters in the two character strings and the number of all characters after the duplication of the two character strings;
and the character part determining module is used for determining the same part and different parts in the corresponding two character strings until the same part and different parts in the plurality of character strings are obtained if the similarity reaches a preset similarity threshold value.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is controlled to execute the method for merging industrial control rules of the terminal device according to the first aspect.
In a fourth aspect, an embodiment of the present application provides an industrial control rule merging device, where the device includes a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; and executing the industrial control rule merging method of the terminal equipment according to the first aspect when the program instruction runs.
By means of the technical scheme, the technical scheme provided by the application has at least the following advantages:
the application provides an industrial control rule merging method and device, which can firstly acquire rule parameter elements in each industrial control rule to be merged, wherein the industrial control rule comprises at least one rule parameter element; then, determining a rule type corresponding to each industrial control rule based on the rule parameter elements; and finally, based on the rule type, executing the merging operation on the corresponding industrial control rule, thereby realizing the merging function of the industrial control rule. Compared with the prior art, the method and the device can classify the industrial control rules based on rule parameter elements in the industrial control rules to obtain rule types corresponding to each industrial control rule, and then combine the corresponding industrial control rules based on the rule types, so that the effect of combining the industrial control rules in the process of recording and collecting the industrial control rules can be realized, the data of the industrial control rules stored in the industrial control equipment can be reduced after the combination, the problem that more industrial control rules are difficult to store under the condition of limited storage space is avoided, and the problem that the combination is performed according to the rule types after the rule types are determined based on the rule parameter elements in the combination process, namely, the corresponding types can be selected according to different requirements for different rule types, the number of the industrial control rules is effectively reduced in the combination process, and the combination process has better controllability.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. In the drawings, wherein like or corresponding reference numerals indicate like or corresponding parts, there are shown by way of illustration, and not limitation, several embodiments of the application, in which:
FIG. 1 shows a flow chart of an industrial control rule merging method provided by an embodiment of the application;
FIG. 2 is a flowchart of another method for merging industrial control rules according to an embodiment of the present application;
fig. 2-a is a schematic diagram illustrating an implementation process of another industrial control rule merging method according to an embodiment of the present application;
fig. 2-B is a schematic diagram illustrating an implementation process of another industrial control rule merging method according to an embodiment of the present application;
fig. 2-C is a schematic diagram illustrating an implementation process of another industrial control rule merging method according to an embodiment of the present application;
Fig. 2-D is a schematic diagram illustrating an implementation process of another industrial control rule merging method according to an embodiment of the present application;
fig. 2-E is a schematic diagram illustrating an implementation process of another industrial control rule merging method according to an embodiment of the present application;
fig. 3 shows a block diagram of an industrial control rule merging device according to an embodiment of the present application;
fig. 4 shows a block diagram of another industrial control rule merging device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
The embodiment of the application provides an industrial control rule merging method, which is specifically shown in fig. 1, and comprises the following steps:
101. And acquiring rule parameter elements in each industrial control rule to be combined.
Wherein the industrial control rule comprises at least one rule parameter element.
In the embodiment of the present invention, the rule parameter elements of the industrial control rule may be understood as certain specific parameter elements in the industrial control rule, for example, in a conventional industrial control rule, including an execution behavior related to the industrial control rule itself, a triggering condition of how to trigger the execution behavior, or a rule parameter required for triggering. In the embodiment of the invention, the rule parameter element can be any one or more of an identifier of a triggering condition triggering a certain operation behavior, a content of the triggering condition, or a specific certain parameter, a certain type of parameter and an identifier of the parameter corresponding to the triggering of the certain operation behavior. Here, the specific selection of the rule parameter element may be selected based on the actual needs of the user.
Specifically, in order to facilitate the description of this embodiment and the following embodiments, the rule parameter element is described in terms of the content of the parameters required when the industrial control rule is triggered, that is, the rule parameters described above. In practical application, an industrial control rule can be simply regarded as two parts, wherein one part is a rule parameter for triggering the industrial control rule, and the other part is an operation behavior required to be executed after the rule is triggered. Therefore, in the process of merging industrial control rules, the merged industrial control rules generally have the same operation behavior, but different rule parameters. In this process, rule parameters are also classified into different categories, i.e., parameter classifications, and a particular such parameter classification may include: address class, function code class, numeric class, string class, numeric range class, etc.
102. And determining the rule type corresponding to each industrial control rule based on the rule parameter elements.
Based on the description of the foregoing steps, since different industrial control rules actually need to be divided into different classifications for merging when merging is performed subsequently under the condition that rule parameter elements are different, it is actually necessary to determine what rule type each industrial control rule actually corresponds to after the rule parameter elements are determined in the foregoing steps.
In this embodiment, the rule type determining process may be specifically performed in a manner of adding different labels to different rule parameter elements, and, of course, since the number of rule parameter elements included in an industrial control rule may be multiple different in practical application, there may be a case that one industrial control rule is determined to be multiple different rule types in the rule type determining process, or when a certain rule parameter element exists, all industrial control rules including the rule parameter element may be divided into one rule type, and industrial control rules of other rule parameter elements are divided into another rule type. The rule type, the number and the type of the rule types, which are determined for each specific industrial control rule are not limited herein, and may be selected based on the needs of the user. Specifically, as can be seen from the foregoing description of the steps, when the rule parameter element is exemplified by the rule parameter, in this step, the rule parameters in different industrial control rules can be actually used as the basis for classifying the industrial control rules, so as to determine the rule type of each industrial control rule. Of course, the industrial control rule may be classified in other manners to obtain different rule types, where, for example, the classification may be performed according to the number of rule parameters included in the industrial control rule, only one rule parameter is classified into one type, and the classification including a plurality of rule parameters is classified into another type. Here, any of the above manners may be adopted to divide the industrial control rule into different rule types, and the method is not limited herein, and may be selected according to actual needs of a user.
103. And executing merging operation on the corresponding industrial control rule based on the rule type.
After determining the rule type of each industrial control rule, the merging operation can be performed on the industrial control rule corresponding to the rule type, and because the merging operation is not necessarily performed on the basis of classifying the industrial control rules, the type merging is performed on the basis of the rule, and then in the practical application process of the method, a user can select one or more rule types from a plurality of different rule types to perform the merging operation based on own needs, so that the process of performing the merging operation can be determined to be more flexible and the industrial control rules can be merged with pertinence.
The application provides an industrial control rule merging method, in the embodiment of the application, rule parameter elements in each industrial control rule to be merged are firstly obtained, wherein the industrial control rule comprises at least one rule parameter element; then, determining a rule type corresponding to each industrial control rule based on the rule parameter elements; and finally, based on the rule type, executing the merging operation on the corresponding industrial control rule, thereby realizing the merging function of the industrial control rule. Compared with the prior art, the method and the device can classify the industrial control rules based on rule parameter elements in the industrial control rules to obtain rule types corresponding to each industrial control rule, and then combine the corresponding industrial control rules based on the rule types, so that the effect of combining the industrial control rules in the process of recording and collecting the industrial control rules can be realized, the data of the industrial control rules stored in the industrial control equipment can be reduced after the combination, the problem that more industrial control rules are difficult to store under the condition of limited storage space is avoided, and the problem that the combination is performed according to the rule types after the rule types are determined based on the rule parameter elements in the combination process, namely, the corresponding types can be selected according to different requirements for different rule types, the number of the industrial control rules is effectively reduced in the combination process, and the combination process has better controllability.
For more detailed description, the embodiment of the present application provides another method for merging industrial control rules, specifically as shown in fig. 2, the method includes:
201. and acquiring rule parameter elements in each industrial control rule to be combined.
Wherein the industrial control rule comprises at least one rule parameter element.
In the embodiment of the present application, as shown in the foregoing description of the embodiment, since the rule parameter element in the industrial control rule may be a rule trigger condition or a rule trigger parameter, that is, a rule parameter, the industrial control rule to be combined generally has the same operation behavior in the process of combining the industrial control rules, but the rule parameter elements are different rules. In this embodiment, when the industrial control rules are to be combined, rule parameter elements in each industrial control rule need to be determined first and acquired.
202. And determining the rule type corresponding to each industrial control rule based on the rule parameter elements.
Each rule parameter element comprises at least one rule parameter, and each rule parameter has a corresponding parameter classification, wherein the rule parameter is used for triggering the industrial control rule.
The step when determining the rule type of the industrial control rule based on the rule parameter element can be specifically: and determining the rule type corresponding to each industrial control rule based on the parameter classification corresponding to each rule parameter included by the rule parameter element.
Since rule parameter elements are different for different industrial control rules, in this embodiment, for convenience of description, the rule parameter elements are described herein in a manner of being specific to rule parameters. Based on this, in this embodiment, the industrial control rule may be regarded as two parts, wherein one part is a rule parameter for triggering the industrial control rule, and the other part is an operation behavior that needs to be executed after the rule is triggered. Meanwhile, as can be seen from the description of the foregoing steps, in this embodiment, the rule parameter element takes the rule parameter as an example, and in this step, the industrial control rules are divided based on the rule parameter, that is, the rule type corresponding to each industrial control rule is determined. In this process, rule parameters are also classified into different categories, i.e., parameter classifications, and a particular such parameter classification may include: address class, function code class, value class, string class, and value range class. Thus, the first and second substrates are bonded together,
In the process of determining the rule type in this embodiment, the determination may be understood as being performed based on the parameter classification to which the rule parameter included in the industrial control rule belongs, and specifically may be understood as adding a corresponding label to the rule parameter classification, that is, there may be a case that one industrial control rule corresponds to a plurality of different labels in this process. For example, when an industrial control rule includes a plurality of different rule parameters, and the parameter classifications to which each rule parameter belongs are different, then according to the method of this step, the industrial control rule is added with labels corresponding to the different parameter classifications, that is, the industrial control rule is marked with a plurality of labels, and then in the process of determining the rule type of the industrial control rule, the process can be divided into two different modes: one of the two ways is to determine that the labels all comprise a certain parameter classification are a certain rule classification, and the other way is to divide a plurality of industrial control rules with the same label combination into one rule classification after the corresponding labels are respectively added to different parameter classifications.
203. And executing merging operation on the corresponding industrial control rule based on the rule type.
Specifically, in practical application, even if the merging operation is performed during the merging of the industrial control rules, the merging operation does not mean that all the industrial control rules need to be merged, wherein the control requirement of the user on the number of the industrial control rules can be met by only partially merging, in this case, when the merging process is performed on each type of corresponding industrial control rule based on the rule type, the corresponding priority can be actually set for different rule types, so that the merging can be performed step by step according to the priority, and the merging can be performed according to the priority order on the basis of meeting the classification merging, thereby avoiding the pressure of system resources caused by the merging of the industrial control rules with low priority.
Therefore, in this embodiment, each rule type corresponds to N priorities, where N is a positive integer.
Based on this, this step, when executed, may include:
step A, determining N priorities corresponding to the rule types respectively;
step B, determining N batches of rules to be combined based on the determined N priorities, wherein the priorities of industrial control rules in the rules to be combined in the same batch are the same;
And C, executing merging operation on the rules to be merged of the N batches according to the N priority orders.
Since the difference of the parameter classification affects the specific merging mode of the subsequent merging process and also affects the priority order in merging, N may be 3 in this embodiment for convenience of description, that is, in this case, the priority in merging is set to three levels, including the first level, the second level and the third level; the priorities of the first stage, the second stage and the third stage at the time of merging are sequentially decreased.
Specifically, in this step, as known from the foregoing examples, since rule parameters can be specifically classified into address classes, function code classes, numeric classes, character strings, and numeric range classes, and rule types are determined based on parameter classification of rule parameters, that is, in the process of determining priorities based on rule types, it is actually possible to mark based on specific kinds of rule parameters, where in the case of priorities of three-level classification, determining N priorities corresponding to the rule types, respectively, may include when executing:
when the parameters are classified into the address class, determining the priority of the corresponding merging as the first level, the second level and the third level;
When the parameters are classified into the function code class, determining the priority of merging corresponding to the parameter classification as the first stage;
when the parameter is classified into the numerical class, determining priorities at the time of merging corresponding to the parameter classification as the first stage, the second stage and the third stage;
when the parameters are classified into the character string class, determining the priority of merging corresponding to the parameter classification as the third level;
and when the parameters are classified into the numerical range class, determining the priority of merging corresponding to the parameter classification as the second level and the third level.
Specifically, the above multiple parameter classifications and the priority of the specific combination may be determined as shown in table 1:
TABLE 1
After the priorities of the different rule parameters corresponding to the classification are set, the priorities of the industrial control rule corresponding to the combination are determined. It can be known from the foregoing description that, since each parameter classification corresponds to at least one priority in merging, and the number of parameter classifications included in each industrial control rule is different, the priority in merging matched by each industrial control rule may be multiple. For example, when the parameter classification corresponding to the rule parameter included in the industrial control rule a is only an address class, the priority of the industrial control rule corresponding to the address class in combination is a first level, a second level and a third level, and the priority of the industrial control rule a in combination is the first level, the second level and the third level. When the industrial control rule B includes two rule parameters 1 and 2, and the two rule parameters correspond to the character string class and the function code class respectively, then the priorities of the two parameter classifications during the corresponding merging are the third level and the first level respectively, and the priorities of the industrial control rule B during the merging are the first level and the third level respectively.
Further, in step C of the present step, the merging operation is performed on the rules to be merged of the N batches, and the performing may specifically be: and executing the merging operation on the rules to be merged belonging to the same rule type in the rules to be merged of each of the N batches.
After the priority of the industrial control rules is determined by rule classification during the merging, the industrial control rules can be merged by corresponding batches according to the priority thereof based on the method of the step, that is, in this case, the industrial control rules can be merged step by step according to the marked priority of the step.
Specifically, in this step, based on the rule type, performing the merging operation on the corresponding industrial control rule includes:
mode a: in the industrial control rules, acquiring industrial control rules with the same parameter classification, and recording the industrial control rules as first rules; and executing the merging operation on the rule parameters in the plurality of first rules according to the rule type.
Further, since each parameter class corresponding to each industrial control rule to be combined has at least one rule parameter, the process of combining the industrial control rules based on rule types further includes:
Mode B: among the industrial control rules to be combined, determining the industrial control rule with the target priority as a second rule; determining a set formed by rule parameters contained in each second rule as a first parameter set; determining all parameter classifications corresponding to the second rule, and determining a set formed by rule parameters under each parameter classification as a second parameter set to obtain a plurality of second parameter sets corresponding to all parameter classifications; calculating the plurality of second parameter sets by using a Cartesian product algorithm to obtain a third parameter set, wherein elements in the third parameter set are combination sequences of rule parameters in each second parameter set; when the third parameter set matches the first parameter set, determining that the second rule meets a merging condition, and/or executing merging on the second rule.
Further, in the implementation of the method B, there is a case that the third parameter set and the first parameter set do not match, then the third parameter set and the first parameter set may be redetermined and re-matched by narrowing the scope of the second rule, based on this, the step further includes, after the step B:
Mode C: when the third parameter set is not matched with the first parameter set, part of the industrial control rules in all the second rules are redetermined as the second rules, and the first parameter set and the third parameter set are redetermined respectively; when the redetermined first parameter set matches the redetermined third parameter set, determining that the redetermined second rule meets the merging condition, and/or performing merging on the redetermined second rule.
In the implementation process of the above-mentioned three modes of merging operation in mode a, mode B and mode C, it is actually determined which rules can be specifically merged, that is, the above-mentioned three modes belong to all industrial control rules, which can be merged for the industrial control rules classified by the same rule.
For the merging operation in the mode a, all rule parameters in all the plurality of industrial control rules including only the parameter classification need to be regarded as a whole, and the rule parameters are completely consistent to perform the merging operation. That is, only the industrial control rules including the parameter classifications with the same priority (in the case that the priority set in the embodiment is three-level, it may be assumed that the two are the first-level) are processed in the process of the merging operation, where the industrial control rules including the same parameter classification are merged in the merging process, that is, only the parameter classifications with the same priority are related to the two industrial control rules, and if the parameter classifications of the two parameter classifications are different, the two parameter classifications are not merged in the process of the first merging operation. For the merging operation in the mode B and the merging operation in the mode C, it may be understood that a determining process of determining which industrial control rules can be merged into one industrial control rule in a plurality of industrial control rules according to a preset algorithm and parameter classification of rule parameters, where the preset algorithm may be a cartesian product algorithm, and the algorithm is mainly used to combine elements in a plurality of sets, so as to obtain element combinations, where a meaning represented by the element combinations is a composition manner between elements in different sets, and all combinations of elements between the plurality of sets may be represented.
Specifically, for the implementation of mode a:
for example, when the rule parameter included in the industrial control rule a is 172.24.2, the rule parameter included in the industrial control rule B is read, and based on the foregoing description, the parameter corresponding to the rule parameter 172.24.2 of the industrial control rule a is classified into an address class, and the priority corresponding to the industrial control rule is a first stage, a second stage and a third stage; the parameters corresponding to the rule parameters read of the industrial control rule B are classified into function code classes, the priority corresponding to the industrial control rule B is a first level, and the merging levels of the two are all the first level, so that when merging, whether the parameter classifications of the two are consistent is determined, and the address class and the function code class are not identical, so that the rule of the first merging operation is not satisfied. When the rule parameters of the industrial control rule C are 172.24.3, the parameter classification of the rule parameters of the pre-industrial control rule A belongs to the address class, so that the condition of the mode A merging operation is met, and the industrial control rule A and the industrial control rule C can be executed to be merged in the mode A merging operation process, so that the industrial control rule is obtained after merging.
Further, taking the above example as an example, among the plurality of industrial control rules, the industrial control rule a, the industrial control rule B and the industrial control rule C all refer to the rule parameters of the first stage, but when the method described in this embodiment is executed, not all the industrial control rules meet the condition of the merging operation of the execution mode a, in this process, the industrial control rule classified by the identical parameters needs to be determined as the first rule, that is, the industrial control rule a and the industrial control rule C are determined as the first rule, that is, the two industrial control rules can execute the first merging operation, and then the two industrial control rules can execute the specific merging operation, where the merging mode is to execute the merging operation by classifying the rule parameters in the first rule according to the parameters, so in the case that the rule parameters of the industrial control rule a are 172.24.2 and the rule parameters of the industrial control rule C are 172.24.3, the rule parameters in the merged industrial control rule X are 172.24.2 and 172.24.3.
Further, for the mode B, the implementation can be understood as follows:
in the process of executing the merging operation of the mode B, all the industrial control rules related to the same priority (which can be assumed to be all industrial control rules including rule parameters corresponding to the second level) are merged, in this process, the coverage range of the rule parameters in the second rule is determined, and whether the coverage range of a combination sequence of the cartesian product algorithm is consistent with the rule parameters according to the parameter classification is determined, that is, whether the first parameter set is matched with the third parameter set, wherein the elements included in the first parameter set are all rule parameters extracted from the second rule, and if the two rule parameters are consistent, it is indicated that all the combination cases of the rule parameters combined according to the parameter classification are consistent with all the combination cases of the rule parameters included in the industrial control rules, then the second rules can be merged, and thus the merging operation of the mode B is executed.
For example, when four rules in the second rule are determined to be rule 1 to rule 4 respectively, the range obtained by extracting the rule parameters according to the parameter classification mode, that is, the first parameter set is shown in table 2:
| Industrial control rule | Parameter Classification A | Parameters respectively B |
| Rule 1 | a | 1 |
| Rule 2 | a | 2 |
| Rule 3 | b | 1 |
| Rule 4 | b | 2 |
TABLE 2
Wherein the elements included in the first parameter set are actually { a,1} { a,2} { b,1} { b,2}, and the combined sequence of rule parameters of the 4 rules can be determined by using a Cartesian product algorithm as follows:{a,b}*{1,2}。
due to the third parameter set calculated by the Cartesian integration method{a, b = { (1, 2) = { { (a, 1) { (a, 2) { (b, 1) { (b, 2) } is consistent with the first parameter set "{ a,1} { (a, 2) { (b, 1) } { (b, 2) }". Then based on analysis, it is known that the coverage of the first parameter set is equal to the third parameter set formed by the combination sequence calculated by the cartesian integration algorithm, and in this case, the rules 1 to 4 can be combined into one rule X as shown in table 3:
| industrial control rule | Parameter Classification A | Parameters respectively B |
| Rule X | [a,b] | [1,2] |
TABLE 3 Table 3
Specifically, for the executing process of the mode C, the redefining a part of the industrial control rules in all the second rules as the second rules, and redefining the first parameter set and the third parameter set respectively may specifically be:
screening out part of industrial control rules from all the second rules by using a preset loop body algorithm to serve as the redetermined second rules; and the preset loop body algorithm is used for reducing the rule number of the second rule when the first parameter set is not matched with the third parameter set, and redefining the second rule with the reduced rule number as the second rule until the redetermined first parameter set is matched with the redetermined third parameter set or the number of the industrial control rules is reduced to a preset value.
Based on this, for mode C, its merging process may be:
in the merging operation of the mode C, the method is the same as that of the mode B, and it is determined by using a cartesian product algorithm whether the coverage formed by the combination sequence formed by the rule parameters is consistent with the coverage formed by the rule parameters in practice of all the second rules, if not, the number of the industrial control rules participating in the calculation of the combination sequence by using the cartesian product algorithm is decreased, that is, the number of the industrial control rules is decreased, and then the first parameter set and the third parameter set of the second rules are re-determined as the second rules, and then, whether the first parameter set and the third parameter set of the second rules are matched or not is checked until the industrial control rules corresponding to a certain rule parameters are consistent between the combination sequence (that is, the third parameter set) and the range formed by the rule parameters directly extracted from the second rules (that is, the first parameter set) after the cartesian product algorithm is performed, which indicates that the rule parameters in the second rules are identical with the actual rule parameter combination in the second rules according to the combination condition of the rule parameters calculated by the cartesian product algorithm, and then the redetermined second rules can be merged.
For example, when it is determined that the second rule is rule 1 to rule 5, respectively, the parameter set calculated according to the method of the present step according to each rule parameter in the second rule is as shown in table 4:
| Industrial control rule | Parameter Classification A | Parameters respectively B |
| Rule 1 | a | 1 |
| Rule 2 | a | 2 |
| Rule 3 | b | 1 |
| Rule 4 | b | 2 |
| Rule 5 | c | 1 |
TABLE 4 Table 4
Wherein the first parameter set at this time is "{ a,1} { a,2} { b,1} { b,2} { c,1}" then the method based on this step starts to calculate the assigned rule parameters involved in the merging in the second rule based on the preset loop body, wherein the cartesian product sequence determined by all rule parameters, that is, the third parameter set is { a, b, c } {1,2 = { a,1} { a,2} { b,1} { b,2} { c,1} { c,2}, and then the combined sequence obtained by the cartesian algorithm is found to be inconsistent with the first parameter set "{ a,1} { a,2} { b,1} { c,1}" related to the above table 4 (when the third parameter set is more than { c,2} rule parameters are combined), one of the two are not matched, that is one of the cartesian product rules can be reduced, that is the rule parameters are reduced when the rule set is determined by the second rule set according to the algorithm is calculated according to the algorithm, that the second rule set is calculated according to the step 5:
| industrial control rule | Parameter Classification A | Parameters respectively B |
| Rule 1 | a | 1 |
| Rule 2 | a | 2 |
| Rule 3 | b | 1 |
| Rule 4 | b | 2 |
TABLE 5
The cartesian product algorithm yields a combined sequence (i.e. a redetermined third set of parameters) of: { a, b } {1,2 = { { a,1} { a,2} { b,1} { b,2} }, when the comparison finds that the third parameter set at this time is consistent with both the redetermined first parameter set, then the redetermined second rule, namely rule 1 to rule 4, can be combined next.
Further, in the process of merging operation, when merging specific rule parameters, different rule parameters in different parameter classifications are executed differently, based on this, the step executes the merging operation on the corresponding industrial control rule based on the rule type, and when the specific rule parameters are executed, the steps can be divided into the following cases:
for the address class, a specific merging operation can respectively extract the address of the rule parameters of each industrial control rule to obtain a plurality of address information, and merge the plurality of address information to obtain merged address information; the combined address information comprises an address range formed by a plurality of address information and/or an address set formed by a plurality of address scattered points.
As shown in fig. 2-a, where arg1 and arg2 are two parameter classifications respectively, rule parameters of the two parameter classifications in the plurality of industrial control rules in the figure are the same, so that the two parameter classifications can be directly de-overlapped and belong to address classes, and in the process of merging the industrial control rules, if continuous addresses exist among rule parameters 172.24.2.1, 172.24.2.2, 172.24.2.3 and 172.24.2.4, then the addresses need to form an address range if continuous, and rule parameters 172.24.3.3 and 172.2.2.31 are discontinuous addresses and form an address set formed by address scattering points, then the rule parameters of the finally obtained merged industrial control rule are: [ [172.24.2.1-172.24.2.4], [172.24.3.3], [172.2.2.31], [ [1234] ] and [ (1256 ] ].
For the corresponding function code class, the merging operation may respectively perform function code extraction on the parameters of each industrial control rule to obtain a plurality of function codes, and de-duplicate the plurality of function codes to obtain a merged function code. Specifically, as shown in fig. 2-B, the rule parameters in the 5 rules are read, read, write, write and write, respectively, so that the first two rules can be combined into a combining rule with read as the rule parameter, and the last three industrial control rules are combined into a combining rule with write as the rule parameter.
When the parameters are classified into the numerical value classes, the merging operation can respectively extract the numerical values at the rule parameters of each industrial control rule to obtain a plurality of numerical values, and merge the numerical values to obtain a merged numerical value, wherein the merged numerical value comprises a numerical value range formed by the numerical values and/or a numerical value set formed by the numerical value scattered points.
For example, as shown in fig. 2-C, there is an intersection between rule parameters [1234-1236] and rule parameters [1234-1237], so that rule parameters are extracted and combined to form rule parameters [1234-1237], and the remaining rule parameters with repetition are de-duplicated, and finally the rule parameters of the combined industrial control rule are obtained as follows: [1234-1237][9][234][2234-2334].
And for the parameters classified into the numerical range classes, the numerical range extraction can be respectively carried out on the rule parameters of each industrial control rule when the merging operation is carried out, so as to obtain a plurality of numerical ranges, and the union of the numerical ranges is calculated, so that the numerical ranges after merging are obtained.
Specifically, when the rule parameters of the class of the numerical ranges are combined, the combination may be performed in a set-combining manner, that is, the numerical ranges after the combination are obtained by taking the union set are actually performed in a set-taking-union manner. For example, when a {1,100} n B {10,20} = B {10,20}, say that a contains B, then during the merge operation, the rule parameter after the merge is { a }; when a {1,100} n B {50,110} = C{50,100}, say A B there is intersection, then the rule parameter after the merging operation is performed in this step is { A }; when (when)The two sets of instructions A B do not intersect, then the rule parameters after this step performs the merge operation are { A, B }.
And when the parameters are classified into the character string classes and the rule parameters are multiple, extracting the character string from the rule parameters of each industrial control rule to obtain multiple character strings, determining the same part and different parts in the multiple character strings, calculating the union of the different parts, and determining the character strings formed by the union of the same part and the different parts as the combined character strings.
Wherein prior to said determining the same portion and different portions of the plurality of character strings, the method further comprises:
when the rule type is a character string, determining the similarity between any two character strings in a plurality of character strings based on a preset similarity algorithm, wherein the similarity is equal to the ratio between the number of the same characters in the two character strings and the number of all characters after the duplicate of the two character strings is removed;
if the similarity reaches a preset similarity threshold, determining the same part and different parts in the corresponding two character strings until the same part and different parts in the plurality of character strings are obtained
Specifically, when the industrial control rule of the rule parameters of the character string class is merged, the jaccard similarity calculation may be performed on any two of the plurality of character strings, where the jaccard similarity calculation is an algorithm for determining the similarity degree between two sets, and a specific calculation process may be: the number of characters in the intersection of the two sets divided by the total number of characters in the duplicate of the union of the two sets is removed. That is, it is determined whether or not a merging operation can be performed according to the degree of similarity between characters between character strings. Specifically, the similarity threshold may be set by the user, and the merging operation is performed when the similarity threshold is higher than the threshold. For example, taking fig. 2-D as an example, when the parameter classifications arg2 of the five industrial control rules are qq1.Txt, qqq0.Txt, qqq2.Txt, qqq3.Txt, and qqq4.Txt, respectively, and the values obtained by jaccard similarity calculation exceed the similarity threshold, which indicates that the similarity of these rule parameters is extremely high, the similar parts qqq _, txt, and the different parts [0-4] in the character string are extracted according to the method of this step, and then the rule parameters of the final combined industrial control rule are qqq [0-4] txt.
204. And determining whether the number of the industrial control rules accords with a preset termination condition.
Wherein, the preset termination condition includes: the number of the industrial control rules is lower than a preset number, or the ratio of the number of the industrial control rules to the number of the initial industrial control rules is lower than a preset ratio.
Specifically, in the judging process, the method may specifically be: and judging that the number of the stored industrial control rules is lower than a preset number.
Since the purpose of the method for merging industrial control rules in this embodiment is to indicate that the number of remaining industrial control rules meets the user's expectations when the number of the industrial control rules stored in the industrial control device is lower than a certain limit value, that is, after merging the industrial control rules to reduce the number of the stored industrial control rules, the industrial control rules are in compliance with the preset suspension conditions. Similarly, in some cases, it may also be performed if the ratio of the combined number to the initial industrial control rule number is lower than a preset ratio, for example, the preset suspension condition is set to be one fifth of the original number, if the combined number is one sixth of the original number, the combined number is obviously higher than the expected value of the user, and then the preset suspension condition is met.
Based on the judgment result, when it is determined that the number of the industrial control rules does not meet the preset termination condition, step 205 is executed; otherwise, step 206 is performed.
205. And if the number of the industrial control rules is determined to be not in accordance with the preset termination condition, executing the merging operation.
In this case, it is actually explained that the number of industrial control rules is large, and the merging operation is required, and then the process returns to the step 203.
The specific judging process can be based on the steps that the industrial control rule is compressed to a first threshold value and then judging whether the number of the industrial control rules reaches a second threshold value, wherein the second threshold value is lower than the first threshold value.
When it is determined that the number of currently stored industrial control rules has reached the first threshold, the industrial control rules need to be merged according to a preset merging strategy, and the number of the industrial control rules is generally reduced to be below a second threshold smaller than the first threshold, so that a specific merging process in the process can be actually performed step by step based on the priority of merging which has been determined previously.
206. And if the number of the industrial control rules accords with the preset termination condition, terminating the execution of the merging operation.
When the number of the industrial control rules is determined to be smaller than a certain threshold value or the number of the industrial control rules after combination reaches a preset proportion before combination, the number of the industrial control rules is smaller at the moment, further combination is not needed, that is, the number of the current industrial control rules accords with a preset suspension condition, and then combination operation is not needed.
In addition, it should be noted that, in the present steps 204-206, the process of determining and determining whether to perform the merging operation or to terminate the merging operation based on the number of the industrial control rules may be performed after the foregoing merging operation is performed, or may be performed after each merging operation when a plurality of merging operations are performed, so as to ensure that in practical applications, whether to further perform the subsequent merging operation is determined based on the number of the current industrial control rules after each merging operation is performed, thereby making the merging process more controllable.
In addition, after the merging operations of the modes a to C are performed, there may be a case where the number of the merged rules does not meet the suspension condition, and then the operation of forced merging, that is, forcing the plurality of rules to be merged into one rule, is further required to be performed, and in this embodiment, the method further includes:
When the number of the industrial control rules after the preset times of merging operation is determined to still not meet the preset termination condition, in the industrial control rules after the preset times of merging operation, rule parameters under the same parameter classification are subjected to merging operation, and the same rule parameters in the rule parameters after the merging operation are subjected to de-duplication to obtain a fourth parameter set;
and determining the fourth parameter set as a merged rule parameter.
When the method described in this embodiment is executed, since there may be a situation that the number of the industrial control rules is still high after the merging operation in three ways, or the proportion of the merging industrial control rules is too small, in this case, forced merging needs to be performed according to the method described above, for example, as shown in fig. 2-E, among the five industrial control rules, the former two industrial control rules are exemplified, in rule 1 and rule 2, rule parameters of the two rules are respectively subjected to merging operation according to parameter classification, and in this case, it is found that a repeated rule parameter a appears in parameter classification arg1, then the repeated rule parameter needs to be subjected to de-duplication, and in other two parameter classifications arg2 and arg3, rule parameters under these two parameter classifications need to be taken and merged, and in the same way, the subsequent rules are also performed in the same way and finally obtain rule parameters of the fourth parameter set, which is determined as the rule parameter set after merging, shown in the right side in fig. 2-E.
Further, as an implementation of the method shown in fig. 1 and fig. 2, another embodiment of the present application further provides an industrial control rule merging device. The embodiment of the industrial control rule combining device corresponds to the embodiment of the method, and for convenience of reading, the embodiment of the industrial control rule combining device does not describe the details of the embodiment of the method one by one, but it should be clear that the device in the embodiment can correspondingly realize all the contents of the embodiment of the method. As shown in fig. 3, the industrial control rule merging device includes:
the obtaining unit 31 may be configured to obtain rule parameter elements in each industrial control rule to be combined, where the industrial control rule includes at least one rule parameter element;
a first determining unit 32, configured to determine a rule type corresponding to each industrial control rule based on the rule parameter element;
the execution unit 33 may be configured to execute a merging operation on the corresponding industrial control rule based on the rule type.
Further, as shown in fig. 4, each rule type corresponds to N priorities, where N is a positive integer;
the execution unit 33 includes:
a first determining module 3301, configured to determine N priorities corresponding to the rule types respectively;
The second determining module 3302 may be configured to determine N batches of rules to be combined based on the determined N priorities, where the priorities of the industrial rules in the rules to be combined in the same batch are the same;
the first execution module 3303 may be configured to execute a merging operation on the N batches of rules to be merged according to the N priority ranks.
Further, as shown in fig. 4, the first execution module 3303 may specifically be configured to execute the merging operation on the to-be-merged rule belonging to the same rule type in each of the N batches.
Further, as shown in fig. 4, the apparatus further includes:
a second determining unit 34, configured to determine whether the number of industrial control rules meets a preset termination condition; wherein the preset termination condition includes: the number of the industrial control rules is lower than a preset number, or the ratio of the number of the industrial control rules to the number of the initial industrial control rules is lower than a preset ratio;
the first operation unit 35 may be configured to terminate execution of the merging operation if it is determined that the number of industrial control rules meets the preset termination condition;
the second operation unit 36 may be configured to execute the merging operation if it is determined that the number of industrial control rules does not meet the preset termination condition.
Further, as shown in fig. 4, each rule parameter element includes at least one rule parameter, and each rule parameter has a corresponding parameter classification, where the rule parameter may be used to trigger the industrial control rule;
the first determining unit 32 may specifically be configured to determine a rule type corresponding to each industrial control rule based on a parameter classification corresponding to each rule parameter included in the rule parameter element.
Further, as shown in fig. 4, the execution unit 33 includes:
the acquiring module 3304 may be configured to acquire, from the industrial control rules, an industrial control rule having the same parameter classification, and record the industrial control rule as a first rule;
the second execution module 3305 may be configured to perform a merging operation on rule parameters in the plurality of first rules according to the parameter classification.
Further, as shown in fig. 4, each parameter class corresponding to each industrial control rule to be combined has at least one rule parameter, and the executing unit 33 further includes:
the third determining module 3306 may be configured to determine, as the second rule, an industrial control rule having the target priority among the industrial control rules to be combined;
A fourth determining module 3307, configured to determine a set of rule parameters included in each of the second rules as a first parameter set;
a fifth determining module 3308, configured to determine all parameter classifications corresponding to the second rule, determine a set formed by rule parameters under each parameter classification as a second parameter set, and obtain a plurality of second parameter sets corresponding to all parameter classifications;
the calculating module 3309 may be configured to calculate the plurality of second parameter sets by using a cartesian product algorithm to obtain a third parameter set, where elements in the third parameter set are a combined sequence of rule parameters in each of the second parameter sets;
a sixth determination module 3310 may be used to determine that the second rule meets a merge condition and/or to perform a merge on the second rule when the third parameter set matches the first parameter set.
Further, as shown in fig. 4, the execution unit 33 further includes:
a seventh determining module 3311, configured to, when the third parameter set does not match the first parameter set, redetermine a part of the industrial control rules in all the second rules to be the second rules, and redetermine the first parameter set and the third parameter set respectively;
An eighth determination module 3312 may be used to determine that the re-determined second rule meets a merge condition and/or to perform a merge on the re-determined second rule when the re-determined first parameter set matches the re-determined third parameter set.
Further, as shown in fig. 4, the seventh determining module 3311 may specifically be configured to screen out a part of the industrial control rules from all the second rules as the redetermined second rules by using a preset cyclic body algorithm; the preset cyclic body algorithm may be configured to reduce the number of rules of the second rule when the first parameter set is not matched with the third parameter set, and redetermine the second rule after the number of rules is reduced to the second rule until the redetermined first parameter set matches with the redetermined third parameter set or the number of industrial control rules is reduced to a preset value.
Further, as shown in fig. 4, the apparatus further includes:
the third operation unit 37 may be configured to, when it is determined that the number of industrial control rules after the preset number of merging operations is executed does not meet the preset termination condition, perform a union operation on rule parameters under the same parameter classification in the industrial control rules after the preset number of merging operations, and perform deduplication on the same rule parameters in the rule parameters after the union operation, to obtain a fourth parameter set;
The third determining unit 38 may be configured to determine the fourth parameter set as a merged rule parameter.
Further, as shown in fig. 4, the execution unit 33 includes:
the first merging module 3313 may be configured to extract, when the rule type is an address type, an address of a rule parameter of each industrial control rule to obtain a plurality of address information, and merge the plurality of address information to obtain merged address information; the combined address information comprises an address range formed by a plurality of address information and/or an address set formed by a plurality of address scattered points;
the second merging module 3314 may be configured to extract, when the rule type is a function code type, a function code of each parameter of the industrial control rule to obtain a plurality of function codes, and de-duplicate the plurality of function codes to obtain a merged function code;
the third merging module 3315 may be configured to extract values from rule parameters of each of the industrial rules when the rule type is a value class, and merge the values to obtain a merged value, where the merged value includes a value range formed by the values and/or a value set formed by the value scattering points;
A fourth merging module 3316, configured to extract a numerical range of the rule parameter of each industrial control rule when the rule type is a numerical range type, obtain a plurality of numerical ranges, and calculate a union of the plurality of numerical ranges to obtain a merged numerical range;
and a fifth merging module 3317, configured to, when the rule type is a string type and the rule parameters are plural, respectively perform string extraction on the rule parameters of each industrial control rule to obtain plural strings, determine the same part and different parts in the plural strings, calculate the union of the different parts, and determine the string formed by the union of the same part and the different parts as a merged string.
Further, as shown in fig. 4, the execution unit 33 further includes:
the similarity determining module 3318 may be configured to determine, when the rule type is a string, a similarity between any two strings of the plurality of strings based on a preset similarity algorithm, where the similarity is equal to a ratio between a number of identical characters in the two strings and a number of all characters after the two strings are de-duplicated;
The character part determining module 3319 may be configured to determine the same part and the different part in the corresponding two character strings until the same part and the different part in the plurality of character strings are obtained if the similarity reaches a preset similarity threshold.
In the embodiment of the application, rule parameter elements in each industrial control rule to be combined are firstly obtained, wherein the industrial control rule comprises at least one rule parameter element; then, determining a rule type corresponding to each industrial control rule based on the rule parameter elements; and finally, based on the rule type, executing the merging operation on the corresponding industrial control rule, thereby realizing the merging function of the industrial control rule. Compared with the prior art, the method and the device can classify the industrial control rules based on rule parameter elements in the industrial control rules to obtain rule types corresponding to each industrial control rule, and then combine the corresponding industrial control rules based on the rule types, so that the effect of combining the industrial control rules in the process of recording and collecting the industrial control rules can be realized, the data of the industrial control rules stored in the industrial control equipment can be reduced after the combination, the problem that more industrial control rules are difficult to store under the condition of limited storage space is avoided, and the problem that the combination is performed according to the rule types after the rule types are determined based on the rule parameter elements in the combination process, namely, the corresponding types can be selected according to different requirements for different rule types, the number of the industrial control rules is effectively reduced in the combination process, and the combination process has better controllability.
The embodiment of the application provides a storage medium which comprises a stored program, wherein when the program runs, equipment where the storage medium is controlled to execute the industrial control rule merging method.
The storage medium may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application also provides an industrial control rule merging device, which comprises a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; and executing the industrial control rule merging method when the program instruction runs.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: acquiring rule parameter elements in each industrial control rule to be combined, wherein the industrial control rule comprises at least one rule parameter element; determining a rule type corresponding to each industrial control rule based on the rule parameter elements; and based on the rule type, executing merging operation on the corresponding industrial control rule.
Further, each rule type corresponds to N priorities, and N is a positive integer;
the step of executing the merging operation on the corresponding industrial control rule based on the rule type comprises the following steps:
n priorities corresponding to the rule types respectively are determined;
determining N batches of rules to be combined based on the determined N priorities, wherein the priorities of industrial control rules in the rules to be combined in the same batch are the same;
and executing merging operation on the rules to be merged of the N batches according to the sorting of the N priorities.
Further, the executing the merging operation on the rules to be merged of the N batches includes:
and executing the merging operation on the rules to be merged belonging to the same rule type in the rules to be merged of each of the N batches.
Further, the method further comprises:
determining whether the number of the industrial control rules accords with a preset termination condition; wherein the preset termination condition includes: the number of the industrial control rules is lower than a preset number, or the ratio of the number of the industrial control rules to the number of the initial industrial control rules is lower than a preset ratio;
if the number of the industrial control rules accords with the preset termination condition, terminating execution of the merging operation;
And if the number of the industrial control rules is determined to be not in accordance with the preset termination condition, executing the merging operation.
Further, each rule parameter element comprises at least one rule parameter, and each rule parameter has a corresponding parameter classification, wherein the rule parameter is used for triggering the industrial control rule;
based on the rule parameter elements, determining the rule type corresponding to each industrial control rule comprises the following steps:
and determining the rule type corresponding to each industrial control rule based on the parameter classification corresponding to each rule parameter included by the rule parameter element.
Further, the executing the merging operation on the corresponding industrial control rule based on the rule type includes:
in the industrial control rules, acquiring industrial control rules with the same parameter classification, and recording the industrial control rules as first rules;
and respectively executing merging operation on rule parameters in the plurality of first rules according to the parameter classification.
Further, each parameter class corresponding to each to-be-combined industrial control rule has at least one rule parameter, and the method further includes:
among the industrial control rules to be combined, determining the industrial control rule with the target priority as a second rule;
Determining a set formed by rule parameters contained in each second rule as a first parameter set;
determining all parameter classifications corresponding to the second rule, and determining a set formed by rule parameters under each parameter classification as a second parameter set to obtain a plurality of second parameter sets corresponding to all parameter classifications;
calculating the plurality of second parameter sets by using a Cartesian product algorithm to obtain a third parameter set, wherein elements in the third parameter set are combination sequences of rule parameters in each second parameter set;
when the third parameter set matches the first parameter set, determining that the second rule meets a merging condition, and/or executing merging on the second rule.
Further, the method further comprises:
when the third parameter set is not matched with the first parameter set, part of the industrial control rules in all the second rules are redetermined as the second rules, and the first parameter set and the third parameter set are redetermined respectively;
when the redetermined first parameter set matches the redetermined third parameter set, determining that the redetermined second rule meets the merging condition, and/or performing merging on the redetermined second rule.
Further, the redefining a part of the industrial control rules in all the second rules as the second rules, and redefining the first parameter set and the third parameter set respectively includes:
screening out part of industrial control rules from all the second rules by using a preset loop body algorithm to serve as the redetermined second rules; and the preset loop body algorithm is used for reducing the rule number of the second rule when the first parameter set is not matched with the third parameter set, and redefining the second rule with the reduced rule number as the second rule until the redetermined first parameter set is matched with the redetermined third parameter set or the number of the industrial control rules is reduced to a preset value.
Further, the method further comprises:
when the number of the industrial control rules after the preset times of merging operation is determined to still not meet the preset termination condition, in the industrial control rules after the preset times of merging operation, rule parameters under the same parameter classification are subjected to merging operation, and the same rule parameters in the rule parameters after the merging operation are subjected to de-duplication to obtain a fourth parameter set;
and determining the fourth parameter set as a merged rule parameter.
Further, the merging operation is performed on the corresponding industrial control rule based on the rule type, and the merging operation comprises at least one of the following steps:
when the rule type is an address type, address extraction is respectively carried out on rule parameters of each industrial control rule to obtain a plurality of address information, and the address information is combined to obtain combined address information; the combined address information comprises an address range formed by a plurality of address information and/or an address set formed by a plurality of address scattered points;
when the rule type is a function code type, respectively extracting the function codes of the parameters of each industrial control rule to obtain a plurality of function codes, and de-duplicating the plurality of function codes to obtain combined function codes;
when the rule type is a value class, respectively extracting values from rule parameters of each industrial control rule to obtain a plurality of values, and combining the plurality of values to obtain a combined value, wherein the combined value comprises a value range formed by the plurality of values and/or a value set formed by a plurality of value scattered points;
when the rule type is a numerical range type, respectively extracting the numerical ranges of rule parameters of each industrial control rule to obtain a plurality of numerical ranges, and calculating a union of the numerical ranges to obtain a combined numerical range;
When the rule types are character strings and the rule parameters are multiple, extracting the character strings from the rule parameters of each industrial control rule to obtain multiple character strings, determining the same part and different parts in the multiple character strings, calculating the union of the different parts, and determining the character strings formed by the union of the same part and the different parts as the combined character strings.
Further, before said determining the same portion and different portions of the plurality of character strings, the method further comprises:
when the rule type is a character string, determining the similarity between any two character strings in a plurality of character strings based on a preset similarity algorithm, wherein the similarity is equal to the ratio between the number of the same characters in the two character strings and the number of all characters after the duplicate of the two character strings is removed;
and if the similarity reaches a preset similarity threshold, determining the same part and different parts in the corresponding two character strings until the same part and different parts in the plurality of character strings are obtained.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program code initialized with the method steps of: acquiring rule parameter elements in each industrial control rule to be combined, wherein the industrial control rule comprises at least one rule parameter element; determining a rule type corresponding to each industrial control rule based on the rule parameter elements; and based on the rule type, executing merging operation on the corresponding industrial control rule.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (15)
1. The industrial control rule merging method is characterized by comprising the following steps of:
acquiring rule parameter elements in each industrial control rule to be combined, wherein the industrial control rule comprises at least one rule parameter element;
determining a rule type corresponding to each industrial control rule based on the rule parameter elements;
And based on the rule type, executing merging operation on the corresponding industrial control rule.
2. The method of claim 1, wherein each rule type corresponds to N priorities, N being a positive integer;
the step of executing the merging operation on the corresponding industrial control rule based on the rule type comprises the following steps:
n priorities corresponding to the rule types respectively are determined;
determining N batches of rules to be combined based on the determined N priorities, wherein the priorities of industrial control rules in the rules to be combined in the same batch are the same;
and executing merging operation on the rules to be merged of the N batches according to the sorting of the N priorities.
3. The method of claim 2, wherein performing a merge operation on the N batches of rules to be merged comprises:
and executing the merging operation on the rules to be merged belonging to the same rule type in the rules to be merged of each of the N batches.
4. A method according to any one of claims 1 to 3, further comprising:
determining whether the number of the industrial control rules accords with a preset termination condition; wherein the preset termination condition includes: the number of the industrial control rules is lower than a preset number, or the ratio of the number of the industrial control rules to the number of the initial industrial control rules is lower than a preset ratio;
If the number of the industrial control rules accords with the preset termination condition, terminating execution of the merging operation;
and if the number of the industrial control rules is determined to be not in accordance with the preset termination condition, executing the merging operation.
5. The method of claim 1, wherein each of the rule parameter elements comprises at least one rule parameter, each rule parameter having a corresponding parameter classification, wherein the rule parameter is used to trigger the industrial control rule;
the determining the rule type corresponding to each industrial control rule based on the rule parameter elements comprises the following steps:
and determining the rule type corresponding to each industrial control rule based on the parameter classification corresponding to each rule parameter included by the rule parameter element.
6. The method of claim 5, wherein performing a merge operation on a corresponding industrial control rule based on the rule type comprises:
in the industrial control rules, acquiring industrial control rules with the same parameter classification, and recording the industrial control rules as first rules;
and respectively executing merging operation on rule parameters in the plurality of first rules according to the parameter classification.
7. The method of claim 5, wherein each parameter class for each industrial control rule to be consolidated has at least one rule parameter, the method further comprising:
Among the industrial control rules to be combined, determining the industrial control rule with the target priority as a second rule;
determining a set formed by rule parameters contained in each second rule as a first parameter set;
determining all parameter classifications corresponding to the second rule, and determining a set formed by rule parameters under each parameter classification as a second parameter set to obtain a plurality of second parameter sets corresponding to all parameter classifications;
calculating the plurality of second parameter sets by using a Cartesian product algorithm to obtain a third parameter set, wherein elements in the third parameter set are combination sequences of rule parameters in each second parameter set;
when the third parameter set matches the first parameter set, determining that the second rule meets a merging condition, and/or executing merging on the second rule.
8. The method of claim 7, wherein the method further comprises:
when the third parameter set is not matched with the first parameter set, part of the industrial control rules in all the second rules are redetermined as the second rules, and the first parameter set and the third parameter set are redetermined respectively;
When the redetermined first parameter set matches the redetermined third parameter set, determining that the redetermined second rule meets the merging condition, and/or performing merging on the redetermined second rule.
9. The method of claim 8, wherein the redefining a portion of the industrial control rules in all second rules as the second rules and redefining the first parameter set and the third parameter set respectively comprises:
screening out part of industrial control rules from all the second rules by using a preset loop body algorithm to serve as the redetermined second rules; and the preset loop body algorithm is used for reducing the rule number of the second rule when the first parameter set is not matched with the third parameter set, and redefining the second rule with the reduced rule number as the second rule until the redetermined first parameter set is matched with the redetermined third parameter set or the number of the industrial control rules is reduced to a preset value.
10. The method of claim 5, wherein the method further comprises:
when the number of the industrial control rules after the preset times of merging operation is determined to still not meet the preset termination condition, in the industrial control rules after the preset times of merging operation, rule parameters under the same parameter classification are subjected to merging operation, and the same rule parameters in the rule parameters after the merging operation are subjected to de-duplication to obtain a fourth parameter set;
And determining the fourth parameter set as a merged rule parameter.
11. The method of claim 5, wherein the performing a merge operation on the respective industrial control rule based on the rule type comprises at least one of:
when the rule type is an address type, address extraction is respectively carried out on rule parameters of each industrial control rule to obtain a plurality of address information, and the address information is combined to obtain combined address information; the combined address information comprises an address range formed by a plurality of address information and/or an address set formed by a plurality of address scattered points;
when the rule type is a function code type, respectively extracting the function codes of the parameters of each industrial control rule to obtain a plurality of function codes, and de-duplicating the plurality of function codes to obtain combined function codes;
when the rule type is a value class, respectively extracting values from rule parameters of each industrial control rule to obtain a plurality of values, and combining the plurality of values to obtain a combined value, wherein the combined value comprises a value range formed by the plurality of values and/or a value set formed by a plurality of value scattered points;
When the rule type is a numerical range type, respectively extracting the numerical ranges of rule parameters of each industrial control rule to obtain a plurality of numerical ranges, and calculating a union of the numerical ranges to obtain a combined numerical range;
when the rule types are character strings and the rule parameters are multiple, extracting the character strings from the rule parameters of each industrial control rule to obtain multiple character strings, determining the same part and different parts in the multiple character strings, calculating the union of the different parts, and determining the character strings formed by the union of the same part and the different parts as the combined character strings.
12. The method of claim 11, wherein prior to said determining the same portion and different portions of the plurality of character strings, the method further comprises:
when the rule type is a character string, determining the similarity between any two character strings in a plurality of character strings based on a preset similarity algorithm, wherein the similarity is equal to the ratio between the number of the same characters in the two character strings and the number of all characters after the duplicate of the two character strings is removed;
And if the similarity reaches a preset similarity threshold, determining the same part and different parts in the corresponding two character strings until the same part and different parts in the plurality of character strings are obtained.
13. An industrial control rule merging device, which is characterized by comprising:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring rule parameter elements in each industrial control rule to be combined, and the industrial control rule comprises at least one rule parameter element;
the first determining unit is used for determining the rule type corresponding to each industrial control rule based on the rule parameter elements;
and the execution unit is used for executing the merging operation on the corresponding industrial control rule based on the rule type.
14. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the industrial control rule merging method of any one of claims 1 to 12.
15. An industrial control rule merging device, which is characterized by comprising a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; the program instructions, when executed, perform the industrial control rule combining method of any one of claims 1 to 12.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311110277.5A CN117034200A (en) | 2023-08-30 | 2023-08-30 | Industrial control rule merging method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311110277.5A CN117034200A (en) | 2023-08-30 | 2023-08-30 | Industrial control rule merging method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117034200A true CN117034200A (en) | 2023-11-10 |
Family
ID=88635402
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311110277.5A Pending CN117034200A (en) | 2023-08-30 | 2023-08-30 | Industrial control rule merging method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117034200A (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080189277A1 (en) * | 2007-02-05 | 2008-08-07 | Microsoft Corporation | Query pattern to enable type flow of element types |
| US20130227638A1 (en) * | 2012-02-27 | 2013-08-29 | Axiomatics Ab | Provisioning authorization claims using attribute-based access-control policies |
| US20200320159A1 (en) * | 2019-03-22 | 2020-10-08 | Robert R. Matthews | Magnetic-enthalpy symbol H gasiform species dilute, or solution a heater fluid dynamic mechanic class system transfer the integral sub-plasma thermal cycle state of matter dilute, or solution containing the greater amount of solute synthesis extraction the solution pipeline standard a heater fluid. |
-
2023
- 2023-08-30 CN CN202311110277.5A patent/CN117034200A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080189277A1 (en) * | 2007-02-05 | 2008-08-07 | Microsoft Corporation | Query pattern to enable type flow of element types |
| US20130227638A1 (en) * | 2012-02-27 | 2013-08-29 | Axiomatics Ab | Provisioning authorization claims using attribute-based access-control policies |
| US20200320159A1 (en) * | 2019-03-22 | 2020-10-08 | Robert R. Matthews | Magnetic-enthalpy symbol H gasiform species dilute, or solution a heater fluid dynamic mechanic class system transfer the integral sub-plasma thermal cycle state of matter dilute, or solution containing the greater amount of solute synthesis extraction the solution pipeline standard a heater fluid. |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114895846B (en) | A data processing method, device and equipment | |
| CN112395293B (en) | Database and table dividing method, database and table dividing device, database and table dividing equipment and storage medium | |
| US20050144167A1 (en) | Parallel merge/sort processing device, method, and program | |
| CN117194920B (en) | Data system processing platform and processing method based on big data analysis | |
| JP2019512127A (en) | String distance calculation method and apparatus | |
| CN109947933B (en) | Method and device for classifying logs | |
| JP2019511773A (en) | Service parameter selection method and related device | |
| CN112036476A (en) | Data feature selection method and device based on two-classification service and computer equipment | |
| CN112817525A (en) | Method and device for predicting reliability grade of flash memory chip and storage medium | |
| CN112085644A (en) | Multi-column data sorting method and device, readable storage medium and electronic equipment | |
| CN111625505B (en) | File splitting method and device | |
| CN113761026A (en) | Feature selection method, apparatus, device and storage medium based on conditional mutual information | |
| CN109978023A (en) | Feature selection approach and computer storage medium towards higher-dimension big data analysis | |
| US9875252B2 (en) | Data processing apparatus using calculation of histogram intersection | |
| CN117034200A (en) | Industrial control rule merging method and device | |
| CN114065860A (en) | Bank account data classification method and device | |
| CN114255125A (en) | Transaction risk judgment method, device, storage medium and electronic device | |
| JP6991960B2 (en) | Image recognition device, image recognition method and program | |
| CN119203983A (en) | Multi-level batch text parallel deduplication method, system, device and storage medium | |
| CN112329715A (en) | Face recognition method, device, equipment and storage medium | |
| CN118570854A (en) | Training method of human face multi-attribute recognition model and human face multi-attribute recognition method | |
| CN114780036B (en) | A data storage method and apparatus | |
| CN118331964A (en) | Association relation identification method, equipment and medium for model table | |
| CN115984671A (en) | Model online update method, device, electronic equipment and readable storage medium | |
| KR102282343B1 (en) | Methods and apparatuses for classifying data point using parallel hyperplane |
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 |