CN108303907A - A kind of setting method and system of equipment management universal model - Google Patents

A kind of setting method and system of equipment management universal model Download PDF

Info

Publication number
CN108303907A
CN108303907A CN201810020988.6A CN201810020988A CN108303907A CN 108303907 A CN108303907 A CN 108303907A CN 201810020988 A CN201810020988 A CN 201810020988A CN 108303907 A CN108303907 A CN 108303907A
Authority
CN
China
Prior art keywords
attribute
precondition
chain
triggering
management module
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
Application number
CN201810020988.6A
Other languages
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing 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 Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN201810020988.6A priority Critical patent/CN108303907A/en
Publication of CN108303907A publication Critical patent/CN108303907A/en
Pending legal-status Critical Current

Links

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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a kind of setting method of equipment management universal model and system and computer readable storage mediums and computer equipment.This method includes:Step 1, after the request for receiving registration attribute, the setting action of attribute and configuration attribute is created;Step 2, receive setting one attribute attribute value request after, inquire the attribute it is existing when, execute operations described below successively:The setting action for executing the attribute, is arranged the attribute value of the attribute.Using this method and system, skeleton code is only developed one time, no matter which kind of household electrical appliances subsequently developed, the equal reusable frame only develops oneself appliance services related content.

Description

A kind of setting method and system of equipment management universal model
Technical field
The present invention relates to intelligent appliance field more particularly to a kind of setting methods and system of equipment management universal model.
Background technology
Currently, the function of household appliance becomes increasingly complex, other than home appliance panel controls, it is also necessary to support infrared or blue Tooth remote controler, in recent years with the rise of intelligent mobile terminal, internet of things functional also gradually becomes one of the Core Feature of equipment. Meanwhile functions of the equipments is increasingly complicated, leads to the increase of the software development cost of equipment at double.
However, most of household appliance software (circuit board program) is individually developed according to product, to list a new Product, it is necessary to develop a circuitry plate program again.The independent development board program again of each new product, can bring Problems with:
(1) per money equipment stand-alone development, since function difference is larger between household appliance, code is difficult multiplexing, development cost It is higher;
(2) different household appliances have oneself unique logic function limitation (such as not allow in the case that air-conditioning shuts down Temperature is set), in the case where logic function limitation is more, household appliance software code logic is especially complex, difficult in maintenance;
(3) after household appliance possesses internet of things functional, the state change (such as on-off state) of equipment will be same in real time Server and mobile terminal are walked, the development cost and complexity of the increase household appliance software that this partial function also can be at double.
It is soft to reduce various equipment therefore, it is necessary to develop one kind the method and system of device model frame " can be multiplexed " The development cost of part.
Invention content
In order to solve the problems, such as that device software development cost is big in the prior art, it is logical that the present invention provides a kind of equipment managements With the setting method and system of model.
According to an aspect of the invention, there is provided a kind of setting method of equipment management universal model, the method packet It includes:
Step 1, after the request for receiving registration attribute, the setting action of attribute and configuration attribute is created;
Step 2, receive setting one attribute attribute value request after, inquire the attribute it is existing when, execute successively Operations described below:The setting action for executing the attribute, is arranged the attribute value of the attribute.
Wherein, the method is also executed before step 1:
After the request for receiving newly-increased global precondition, new precondition is increased into global precondition chain In;And/or
After the request for receiving newly-increased global triggering task, new triggering task is increased into global triggering task chain In.
Wherein, the method also executes after step 1:
After receiving the request of precondition of a newly-increased attribute, new precondition is increased into the preposition of the attribute In condition chain;And/or
After receiving the request of triggering task of a newly-increased attribute, new triggering task is increased to the triggering of the attribute In task chain.
Wherein, the method also executes in the step 2:
Before executing the setting action of the attribute, operations described below is also executed:It executes in the global precondition chain Whole preconditions;And/or execute whole preconditions in the precondition chain of the attribute.
Wherein, it is also executed in step 2 described in the method:
After the attribute value that the attribute is set, operations described below is also executed:It executes complete in the triggering task chain of the attribute Trigger task in portion;And/or execute the global whole triggering tasks triggered in task chain.
According to another aspect of the present invention, a kind of setting system of equipment management universal model, the system are additionally provided Including:
Attribute configuration module, for receive registration attribute request after, instruction attribute management module create attribute with And the setting action of configuration attribute;
Attribute setup module, for receive setting one attribute attribute value request after, to the attribute management mould Block inquire the attribute it is existing when, indicate that the attribute management module executes operations described below successively:The setting for executing the attribute is dynamic Make, the attribute value of the attribute is set;
The attribute management module, for creating attribute and configuration attribute being received from the attribute configuration module When the instruction of setting action, corresponding operating is executed, and the setting for executing the attribute is being received from the attribute setup module When acting and the instruction of attribute value of the attribute being set, corresponding operating is executed.
Wherein, the attribute configuration module is additionally operable to after the request for receiving newly-increased global precondition, described in instruction Attribute management module increases to new precondition in the global precondition chain of the attribute management module, and/or is receiving To after the request of newly-increased global triggering task, indicate that new triggering task is increased to the attribute management by the attribute management module In the global triggering task chain of module;
The attribute management module is additionally operable to increase to new precondition receiving from the attribute configuration module Corresponding operating is executed when in the global precondition chain of the attribute management module, and/or is received from the attribute configuration module Corresponding operating is executed to new triggering task is increased to when the overall situation triggers in task chain.
Wherein, the attribute configuration module is additionally operable to after receiving the request of precondition of a newly-increased attribute, instruction The attribute management module increases to new precondition in the precondition chain of the attribute, and/or is receiving newly-increased one After the request of the triggering task of attribute, indicate that new triggering task is increased to the triggering times of the attribute by the attribute management module It is engaged in chain;
The attribute management module is additionally operable to increase to new precondition receiving from the attribute configuration module Corresponding operating is executed when in the precondition chain of the attribute, and/or new triggering task is increased to the triggering task of the attribute Corresponding operating is executed when in chain.
Wherein, the attribute setup module is additionally operable to execute the setting action of the attribute in the instruction attribute management module Before, it also indicates the attribute management module and executes operations described below:Execute the preposition item of whole in the global precondition chain Part, and/or execute whole preconditions in the precondition chain of the attribute;
The attribute management module is additionally operable to receiving the execution global precondition from the attribute setup module Whole preconditions in chain and/or when executing the instruction of whole preconditions in the precondition chain of the attribute, execute phase It should operate.
Wherein, the attribute setup module be additionally operable to indicate the attribute management module be arranged the attribute attribute value it Afterwards, it also indicates the attribute management module and executes operations described below:Whole triggering tasks in the triggering task chain of the attribute are executed, And/or execute the global whole triggering tasks triggered in task chain;
The attribute management module is additionally operable to receiving the triggering task for executing the attribute from the attribute setup module When the instruction of whole triggering tasks in whole triggering tasks and/or the execution global triggering task chain in chain, phase is executed It should operate.
According to another aspect of the present invention, a kind of computer readable storage medium is additionally provided, is deposited on the storage medium The step of containing computer program, the above method realized when described program is executed by processor.
According to another aspect of the present invention, it additionally provides a kind of computer equipment, including memory, processor and is stored in On the memory and the computer program that can run on the processor, the processor are realized when executing described program The step of stating method.
The advantage of method and system is mainly in the present invention:The present invention uses " household appliance model framework ", skeleton code It only develops one time, no matter which kind of household electrical appliances (air-conditioning, refrigerator, washing machine etc.) subsequently developed, the equal reusable frame only develops oneself Appliance services related content.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the setting method of equipment management universal model according to the present invention;
Fig. 2 is the module map of setting system and device program according to the present invention;
Fig. 3 is the schematic diagram of attribute management module according to the present invention;
Fig. 4 is the flow chart according to the present invention for creating attribute node;
Fig. 5 is the flow chart of newly-increased global precondition according to the present invention;
Fig. 6 is the flow chart of newly-increased global triggering task according to the present invention;
Fig. 7 is the flow chart of the precondition of newly-increased attribute according to the present invention;
Fig. 8 is the flow chart of the triggering task of newly-increased attribute according to the present invention;
Fig. 9 is the flow chart that attribute setup module according to the present invention is interacted with attribute management module;
Figure 10 is the schematic diagram of the setting system of equipment management universal model according to the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application mutually can be combined arbitrarily.
The present invention provides a kind of setting methods of equipment management universal model.Shown in referring to Fig.1, this method includes:
Step 101 creates the setting action of attribute and configuration attribute after the request for receiving registration attribute;
Step 102, receive setting one attribute attribute value request after, inquire the attribute it is existing when, hold successively Row operations described below:The setting action for executing the attribute, is arranged the attribute value of the attribute.
An important concept is proposed in the present invention:Attribute, method of the invention are mainly executed by three modules:Belong to Property management module, attribute configuration module, attribute setup module.The device panel of these three modules and household appliance, control circuit It is as shown in Figure 2 with the relationship of sensor.As shown in Figure 2, the equipment management universal model for household appliance interior business journey Sequence is called, these programs include but not limited to:Control panel program, hardware controls program, Internet of Things program.
First, illustrate the relational language being related in the method for the invention:
(1) attribute:Household appliance can be abstracted as the set of one group of attribute mostly, can be equal to the control of equipment Setting to which part attribute, the variation of the sensor values of equipment can also be equal to the variation of some device attribute.Such as Air-conditioning possesses attribute:On-off state, setting temperature, environment temperature etc..Attribute is the basis that this frame is realized, it is desirable that uses this The equipment of frame has to the set that repertoire is abstracted as to attribute.
(2) attribute-name:The title of one attribute of unique mark in equipment.
(3) attribute value:The value of attribute.
(4) setting acts:Each attribute includes that a setting acts, and is executed when for setting property customized dynamic Make, such as setting air-conditioner temperature needs the control circuit of operating air conditioner.
(5) precondition:Can device attribute setting act the logic judgment condition that execute, it is necessary to the attribute configuration it is complete Portion's precondition meets, which can just be set.
(6) task is triggered:After device attribute is set successfully, a series of task execution can be triggered.
Secondly, the data type for including in declared attribute management module.With reference to shown in Fig. 3, attribute management module is to be used for Management attribute and other support the setting method run core data:
(1) whole attribute shared " global precondition chain ";
(2) whole attributes shared " overall situation triggering task chain ";
(3) " attribute lists " for including whole attribute datas, each attribute node in attribute list is in addition to attribute-name, also Including the current property value of attribute, setting action, the precondition chain of attribute, attribute triggering task chain.
Wherein, the attribute value of attribute there must be with setting action.The precondition chain of attribute can be sky, remove at this time " global precondition chain " outside, which does not need other any preconditions and carries out logic limitation.The triggering task chain of attribute Can be sky, at this time in addition to " overall situation triggering task chain ", the attribute value change of the attribute less triggers other any actions.
Attribute setting action, precondition, triggering task are realized and are registered by equipment interior business program comprising one To the call back function in system, it is actually to run these call back functions that system, which executes them,.These three call back function parameters And returned value specification is as follows:
(1) setting acts call back function:
【Parameter】Attribute-name, attribute value.
【Return value】True|False.It indicates to execute and whether succeed.
(2) precondition call back function:
【Parameter】Attribute-name, attribute value.
【Return value】True|False.Indicate precondition judging result.
(3) task and call back function are triggered:
【Parameter】Attribute-name, attribute value.
【Return value】Nothing.Triggering task is without returning the result.
In a step 101, the flow diagram of attribute is registered as shown in figure 4, one attribute section of attribute configuration module creation Point, and be added in the attribute list of attribute management module, while configuring the attribute setting action of the attribute.
This method is also executed before step 101:After the request for receiving newly-increased global precondition, by new preposition item Part increases in global precondition chain;And/or after the request for receiving newly-increased global triggering task, by new triggering task Increase in global triggering task chain.
As shown in figure 5, in the flow, attribute configuration module indicates the flow diagram of wherein newly-increased global precondition Attribute management module increases to new precondition in the global precondition chain of the attribute management module.Newly-increased global triggering The flow diagram of task is as shown in fig. 6, in the flow, and the indicative management module of attribute configuration module is by new triggering task Increase in the global triggering task chain of the attribute management module.
Household appliance model framework in the present invention provides the mechanism of precondition, can be used for solving equipment control logic The problems such as function restriction;In addition household appliance model framework provides the mechanism of triggering task, can be used for solving equipment state change After change the problems such as outside synchronizing function.
This method also executes after step 101:After receiving the request of precondition of a newly-increased attribute, before new The condition of setting increases in the precondition chain of the attribute;It, will and/or after receiving the request of triggering task of a newly-increased attribute New triggering task increases in the triggering task chain of the attribute.
The flow diagram of the precondition of the attribute is wherein increased newly as shown in fig. 7, in the flow, attribute configuration module After judging that attribute exists in the attribute list of dependence management module, instruction attribute management module creates precondition and is added to this In the precondition chain of attribute node.The flow diagram of the triggering task of the attribute is increased newly as shown in figure 8, in the flow, After judging that attribute exists in the attribute list of attribute configuration module dependence management module, the newly-built triggering of instruction attribute management module is appointed It is engaged in and is added in the triggering task chain of the attribute node.
This method also executes in a step 102:Before executing the setting action of the attribute, operations described below is also executed:It holds Whole preconditions in row overall situation precondition chain;And/or execute whole preconditions in the precondition chain of the attribute.
This method also executes in a step 102:After the attribute value that the attribute is set, operations described below is also executed:It executes Whole triggering tasks in the triggering task chain of the attribute;And/or execute the global whole triggering tasks triggered in task chain.
Fig. 9 shows attribute setup module after receiving the request of attribute value of one attribute of setting, with attribute management mould The interactive process of block.The process includes the following steps:
Step 1, attribute setup module is looked into after receiving the request of attribute value of one attribute of setting to attribute management module It askes the attribute whether there is, if there is thening follow the steps 2, if there is no then disappearing to device program return setup failed Breath;
Step 2, whole nodes in the global precondition chain of attribute setup module instruction attribute management module traversal, and according to The secondary whole preconditions executed in global precondition chain and the judging result for returning to precondition, if all preposition items The judging result of part is that successfully (True), the precondition judging result that attribute setup module receives is successfully, then to execute step Rapid 3, if there is the judging result of any one precondition is failure (False), the preposition item that attribute setup module receives Part judging result is failure, then the message of setup failed is returned to device program;
Step 3, attribute setup module instruction attribute management module traverses whole nodes in the precondition chain of the attribute, And execute whole preconditions in the precondition chain of the attribute successively and return to the judging result of precondition, if all Precondition judging result be successfully (True), the precondition judging result that attribute setup module receives be successfully, 3 are thened follow the steps, if there is the judging result of any one precondition is failure (False), attribute setup module receives Precondition judging result be failure, then to device program return setup failed message;
Step 4, attribute setup module instruction attribute management module inquires the setting action of the attribute, and executes setting action And implementing result is returned, if implementing result is successfully, 5 are thened follow the steps, if implementing result is failure, to device program Return to the message of setup failed;
Step 5, the current property value of the attribute is arranged in instruction attribute management module, then executes step 6, such as attribute is " temperature ", current property value are exactly " current temperature value ", and current property value can be obtained by relevant interface;
Step 6, attribute setup module instruction attribute management module traverses whole sections in the triggering task chain of the attribute Point, and these triggering tasks are executed successively, if all running succeeded thens follow the steps 7, if there is any one triggering task Execute the message that failure then returns to setup failed to device program;
Step 7, whole nodes in the global triggering task chain of attribute setup module instruction attribute management module traversal, and These triggering tasks are executed successively, if all running succeeded thens follow the steps 8, if there is any one triggering task execution is lost Lose the message that setup failed is then returned to device program;
Step 8, attribute setup module is returned to device program is arranged successful message.
The specific embodiment of two application scenarios according to the method for the present invention is given below.
One-airconditioning control of embodiment
In the application scenarios, other air-conditioning interior business programs such as device control panel program or Internet of Things program, Attribute setting interface can be directly invoked and carry out control device.The attribute setting up procedure of attribute setup module in the application scenarios is such as Under:
Step 1, air-conditioning switch machine calls attribute setup module interface to set a property the attribute value of " switching on and shutting down ", by preceding After setting condition " switching on and shutting down mutual exclusion precondition " judgement, switching on and shutting down operation can be completed in the setting action for executing attribute;
Step 2, temperature is arranged in air-conditioning, calls attribute setup module interface to set a property the attribute value of " temperature ", by preceding It is currently open state to set condition " booting precondition " judgement, is judged by precondition " cooling and warming pattern precondition " Present mode is refrigeration or heating, and the then setting action of execution attribute can be completed setting temperature and operate.If precondition " booting precondition " any one judgement fails with " cooling and warming pattern precondition ", then temperature cannot be arranged and return is set It sets unsuccessfully;
Step 3, humidity is arranged in air-conditioning, calls attribute setup module interface to set a property the attribute value of " humidity ", by preceding It is currently open state to set condition " booting precondition " judgement, is judged by precondition " dehumidification mode precondition " current Pattern is dehumidifying, and then execution attribute setting action can be completed setting humidity and operate.If " be switched on precondition preposition item Any one judgement of part " and " dehumidification mode precondition " fails, then humidity cannot be arranged and return to setup failed.
In the application scenarios, unified interface is provided to the control of equipment, equipment physical operations is packaged, makes to set Standby functional development can be more focused on the business of equipment itself.In addition, precondition is independent logic judgment unit one by one, Primary development, you can be multiplexed on many attributes;Meanwhile an attribute can possess multiple preconditions simultaneously, it can be with Very easily multiple logic judgment conditions are added on an attribute.
Embodiment two-washing machine water shortage is alarmed
In the application scenarios, washing machine water pressure sensor monitor oral siphon hydraulic pressure, indicated if hydraulic pressure is zero into Water pipe water shortage, at this point, equipment alarm, buzzer is rung.Any state change of washing machine and alarm are required for passing through Internet of Things in real time Net Program Synchronization is shown to mobile terminal.The attribute configuration process of attribute configuration module in the application scenarios is as follows:
Step 1, the content of registration attribute " buzzer ", attribute setting action is done washing mounted circuit board buzzer in order to control;
Step 2, registration attribute " oral siphon hydraulic pressure ", " alarm condition ", attribute setting action are do-nothing function and unreal incumbent What concrete function;
Step 3, precondition " Json format detections precondition " is realized, to keep interface unified, system requirements is whole Attribute value is Json formats, and attribute value Json format check mistakes then return to failure;
Step 4, triggering task " oral siphon hydraulic pressure alarm detection " is realized, if incoming attribute is " oral siphon hydraulic pressure ", and And attribute value is zero, then the attribute setup module interface of calling system sets a property " alarm condition " value to alarm, if Attribute value is not zero, then it is not alarm that " alarm condition " value, which is arranged,;
Step 5, triggering task " buzzer warning " is realized, if incoming attribute is " alarm condition ", and attribute value is Alarming, then the attribute setup module interface of calling system set a property " buzzer " value be ring, if attribute value be not Alarming, then set a property " buzzer " value be do not ring;
Step 6, it realizes triggering task " Internet of Things synchronization ", incoming attribute-name and attribute value is directly sent to Internet of Things Program;
Step 7, increase global precondition " Json format detections precondition ", increase global triggering task " Internet of Things It is synchronous ";
Step 8, attribute " oral siphon hydraulic pressure " increases triggering task " oral siphon hydraulic pressure alarm detection ";
Step 9, attribute " alarm condition " increases triggering task " buzzer warning ".
Device hardware control program can directly invoke the attribute setup module interface of system, and the value of device sensor is set It sets and carries out business processing in system.
" realizing precondition " and " realizing triggering task " in above-mentioned steps refers to the practical operation that user carries out, such as When triggering task is buzzer warning, user, which executes operation, makes true physical equipment buzzer no longer alarm.
The attribute setting up procedure of attribute setup module in the application scenarios is as follows:
Step 1, it when equipment oral siphon hydraulic pressure sensor value changes, calls attribute setup module interface to set a property and " enters water After judging by global precondition " Json format detections precondition ", it is dynamic to execute null attribute setting for the attribute value of pipe hydraulic pressure " Attribute value is arranged into system after work;
Step 2, after in the setting to system of attribute " oral siphon hydraulic pressure " attribute value, triggering task " oral siphon hydraulic pressure report is executed Alert detection " finds that hydraulic pressure is zero, then it is to alarm to call the set a property value of " alarm condition " of attribute setup module interface; The value of " alarm condition " of setting a property is also required to first pass through after global precondition " Json format detections precondition " judges, is held Row null attribute setting acts, and then attribute value is arranged into system;
It should be noted that execution null attribute setting action refers to that the setting action of an attribute can in above-mentioned two step To be not execute operation.
Step 3, after in the setting to system of attribute " alarm condition " attribute value, triggering task " buzzer warning ", hair are executed Existing equipment is being alarmed, then it is to ring to call the set a property value of " buzzer " of attribute setup module interface;Set a property " buzzing The value of device " is also required to after first passing through global precondition " Json format detections precondition " judgement, executes attribute setting action Control laundry mounted circuit board buzzer is rung;
Step 4, set a property " buzzer ", " alarm condition ", " oral siphon hydraulic pressure " value after can execute global triggering Corresponding attribute value is sent to Internet of Things program for being synchronized to mobile terminal by task " Internet of Things synchronization ";
Step 5, after equipment oral siphon hydraulic pressure sensor has detected water, execute flow with it is above-mentioned essentially identical.
In the application scenarios, after device sensor is as attribute, value variation can be completed respectively by triggering task execution The different follow-up business function of kind is realized;The value of other attributes can be set in triggering task, be by a service decomposition in this way One serial task chain, realizes the decoupling of business function.
The present invention also provides a kind of setting systems of equipment management universal model, and as shown in Figure 10, system includes:
Attribute configuration module 1001, for after the request for receiving registration attribute, instruction attribute management module to create category Property and configuration attribute setting action;
Attribute setup module 1002, for receive setting one attribute attribute value request after, to attribute management mould Block inquire the attribute it is existing when, successively indicate attribute management module execute operations described below:The setting action of the attribute is executed, if Set the attribute value of the attribute;
Attribute management module 1003, for receiving the setting for creating attribute and configuration attribute in dependence configuration module When the instruction of action, execute corresponding operating, and dependence setup module receive execute the attribute setting action and set When setting the instruction of the attribute value of the attribute, corresponding operating is executed.
Wherein, attribute configuration module is additionally operable to after the request for receiving newly-increased global precondition, indicates attribute management Module increases to new precondition in the global precondition chain of the attribute management module, and/or newly-increased complete receiving After the request of office's triggering task, the overall situation that new triggering task is increased to the attribute management module by instruction attribute management module is touched It sends out in task chain;
Attribute management module is additionally operable to receive in dependence configuration module increases to the attribute pipe by new precondition Corresponding operating is executed when managing in the global precondition chain of module, and/or is received new triggering in dependence configuration module Task executes corresponding operating when increasing in global triggering task chain.
Wherein, attribute configuration module is additionally operable to after receiving the request of precondition of a newly-increased attribute, indicates attribute Management module increases to new precondition in the precondition chain of the attribute, and/or is receiving touching for a newly-increased attribute After the request of hair task, instruction attribute management module increases to new triggering task in the triggering task chain of the attribute;
Attribute management module is additionally operable to receive in dependence configuration module increases to the attribute by new precondition It is held when executing corresponding operating when in precondition chain, and/or new triggering task being increased in the triggering task chain of the attribute Row corresponding operating.
Wherein, attribute setup module is additionally operable to before instruction attribute management module executes the setting action of the attribute, also Indicate that attribute management module executes operations described below:Whole preconditions in global precondition chain are executed, and/or execute the category Whole preconditions in the precondition chain of property;
Attribute management module is additionally operable to before the whole that dependence setup module receives in executing global precondition chain When setting condition and/or executing the instruction of whole preconditions in the precondition chain of the attribute, corresponding operating is executed.
Wherein, attribute setup module is additionally operable to after the attribute value of the attribute is arranged in instruction attribute management module, is also referred to Show that attribute management module executes operations described below:Whole triggering tasks in the triggering task chain of the attribute are executed, and/or are executed complete Whole triggering tasks in office's triggering task chain;
Attribute management module is additionally operable to receive in dependence setup module complete in executing the triggering task chain of the attribute When portion triggers task and/or executes the instruction of whole triggering tasks in global triggering task chain, corresponding operating is executed.
The present invention also provides a kind of computer readable storage medium, computer program, program quilt are stored on storage medium The step of processor realizes the method for the present invention when executing.
The present invention also provides a kind of computer equipment, including memory, processor and storage are on a memory and can be The step of computer program run on processor, processor realizes the method for the present invention when executing program.
The advantage of method and system is mainly in the present invention:
(1) present invention uses " household appliance model framework ", and skeleton code is only developed one time, no matter which kind of family subsequently developed Electric (air-conditioning, refrigerator, washing machine etc.), the equal reusable frame only develop oneself appliance services related content;
(2) frame provides the mechanism of precondition, the problems such as being used for solving equipment control logic function restriction;
(3) frame provides the mechanism of triggering task, can be used for solving outside synchronizing function etc. after equipment state changes and ask Topic.
Descriptions above can combine implementation individually or in various ways, and these variants all exist Within protection scope of the present invention.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that article or equipment including a series of elements include not only those elements, but also includes not having There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more In the case of system, the element that is limited by sentence " including ... ", it is not excluded that including the element article or equipment in There is also other identical elements.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair It is bright to be described in detail.It will be understood by those of ordinary skill in the art that can modify to technical scheme of the present invention Or equivalent replacement should all cover the claim model in the present invention without departing from the spirit of the technical scheme of the invention and range In enclosing.

