CN112540584B - Conflict detection method and system for linkage rules - Google Patents

Conflict detection method and system for linkage rules Download PDF

Info

Publication number
CN112540584B
CN112540584B CN202011407018.5A CN202011407018A CN112540584B CN 112540584 B CN112540584 B CN 112540584B CN 202011407018 A CN202011407018 A CN 202011407018A CN 112540584 B CN112540584 B CN 112540584B
Authority
CN
China
Prior art keywords
rule
regulation
regulatory
conflict
car
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011407018.5A
Other languages
Chinese (zh)
Other versions
CN112540584A (en
Inventor
罗熙
殷丽华
戴波
刘文鑫
李丹
李超
孙哲
毛东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou University
Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Guangzhou University
Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou University, Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd filed Critical Guangzhou University
Priority to CN202011407018.5A priority Critical patent/CN112540584B/en
Publication of CN112540584A publication Critical patent/CN112540584A/en
Application granted granted Critical
Publication of CN112540584B publication Critical patent/CN112540584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a conflict detection method and a system of linkage rules, wherein the method comprises the following steps: compiling a newly added intelligent regulation and control rule, and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule; comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in a rule database; when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflict, outputting a conflict alarm type; storing the CAR regulatory rule to the rule database when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule. By the method, under the environment of the intelligent Internet of things, the intelligent equipment can be controlled by setting the control logic of the linkage rule, automatic rule conflict detection and alarm are provided for the user rule, and the usability and usability of the linkage rule are improved.

Description

Conflict detection method and system for linkage rules
Technical Field
The application relates to the field of Internet of things, in particular to a conflict detection method and system for linkage rules.
Background
The internet of things connects physical objects with a network according to a certain protocol, and interconnection and intercommunication among the physical objects are achieved. With the increasing demand for automation and intelligence, the concept of scene linkage comes up. Scene linkage can user-defined the linkage rule between the equipment to deploy the rule to high in the clouds or marginal end, realize the automatic control of equipment, for example realize "if the big-arch shelter temperature is higher than the setting value, then open the cooling cascade", "if illumination intensity is less than the setting value, then open the road lighting lamp" etc. function. When the scene is simple and the number of the devices is small, the linkage rules are not easy to conflict, and even if the conflict occurs, the conflict can be easily found through manual detection. However, as the number and types of devices increase, the application scenarios are complicated, and the detection of the linkage rule conflict also becomes complicated, so that the linkage rule often conflicts, and the usability and usability of the whole linkage rule are poor, and the stability and safety of the operation of the intelligent device cannot be effectively guaranteed.
At present, for solving the problems, many solving ways are single, and the occurrence of the linkage rule conflict cannot be essentially avoided. For example, patent No. 201611204176.4 discloses an intelligent device system and a method for solving a conflict between timing tasks applied to the intelligent device system, and the core of the method is to determine whether a conflict exists between a new timing task and an existing timing task according to an execution time period or a time point of the new timing task and the existing timing task. The method only aims at task conflict detection in the intelligent equipment system by taking time as a trigger condition, has single detection standard and does not relate to linkage conflict among multiple equipment.
Disclosure of Invention
Therefore, it is necessary to provide a method and a system for detecting a conflict of a linkage rule in order to help a user to reasonably and efficiently make a rule and ensure the operation stability and safety of an intelligent device system.
In a first aspect, an embodiment of the present invention provides a method for detecting a conflict of a linkage rule, including the following steps:
compiling a newly added intelligent regulation and control rule, and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule;
comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in a rule database;
when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflict, outputting a conflict alarm type;
storing the CAR regulatory rule to the rule database when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule.
Further, the comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in the rule database comprises:
when the regulatory condition of the CAR regulatory rule comprises a regulatory condition of the existing regulatory rule, or the regulatory condition of the existing regulatory rule comprises a regulatory condition of the CAR regulatory rule;
and the CAR regulatory rule and the existing regulatory rule have the same regulatory result;
determining that there is a redundant regulatory conflict between the CAR regulatory rule and the existing regulatory rule;
and detecting the conflict type as a redundancy conflict.
Further, the comparing and detecting the CAR regulatory rule with the existing regulatory rule in the rule database further comprises:
when there is an intersection between the CAR regulatory rule and the regulatory condition of the existing regulatory rule;
when the CAR regulation and control rule and the existing regulation and control rule have mutual conflict with each other, the regulation and control result corresponds to the regulation and control condition with intersection;
determining that there is an action regulation conflict between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is action conflict.
Further, the comparing and detecting the CAR regulatory rule with the existing regulatory rule in the rule database further comprises:
when a regulatory outcome of the CAR regulatory rule triggers a regulatory condition of at least one of the existing regulatory rules and at least one regulatory outcome of the existing regulatory rule triggers a regulatory condition of the CAR regulatory rule;
the CAR regulatory rule and the existing regulatory rule present a closed loop;
judging that the CAR regulation and control rule and the existing regulation and control rule are dependent and form an annular regulation and control conflict;
the conflict type is detected as a dependent conflict.
Further, the comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in the rule database further comprises:
when the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule, and the at least one regulation result of the existing regulation rule triggers the regulation condition of the CAR regulation rule;
(ii) a regulatory conflict exists between the CAR regulatory rule and the existing regulatory rule, and a regulatory conflict exists between at least one regulatory result of the existing regulatory rule and at least one regulatory result of the existing regulatory rule;
judging that chain regulation conflict exists between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is a chain conflict.
On the other hand, an embodiment of the present invention further provides a system for detecting a conflict of a linkage rule, including:
the rule compiling module is used for compiling the newly added intelligent regulation and control rule and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule;
the conflict detection module is used for comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in the rule database;
the conflict alarm module is used for outputting a conflict alarm type when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflicts;
and the rule storage module is used for storing the CAR regulation and control rule to the rule database when the CAR regulation and control rule and the existing regulation and control rule have no regulation and control conflict.
Further, the collision detection module includes a redundant collision detection unit, and the redundant collision detection unit is configured to detect a redundant collision, and includes:
when the regulatory condition of the CAR regulatory rule comprises a regulatory condition of the existing regulatory rule, or the regulatory condition of the existing regulatory rule comprises a regulatory condition of the CAR regulatory rule;
and the CAR regulatory rule and the existing regulatory rule have the same regulatory result;
determining that there is a redundant regulatory conflict between the CAR regulatory rule and the existing regulatory rule;
and detecting the conflict type as a redundancy conflict.
Further, the collision detection module further includes an action collision detection unit, and the action collision detection unit is configured to detect an action collision, and includes:
when there is an intersection between the CAR regulatory rule and the regulatory condition of the existing regulatory rule;
and when the CAR regulation and control rule and the existing regulation and control rule have conflict with each other, the regulation and control results corresponding to the intersected regulation and control conditions exist;
judging that action regulation conflict exists between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is action conflict.
Further, the conflict detection module further includes a dependent conflict detection unit, and the dependent conflict detection unit is configured to detect a dependent conflict, and includes:
when a regulatory outcome of the CAR regulatory rule triggers a regulatory condition of at least one of the existing regulatory rules and at least one regulatory outcome of the existing regulatory rule triggers a regulatory condition of the CAR regulatory rule;
the CAR regulatory rule and the existing regulatory rule present a circular closed loop;
judging that the CAR regulation and control rule and the existing regulation and control rule are dependent and form an annular regulation and control conflict;
the conflict type is detected as a dependent conflict.
Further, the collision detection module further includes a chain collision detection unit, and the chain collision detection unit is configured to detect a chain collision, and includes:
when the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule, and the at least one regulation result of the existing regulation rule triggers the regulation condition of the CAR regulation rule;
(ii) a dependency conflict exists between the CAR regulatory rule and the existing regulatory rule, and a regulatory conflict exists between at least one regulatory result of the existing regulatory rule and at least one regulatory result of the existing regulatory rule;
judging that chain regulation conflict exists between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is a chain conflict.
The conflict detection method and the system of the linkage rule comprise compiling a newly added intelligent regulation and control rule and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule; comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in a rule database; when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflict, outputting a conflict alarm type; storing the CAR regulatory rule to the rule database when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule. By the method, in the environment of the intelligent Internet of things, when several or dozens of different intelligent devices exist, the intelligent devices can be controlled by setting the control logic of the linkage rules, automatic rule conflict detection and alarm are provided for user rules, usability and usability of the linkage rules are improved, meanwhile, the control efficiency of the intelligent devices is improved, and the technology really improves the quality of life.
Drawings
Fig. 1 is a schematic flow chart of a method for detecting a conflict of a linkage rule according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of detecting a redundancy conflict type according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for detecting a type of action conflict according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for detecting a dependency conflict according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for detecting a type of chain conflict according to an embodiment of the present invention;
FIG. 6 is a block diagram of a system for detecting a conflict of linkage rules according to an embodiment of the present invention;
fig. 7 is a block diagram of a collision detection module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a method for detecting a conflict of a linkage rule is provided, which is described by taking an example of applying the method to regulation and control of a plurality of intelligent devices, and includes the following steps:
step 102, compiling the newly added intelligent regulation and control rule, and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule;
104, comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in a rule database; when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflict, outputting a conflict alarm type; storing the CAR regulatory rule to the rule database when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule.
Specifically, all the linkage rules can be abstracted as "if a certain trigger bar (Condition) is reached, a certain Action (Action) is executed, and a certain Result (Result) is reached", which we call it a CAR mode, and therefore, the CAR regulation rule, that is, the CAR regulation rule is the regulation rule in the CAR mode; in the intelligent control system of the intelligent equipment, if the control method of the intelligent equipment in a home has mutual linkage, for example, the intelligent control of a humidifier, an air conditioner, a window, a curtain and the like, the switch of one intelligent equipment can change the environmental change in the original home, so that the automatic response of another intelligent equipment or several intelligent equipments is caused, the linkage of different intelligent equipments can easily cause the disorder of the regulation and control system of the intelligent equipment, therefore, through the conflict detection method of the linkage rule, in the environment of the intelligent internet of things, when several or dozens of different intelligent equipments exist, the control of the intelligent equipments can firstly provide the control logic of the linkage rule, so as to provide the automatic rule conflict detection and alarm for the user rule, improve the availability and the usability of the linkage rule, and simultaneously improve the control efficiency of the intelligent equipment, so that the science and technology can really improve the quality of life.
In one embodiment, as shown in FIG. 2, detecting the redundancy conflict type includes:
step 202, the regulatory condition of the CAR regulatory rule comprises a regulatory condition of the existing regulatory rule, or the regulatory condition of the existing regulatory rule comprises a regulatory condition of the CAR regulatory rule;
step 204, the regulation and control result of the CAR regulation and control rule is the same as that of the existing regulation and control rule;
step 206, judging that redundant regulation conflict exists between the CAR regulation and control rule and the existing regulation and control rule;
and step 208, detecting that the conflict type is a redundancy conflict.
The condition redundancy is that the trigger conditions of the two rules have an inclusion relationship, and the two rules execute the same action. That is, the rule in which the range of trigger conditions is small is not necessarily present. In addition, the above-mentioned regulation result is the execution action herein; for example, CAR regulatory rules: when the temperature is higher than 26 ℃, the air conditioner is turned on, and the temperature is reduced to be below 26 ℃. Existing regulatory rules: when the temperature is higher than 28 ℃, the air conditioner is turned on to reduce the temperature to be lower than 28 ℃. This happens when the temperature is higher than 28 degrees, for example 30 degrees, the regulation conditions of the two rules described above are triggered simultaneously, and this type of conflict is therefore a redundant conflict.
In one embodiment, as shown in FIG. 3, detecting an action conflict type includes:
step 302, an intersection exists between the CAR regulatory rule and the regulatory conditions of the existing regulatory rule;
step 304, the CAR regulation and control rule and the existing regulation and control rule have confliction with each other;
step 306, judging that the CAR regulation and control rule and the existing regulation and control rule have action regulation and control conflict;
step 308, detecting that the conflict type is an action conflict.
The action conflict is that the trigger conditions of the two rules have intersection, but the executed actions are different. That is, operations in which there is a conflict may be performed under the same trigger condition. However, it should be noted that not all of the action inconsistencies may be conflicts, or may be redundant actions, which are collectively referred to herein as conflicts. For example, CAR regulatory rules: when the temperature is higher than 26 ℃, the air conditioner is turned on to reduce the temperature to below 26 ℃. Existing regulatory rules: when the temperature is lower than 28 ℃, the heater is turned on to raise the temperature to be higher than 28 ℃. When the temperature is 27 ℃, the CAR regulation and control rule and the regulation and control conditions of the existing regulation and control rule are simultaneously triggered, and at the moment, the two conflicting regulation and control results are that the air conditioner is turned on to cool and the heating air is turned on to heat, so that the action conflicting alarm is triggered at the moment. However, it should be noted that if the CAR regulation rule is "turn on the air conditioner to lower the temperature to below 26 ℃ when the temperature is higher than 26 ℃, the existing regulation rule is" turn on the electric fan to lower the temperature to below 26 ℃ when the temperature is higher than 26 ℃. Although the determination conditions of the action conflict are met, the "turning on the air conditioner" and the "turning on the fan" do not belong to the conflicting actions per se. For such cases, further automation may be achieved in connection with manual determination or by adding action conflict lists, etc.
In one embodiment, as shown in FIG. 4, detecting a dependency conflict type includes:
step 402, when the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule and at least one regulation result of the existing regulation rule triggers a regulation condition of the CAR regulation rule;
step 404, a circular closed loop exists between the CAR regulatory rule and the existing regulatory rule;
step 406, judging that the CAR regulation and control rule and the existing regulation and control rule have dependence and form annular regulation and control conflict;
step 408, detecting that the conflict type is a dependency conflict.
Specifically, if the trigger condition of rule 2 is included in the result of rule 1, it is said that there is a dependency relationship between these two rules, which can be expressed as: rule 1 → rule 2. Similarly, if the conditions and results of multiple rules have an inclusion relationship in turn, the rules are said to have a dependency relationship, which can be expressed as: rule 1 → rule 2 → … → rule n. Dependency conflicts, i.e., conditions and results of two or more rules have a dependency relationship and form a ring, which can be expressed as rule 1 → rule 2 → … → rule n → rule 1. For example, rule 1: when the humidifier is opened, the window is closed. Rule 2: when the window is closed, the blinds are closed. Rule 3: when the curtain is closed, the humidifier is opened. Wherein, rule 1 is represented as CAR regulation rule, and rules 2 and 3 represent the existing regulation rule, then the regulation of opening the humidifier is carried out, and the curtain is automatically closed after the window is closed; after the curtain is automatically closed, the humidifier is opened; the regulation condition of CAR regulation is returned after the humidifier is turned on. Therefore, the regulation conflict alarm type of the linkage rule is called as dependency conflict.
In one embodiment, as shown in FIG. 5, detecting a chain conflict type includes:
step 502, the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule, and the at least one regulation result of the existing regulation rule triggers a regulation condition of the CAR regulation rule;
step 504, when there is a dependency conflict between the CAR regulation rule and the existing regulation rule, and there is a regulation conflict between at least one regulation result of the existing regulation rule and at least one regulation result of the existing regulation rule;
step 506, judging that chain type regulation conflict exists between the CAR regulation rule and the existing regulation rule;
step 508, detecting that the conflict type is a chain conflict.
Specifically, a chain conflict is a dependency relationship between two or more rules, and in the dependency relationship, there is a conflicting operation or a conflicting regulation result. For example, rule 1: when PM2.5, open the humidifier, make the air humidity greater than 30% rh. Rule 2: when the humidifier is opened, the window is closed. Rule 3: when the window is in a closed state, the door is opened. Rule 4: when the door is in the open state, the humidifier is closed. Wherein, the rule 1 is represented as CAR regulation rule, and the rule 2,3,4 is represented as the existing regulation rule. Then first these regulatory rules satisfy the dependency, but the CAR regulatory rule of rule 1 turns on the humidifier and the existing regulatory rule of rule 4 turns off the humidifier in conflict. When the chain regulation has conflict, the regulation conflict alarm type of the linkage rule is called chain conflict.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a system for collision detection of linkage rules, comprising: the system comprises a rule compiling module 602, a conflict detection module 604, a conflict warning module 606 and a rule storage module 608, wherein the rule storage module 608 comprises a rule database 6082; wherein:
the rule compiling module 602 is configured to compile a newly added intelligent control rule, and convert the newly added intelligent control rule into a CAR control rule;
a conflict detection module 604, configured to perform comparison detection on the CAR regulation and control rule and an existing regulation and control rule in a rule database 6082;
a conflict alarm module 606, configured to output a conflict alarm type when a regulation conflict exists between the CAR regulation and control rule and the existing regulation and control rule;
a rule storage module 608, configured to store the CAR regulatory rule to the rule database 6082 when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule.
In one embodiment, as shown in fig. 7, the collision detection module 604 includes a redundant collision detection unit 6042, and the redundant collision detection unit 6042 is configured to detect a redundant collision, and includes: the regulatory condition of the CAR regulatory rule comprises a regulatory condition of the existing regulatory rule, or the regulatory condition of the existing regulatory rule comprises a regulatory condition of the CAR regulatory rule; the CAR regulatory rule and the existing regulatory rule have the same regulatory result; determining that there is a redundant regulatory conflict between the CAR regulatory rule and the existing regulatory rule; and detecting that the conflict type is a redundancy conflict.
In one embodiment, as shown in fig. 7, the collision detection module 604 further includes a motion collision detection unit 6044, and the motion collision detection unit 6044 is configured to detect a motion collision, and includes: (ii) the CAR regulatory rule and the regulatory condition of the existing regulatory rule intersect; the CAR regulation and control rule and the existing regulation and control rule have conflict with each other in the regulation and control results corresponding to the intersected regulation and control conditions; determining that there is an action regulation conflict between the CAR regulation rule and the existing regulation rule; and detecting that the conflict type is an action conflict.
In one embodiment, as shown in fig. 7, the conflict detection module 604 further includes a dependency conflict detection unit 6046, where the dependency conflict detection unit 6046 is configured to detect a dependency conflict, and includes: a regulatory result of the CAR regulatory rule triggers a regulatory condition of at least one of the existing regulatory rules, and at least one regulatory result of the existing regulatory rule triggers a regulatory condition of the CAR regulatory rule; the CAR regulatory rule and the existing regulatory rule present a circular closed loop; judging that the CAR regulation and control rule and the existing regulation and control rule are dependent and form an annular regulation and control conflict; and detecting that the conflict type is a dependency conflict.
In one embodiment, as shown in fig. 7, the collision detection module 604 further includes a chain collision detection unit 6048, where the chain collision detection unit 6048 is configured to detect a chain collision, and includes: the regulatory result of the CAR regulatory rule triggers a regulatory condition of at least one of the existing regulatory rules, and the at least one regulatory result of the existing regulatory rule triggers a regulatory condition of the CAR regulatory rule; a regulatory conflict exists between the CAR regulatory rule and the existing regulatory rule, and a regulatory conflict exists between at least one regulatory result of the existing regulatory rule and at least one regulatory result of the existing regulatory rule; judging that chain type regulation conflict exists between the CAR regulation rule and the existing regulation rule; and detecting that the conflict type is a chain conflict.
For the specific definition of the linkage rule conflict detection system, reference may be made to the above definition of the linkage rule conflict detection method, and details are not described here. All or part of each module in the conflict detection system of the linkage rule can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (6)

1. A conflict detection method of a linkage rule is characterized by comprising the following steps:
compiling a newly added intelligent regulation and control rule, and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule; all linkage rules are abstracted into a CAR mode, wherein the CAR regulation rule is a regulation rule in the CAR mode, and if a certain trigger Condition (Condition) is met, an Action (Action) is executed to achieve a certain Result (Result);
comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in a rule database; the existing regulation and control rules comprise home intelligent equipment corresponding to the CAR regulation and control rules and a plurality of regulation and control rules corresponding to other different home intelligent equipment;
when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflict, outputting a conflict alarm type;
storing the CAR regulatory rule to the rule database when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule;
wherein the regulation and control conflict comprises a redundancy conflict, an action conflict, a dependency conflict and a chain conflict; the redundant conflict comprises a conflict that the CAR regulation rule and the trigger condition of the existing regulation rule have an inclusion relationship and the two regulation rules execute the same action; the action conflict comprises a conflict that the CAR regulation rule and the trigger condition of the existing regulation rule have intersection, but the execution actions are different, wherein the execution actions are different and comprise the operation that the execution actions have the conflict and the operation that the execution actions have redundancy; the dependency conflict comprises a CAR regulation and control rule and one or more trigger conditions and execution actions of the existing regulation and control rule, wherein the trigger conditions and the execution actions sequentially have inclusion relations and form a ring conflict; the chain conflict comprises a CAR regulation and control rule and one or more existing regulation and control rules which have a dependency relationship, and in the dependency relationship, conflict operations or conflict execution actions exist;
the comparing and detecting the CAR regulation and control rule and the existing regulation and control rule in the rule database comprises the following steps:
when the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule, and the at least one regulation result of the existing regulation rule triggers the regulation condition of the CAR regulation rule; the regulation and control result refers to an execution action;
the CAR regulatory rule and the existing regulatory rule present a circular closed loop;
judging that the CAR regulation and control rule and the existing regulation and control rule are dependent and form an annular regulation and control conflict;
detecting the conflict type as a dependent conflict;
the comparing and detecting the CAR regulatory rules with existing regulatory rules in a rules database further comprises:
when the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule, and the at least one regulation result of the existing regulation rule triggers the regulation condition of the CAR regulation rule;
(ii) a regulatory conflict exists between the CAR regulatory rule and the existing regulatory rule, and a regulatory conflict exists between at least one regulatory result of the existing regulatory rule and at least one regulatory result of the existing regulatory rule;
judging that chain regulation conflict exists between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is a chain conflict.
2. The method for detecting a conflict of linkage rules according to claim 1, wherein the comparing the CAR regulatory rules with the existing regulatory rules in the rules database comprises:
when the regulatory condition of the CAR regulatory rule comprises a regulatory condition of the existing regulatory rule, or the regulatory condition of the existing regulatory rule comprises a regulatory condition of the CAR regulatory rule;
and the CAR regulatory rule and the existing regulatory rule have the same regulatory result;
determining that there is a redundant regulatory conflict between the CAR regulatory rule and the existing regulatory rule;
and detecting the conflict type as a redundancy conflict.
3. The method for detecting a conflict of linkage rules according to claim 1, wherein the comparing and detecting the CAR regulatory rules with the existing regulatory rules in the rules database further comprises:
when there is an intersection between the CAR regulatory rule and the regulatory condition of the existing regulatory rule;
and when the CAR regulation and control rule and the existing regulation and control rule have conflict with each other, the regulation and control results corresponding to the intersected regulation and control conditions exist;
determining that there is an action regulation conflict between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is action conflict.
4. A system for conflict detection for linkage rules, comprising:
the rule compiling module is used for compiling the newly added intelligent regulation and control rule and converting the newly added intelligent regulation and control rule into a CAR regulation and control rule; all the linkage rules are abstracted into 'if a certain trigger Condition (Condition) is reached, a certain Action (Action) is executed, and a certain Result (Result) is reached', namely a CAR mode, wherein the CAR regulation rule is a regulation rule in the CAR mode;
the conflict detection module is used for comparing and detecting the CAR regulation and control rule with the existing regulation and control rule in the rule database;
the conflict alarm module is used for outputting a conflict alarm type when the CAR regulation and control rule and the existing regulation and control rule have regulation and control conflicts;
a rule storage module for storing the CAR regulatory rule in the rule database when there is no regulatory conflict between the CAR regulatory rule and the existing regulatory rule;
wherein, the conflict detection module further comprises a dependency conflict detection unit, and the dependency conflict detection unit is used for detecting a dependency conflict and comprises:
when a regulatory outcome of the CAR regulatory rule triggers a regulatory condition of at least one of the existing regulatory rules and at least one regulatory outcome of the existing regulatory rule triggers a regulatory condition of the CAR regulatory rule;
the CAR regulatory rule and the existing regulatory rule present a closed loop;
determining that the CAR regulation rule and the existing regulation rule are dependent and form a ring regulation conflict;
detecting that the conflict type is a dependent conflict;
the collision detection module further comprises a chain collision detection unit for detecting chain collision, comprising:
when the regulation result of the CAR regulation rule triggers at least one regulation condition of the existing regulation rule, and the at least one regulation result of the existing regulation rule triggers a regulation condition of the CAR regulation rule;
(ii) a regulatory conflict exists between the CAR regulatory rule and the existing regulatory rule, and a regulatory conflict exists between at least one regulatory result of the existing regulatory rule and at least one regulatory result of the existing regulatory rule;
judging that chain type regulation conflict exists between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is a chain conflict.
5. The linkage rule conflict detection system according to claim 4, wherein the conflict detection module comprises a redundant conflict detection unit for detecting a redundant conflict, comprising:
when the regulatory condition of the CAR regulatory rule comprises a regulatory condition of the existing regulatory rule, or the regulatory condition of the existing regulatory rule comprises a regulatory condition of the CAR regulatory rule;
and the CAR regulatory rule and the existing regulatory rule have the same regulatory result;
determining that there is a redundant regulatory conflict between the CAR regulatory rule and the existing regulatory rule;
and detecting that the conflict type is a redundancy conflict.
6. The system according to claim 4, wherein the conflict detection module further comprises an action conflict detection unit, and the action conflict detection unit is configured to detect an action conflict, and comprises:
when there is an intersection between the CAR regulatory rule and the regulatory condition of the existing regulatory rule;
and when the CAR regulation and control rule and the existing regulation and control rule have conflict with each other, the regulation and control results corresponding to the intersected regulation and control conditions exist;
determining that there is an action regulation conflict between the CAR regulation rule and the existing regulation rule;
and detecting that the conflict type is action conflict.
CN202011407018.5A 2020-12-04 2020-12-04 Conflict detection method and system for linkage rules Active CN112540584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011407018.5A CN112540584B (en) 2020-12-04 2020-12-04 Conflict detection method and system for linkage rules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011407018.5A CN112540584B (en) 2020-12-04 2020-12-04 Conflict detection method and system for linkage rules

Publications (2)

Publication Number Publication Date
CN112540584A CN112540584A (en) 2021-03-23
CN112540584B true CN112540584B (en) 2022-11-08

Family

ID=75015932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011407018.5A Active CN112540584B (en) 2020-12-04 2020-12-04 Conflict detection method and system for linkage rules

Country Status (1)

Country Link
CN (1) CN112540584B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005034446A1 (en) * 2003-10-03 2005-04-14 Fujitsu Limited Network system based on policy rule
CN104680031A (en) * 2015-03-18 2015-06-03 联想(北京)有限公司 Linkage rule generation method and device
CN110650023A (en) * 2018-06-26 2020-01-03 中国移动通信有限公司研究院 Policy rule processing method and device, functional network element and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288278A1 (en) * 2006-06-13 2007-12-13 International Business Machines Corporation Method and system for automatically scheduling and managing agendas for presentation-style meetings
US20120054163A1 (en) * 2010-08-27 2012-03-01 Motorola, Inc. Policy conflict classifier
CN103870562B (en) * 2014-03-06 2017-04-19 北京邮电大学 Regulation verifying method and system in intelligent building system
CN104898592B (en) * 2015-03-31 2017-11-28 联想(北京)有限公司 A kind of generation method and electronic equipment of the rule that links
CN106527168A (en) * 2016-12-27 2017-03-22 海尔优家智能科技(北京)有限公司 AllJoyn linkage control conflict resolution method, trigger and server
CN107864174B (en) * 2017-07-03 2021-07-20 华南理工大学 Rule-based Internet of things equipment linkage method
CN109725544B (en) * 2018-12-26 2020-05-01 北京蓦然认知科技有限公司 Method and device for dynamically constructing conflict checking rule table in smart home
CN109709814B (en) * 2018-12-26 2020-05-01 北京蓦然认知科技有限公司 Method and device for dynamically constructing conflict checking rule table in smart home
CN111381582B (en) * 2020-03-11 2021-07-23 杭州涂鸦信息技术有限公司 Linkage rule testing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005034446A1 (en) * 2003-10-03 2005-04-14 Fujitsu Limited Network system based on policy rule
CN104680031A (en) * 2015-03-18 2015-06-03 联想(北京)有限公司 Linkage rule generation method and device
CN110650023A (en) * 2018-06-26 2020-01-03 中国移动通信有限公司研究院 Policy rule processing method and device, functional network element and storage medium

Also Published As

Publication number Publication date
CN112540584A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN110597075B (en) Method and device for detecting control conflict, electronic equipment and storage medium
US20220057927A1 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
US20130085610A1 (en) Structure and behavior of a building automation system
JPH0696054A (en) Information processor
CN109753034B (en) Control method, control device, electronic equipment and storage medium
JP2005130423A (en) Controller, program, and storage medium
Liu et al. Remediot: Remedial actions for internet-of-things conflicts
US20230289198A1 (en) Configuring application scene
Sylla et al. Design framework for reliable multiple autonomic loops in smart environments
US9292795B2 (en) Interpretation engine using three predicate values and content addressable memory
CN112540584B (en) Conflict detection method and system for linkage rules
CN111399459A (en) Intelligent household equipment control method, device, equipment and storage medium
US20160054016A1 (en) Ventilation control device, ventilation system, and program
US11579576B2 (en) Systems and methods for optimizing performance parameters of air handling units in infrastructures
WO2016022662A1 (en) Enhanced alarming with bacnet objects
CN105487495A (en) Smart home control method and device
CN115167168A (en) Intelligent household control method, system, equipment and storage medium
US9651924B2 (en) Common automation system controller
WO2021218681A1 (en) Action association method based on internet of things, and electronic device and storage medium
Leelaprute et al. Detecting feature interactions in home appliance networks
Salsbury et al. Smarter building start–A distributed solution
CN114285688A (en) Equipment replacement method, device, gateway, system and medium
Fuentes et al. Evaluation and simulation of building automation systems based on their AutomationML description
Mahdavi A combined product-process model for building systems control
Bonhomme et al. Methodology and tools for the design and verification of a smart management system for home comfort

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 641, 8 Huanglong Road, Hangzhou, Zhejiang 310000

Applicant after: INFORMATION AND COMMUNICATION BRANCH, STATE GRID ZHEJIANG ELECTRIC POWER Co.,Ltd.

Applicant after: Guangzhou University

Address before: No. 230, Waihuan West Road, Guangzhou University Town, Panyu, Guangzhou City, Guangdong Province, 510006

Applicant before: Guangzhou University

Applicant before: INFORMATION AND COMMUNICATION BRANCH, STATE GRID ZHEJIANG ELECTRIC POWER Co.,Ltd.

GR01 Patent grant
GR01 Patent grant