Claims (12)

1. a kind of setting method of equipment management universal model, which is characterized in that the method includes:
Step 1, after the request for receiving registration attribute, the setting action of attribute and configuration attribute is created;
Step 2, receive setting one attribute attribute value request after, inquire the attribute it is existing when, execute successively following Operation:The setting action for executing the attribute, is arranged the attribute value of the attribute.
2. the method as described in claim 1, which is characterized in that the method is also executed before step 1:
After the request for receiving newly-increased global precondition, new precondition is increased in global precondition chain;With/ Or
After the request for receiving newly-increased global triggering task, new triggering task is increased in global triggering task chain.
3. method as claimed in claim 1 or 2, which is characterized in that the method also executes after step 1:
After receiving the request of precondition of a newly-increased attribute, new precondition is increased to the precondition of the attribute In chain;And/or
After receiving the request of triggering task of a newly-increased attribute, new triggering task is increased to the triggering task of the attribute In chain.
4. method as claimed in claim 3, which is characterized in that the method also executes in the step 2:
Before executing the setting action of the attribute, operations described below is also executed:Execute the whole in the global precondition chain Precondition;And/or execute whole preconditions in the precondition chain of the attribute.
5. method as claimed in claim 3, which is characterized in that also executed in step 2 described in the method:
After the attribute value that the attribute is set, operations described below is also executed:The whole executed in the triggering task chain of the attribute is touched Hair task;And/or execute the global whole triggering tasks triggered in task chain.
6. a kind of setting system of equipment management universal model, which is characterized in that the system comprises:
Attribute configuration module, for after the request for receiving registration attribute, instruction attribute management module to create attribute and matches Set the setting action of attribute;
Attribute setup module, for after receiving the request of attribute value of one attribute of setting, being looked into the attribute management module Ask the attribute it is existing when, indicate that the attribute management module executes operations described below successively:The setting action of the attribute is executed, if Set the attribute value of the attribute;
The attribute management module, for receiving the setting for creating attribute and configuration attribute from the attribute configuration module When the instruction of action, corresponding operating is executed, and the setting action for executing the attribute is being received from the attribute setup module Be arranged the attribute attribute value instruction when, execute corresponding operating.
7. system as claimed in claim 6, which is characterized in that
The attribute configuration module is additionally operable to after the request for receiving newly-increased global precondition, indicates the attribute management mould Block increases to new precondition in the global precondition chain of the attribute management module, and/or is receiving the newly-increased overall situation After the request of triggering task, indicate that new triggering task is increased to the overall situation of the attribute management module by the attribute management module It triggers in task chain;
The attribute management module is additionally operable to that new precondition is increased to the category receiving from the attribute configuration module Execute corresponding operating when in the global precondition chain of property management module, and/or from the attribute configuration module receive by New triggering task executes corresponding operating when increasing in global triggering task chain.
8. system as claimed in claims 6 or 7, which is characterized in that
The attribute configuration module is additionally operable to after receiving the request of precondition of a newly-increased attribute, indicates the attribute pipe Reason module increases to new precondition in the precondition chain of the attribute, and/or in the triggering for receiving a newly-increased attribute After the request of task, indicate that the attribute management module increases to new triggering task in the triggering task chain of the attribute;
The attribute management module is additionally operable to that new precondition is increased to the category receiving from the attribute configuration module Corresponding operating is executed when in the precondition chain of property, and/or new triggering task is increased in the triggering task chain of the attribute Shi Zhihang corresponding operatings.
9. system as claimed in claim 8, which is characterized in that
The attribute setup module is additionally operable to before indicating that the attribute management module executes the setting action of the attribute, is also referred to Show that the attribute management module executes operations described below:Whole preconditions in the global precondition chain are executed, and/or are held Whole preconditions in the precondition chain of the row attribute;
The attribute management module is additionally operable in receiving the execution global precondition chain from the attribute setup module Whole preconditions and/or when executing the instruction of whole preconditions in the precondition chain of the attribute, execute corresponding behaviour Make.
10. system as claimed in claim 8, which is characterized in that
The attribute setup module is additionally operable to after indicating that the attribute value of the attribute is arranged in the attribute management module, is also indicated The attribute management module executes operations described below:Whole triggering tasks in the triggering task chain of the attribute are executed, and/or are executed Whole triggering tasks in the global triggering task chain;
The attribute management module is additionally operable in receiving the triggering task chain for executing the attribute from the attribute setup module Whole triggering tasks and/or when executing the instruction of whole triggering tasks in the global triggering task chain, execute corresponding behaviour Make.
11. a kind of computer readable storage medium, which is characterized in that computer program is stored on the storage medium, it is described The step of any one of claim 1 to 5 the method is realized when program is executed by processor.
12. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be The computer program run on the processor, the processor are realized any one in claim 1 to 5 when executing described program The step of item the method.
CN201810020988.6A 2018-01-10 2018-01-10 A kind of setting method and system of equipment management universal model Pending CN108303907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810020988.6A CN108303907A (en) 2018-01-10 2018-01-10 A kind of setting method and system of equipment management universal model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810020988.6A CN108303907A (en) 2018-01-10 2018-01-10 A kind of setting method and system of equipment management universal model

Publications (1)

Publication Number Publication Date
CN108303907A true CN108303907A (en) 2018-07-20

Family

ID=62868506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810020988.6A Pending CN108303907A (en) 2018-01-10 2018-01-10 A kind of setting method and system of equipment management universal model

Country Status (1)

Country Link
CN (1) CN108303907A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469250A (en) * 2002-07-01 2004-01-21 ���µ�����ҵ��ʽ���� Control equipment, control method and control program for domestic electric devices and domestic electric device products
US20070288223A1 (en) * 2004-08-23 2007-12-13 Horst Werkmann Method, Device and Software Module for a Software-Engineered Reproduction of the Behavior of an Actual Domestic Appliance in a Model
CN103067431A (en) * 2011-10-21 2013-04-24 海尔集团公司 Device control system and device control method
WO2015075126A1 (en) * 2013-11-22 2015-05-28 BSH Hausgeräte GmbH Domestic appliance
CN105183465A (en) * 2015-08-27 2015-12-23 深圳市振邦智能科技有限公司 Application design method and system for intelligent electric appliance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469250A (en) * 2002-07-01 2004-01-21 ���µ�����ҵ��ʽ���� Control equipment, control method and control program for domestic electric devices and domestic electric device products
US20070288223A1 (en) * 2004-08-23 2007-12-13 Horst Werkmann Method, Device and Software Module for a Software-Engineered Reproduction of the Behavior of an Actual Domestic Appliance in a Model
CN103067431A (en) * 2011-10-21 2013-04-24 海尔集团公司 Device control system and device control method
WO2015075126A1 (en) * 2013-11-22 2015-05-28 BSH Hausgeräte GmbH Domestic appliance
CN105183465A (en) * 2015-08-27 2015-12-23 深圳市振邦智能科技有限公司 Application design method and system for intelligent electric appliance

Similar Documents

Publication Publication Date Title
JP4410804B2 (en) System management method, information processing apparatus and program in distributed network environment
CN108369533A (en) The centralized management of software definition automated system
CN109150572B (en) Method, device and computer readable storage medium for realizing alarm association
CN106612312A (en) Virtualized data center scheduling system and method
CN103034541B (en) A kind of distributed information system and equipment therein and method
CN105204936A (en) Universal resident process management platform and method
CN116048467A (en) Micro-service development platform and business system development method
WO2020001409A1 (en) Virtual network function (vnf) deployment method and apparatus
CN105893211A (en) Method and system for monitoring
Ozeer et al. Designing and implementing resilient IoT applications in the fog: A smart home use case
CN112667351A (en) Intelligent analysis service system, method and medium based on containerized micro-service
CN104777754B (en) Virtual equipment creating method and device
Balis et al. A development and execution environment for early warning systems for natural disasters
CN106464541B (en) Fault handling method and equipment based on network function virtualization
CN108303907A (en) A kind of setting method and system of equipment management universal model
Mesiti et al. StreamLoader: an event-driven ETL system for the on-line processing of heterogeneous sensor data
CN116360584A (en) Virtual target product generation method and device, storage medium and electronic device
Dalsgaard et al. A toolchain for home automation controller development
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN108011757A (en) A kind of Intelligence network management method and device for power industry
US11251985B2 (en) Method for configuring and method for controlling a home automation apparatus
CN116567686B (en) Method, apparatus, device, medium and program product for constructing digital twin network
CN116155681B (en) Terminal management and control method and system for Internet of things
CN111818113A (en) Distributed implementation method of building Internet of things
CN104298750B (en) Renewal processing method and processing device for real-time system communication

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191212

Address after: 100080 Beijing, Haidian District, Haidian District, Zhichun Road, No. 106, Pacific International Building, room 6, room 601-606

Applicant after: Haier Youjia Intelligent Technology (Beijing) Co., Ltd.

Applicant after: Qingdao Haier Science and Technology Co., Ltd.

Address before: 100080 Beijing, Haidian District, Haidian District, Zhichun Road, No. 106, Pacific International Building, room 6, room 601-606

Applicant before: Haier Youjia Intelligent Technology (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180720