Embodiment
The embodiment of the invention provides a kind of operation order generation method and relevant apparatus, is used for according to the automatic generating run ticket of real-time system state.
See also Fig. 1, one embodiment comprises of operation order generation method in the embodiment of the invention:
101, whether the current state of detection system satisfies the entry condition of generating run ticket;
Whether the current state of operation order generating apparatus detection system satisfies the entry condition of generating run ticket, if then set up the operation order initial model, the product process of start-up operation ticket; This operation order initial model can be for generating according to predefined operation order parameter, and be stored in the operation order of interim memory headroom (flash memory).
Optional; The entry condition of this generating run ticket can comprise: any one or any several of the electrical state of the load condition of time, designated equipment, the on off operating mode of specified circuit, designated equipment (voltage, electric current or power) combination, can use the entry condition of the decision method of " threshold value that whether reaches various times or state " as the generating run ticket; As, morning, the making flow process of the operation order of stray current drainage was carried out in 9 startups.
Concrete, said system can be the electric system of appointment, in the real-time data base of the system that is updated to that the current state of system can be real-time, the operation order generating apparatus can obtain the current state corresponding real-time data with system from this real-time data base; Whether satisfy the entry condition of generating run ticket according to the current state of said real time data detection system; In practical application, above-mentioned real time data can be converted into simulated data and use, and the Source Type that comes of these simulated datas is real-time type.
102, carry out the coupling of operational order according to the current state of system;
The operation order generating apparatus carries out the coupling of operational order if the successful match operational order then loads said operational order in aforesaid operations ticket initial model according to the current state of said system, and execution in step 103; If failure, the then product process of end operation ticket are all mated in all operations order.
Concrete; In the operation order generating apparatus, be preset with an order rule base; In this order rule base, preserve the mapping relations of various command rule and various operational orders and the corresponding command rule; The operation order generating apparatus can be according to each order rule in the current state corresponding real-time Data Matching order rule base of system; If the success of order rule match representes that then system's current state meets the condition that loads the corresponding operational order of this order rule, then the operation order generating apparatus can generate the corresponding operational order of this order rule in aforesaid operations ticket initial model.
103, carry out simulation operations according to the operation order initial model after the load operation order.
Operation order initial model after the operation order generating apparatus is ordered according to load operation carries out simulation operations, if the emulation success then saves as operation order with the operation order initial model after the said load operation order.
In embodiments of the present invention, the operation of carrying out analog simulation according to the operation order initial model is provided, has replaced the artificial process of verifying, made that the generation of operation order is more objective and accurate; Concrete, owing to include a plurality of operational orders in the operation order, therefore; In process of simulation, need carry out emulation step by step, simultaneously, can be preset with the expected results of emulation in the local database each operational order; When emulation does not reach expected results, possibly be because the successful operational order of all couplings does not execute, also might be to make mistakes in the process of operation order generation; Therefore, after confirming that the successful operational order of all couplings all is finished, if emulation does not also reach expected results; Then the description operation ticket generates and makes mistakes the product process of end operation ticket.
Be provided with the create-rule of the entry condition and the operational order of various generating run tickets in the database of the embodiment of the invention in advance; In case the current state of system satisfies corresponding condition; Automatically the generating run ticket has guaranteed the objectivity of each operational order in the operation order; And, because the operation order in the embodiment of the invention is to generate automatically, shortened the Production Time of operation order, when the executable operations ticket, reduced the possibility that objective condition changes, the accuracy when having improved the executable operations ticket; And, the execution simulation process of operation order also is provided in embodiments of the present invention, the reliability of the operation order of further having guaranteed to be generated.
Also provide figure and picture synchronous simulation process in the embodiment of the invention, specifically seen also Fig. 2, another embodiment of operation order generation method comprises in the embodiment of the invention:
201, whether the current state of detection system satisfies the entry condition of generating run ticket;
Whether the current state of operation order generating apparatus detection system satisfies the entry condition of generating run ticket, if then set up the operation order initial model, and load the figure demonstrating model.
Concrete, the operation order generating apparatus can obtain the current state corresponding real-time data with system from real-time data base, whether satisfy the entry condition of generating run ticket again according to the current state of said real time data detection system; And after loading the figure demonstrating model, in the process of analog simulation, simulated data can be mapped in the graph data, realizes that the image of simulated data is synchronous.
Optional, whether the operation order generating apparatus can also whenever satisfy the entry condition (promptly regularly detecting) of generating run ticket at a distance from the current state that presets the duration detection system
202, mate the operational order in the order rule base successively according to the current state of system;
The operation order generating apparatus matees the operational order in the order rule base successively according to the current state of system; If operational order of successful match; Then execution in step 203, if failure, the then product process of end operation ticket are all mated in all operations order of order rule base.
Concrete; In the operation order generating apparatus, be preset with an order rule base; In this order rule base, preserve the mapping relations of various command rule and various operational orders and the corresponding command rule; The operation order generating apparatus can be according to the current state corresponding real-time data of system each order rule in the configuration order rule base one by one, if the success of order rule match then can trigger step 203.
203, in the operation order initial model, load the successful operational order of coupling;
The operation order generating apparatus loads the successful operational order of coupling in aforesaid operations ticket initial model, and carries out simulation operations according to the operation order initial model after the load operation order, if simulation result produces a desired effect, then emulation success can trigger step 205; If simulation result does not reach Expected Results, then execution in step 204.
Optional; In the operation order initial model, load after the successful operational order of coupling, whether the operation order generating apparatus can also detect the value or the state of the data object relevant with said operational order correct, if; Then the source status modifier with said relevant data object is that compute type is (in practical application; Because the operation order generating apparatus is being in simulation status, if the source state of the data object that is obtained is real-time type, then the value of this data object or state then may constantly change according to actual conditions; Cause the instability of simulation process; Therefore, need be compute type with the source status modifier of data object), and carry out simulation operations according to the operation order initial model after the load operation order; If not, the product process of end operation ticket then.
In process of simulation; Because the operation order generating apparatus loads the figure demonstrating model; Then display device just can show relevant by the data of operating equipment or state; And, realize with the image of simulated data synchronous according to the data or the state of relevant device in the said figure demonstrating model of the real-time renewal of above-mentioned operational order.
204, whether there is the not operational order of coupling in the sense command rule base;
The operation order generating apparatus detects the operational order that whether has not coupling in the said order rule base, if do not have, and the product process of end operation ticket then; If have, then execution in step 202.
205, the operation order initial model after the load operation order is saved as operation order.
Operation order initial model after the operation order generating apparatus is ordered above-mentioned load operation saves as operation order, and the product process of operation order finishes.
In embodiments of the present invention; Include many operational order in the operation order that is generated, the some operation purposes of completion that this operational order of many is orderly, therefore; In process of simulation; The emulation of any operational order is failed, and all can not reach the Expected Results of emulation, i.e. the generation of operation order also can be failed.In addition, the embodiment of the invention also provides the image synchronizing function of figure, makes to have improved user experience by the whole simulation process of seeing that the user can be visual in image.
For the ease of understanding, with a concrete application scenarios operation order generation method of describing in the above embodiments is described in detail more below, be specially:
When the generating run of user-initiated actions ticket, the operation order generating apparatus is the basic data in the read operation storehouse from database, the relevant parameter of initialization operation ticket generating run; This library is the pre-configured database relevant with operations various electric system.
The operation order generating apparatus is every to obtain the current state corresponding real-time data with system at a distance from presetting duration from real-time data base.
The commands match flow process of operation order:
1) the operation order generating apparatus detects according to said real time data whether the predefined operation ticket that meets entry condition is arranged in the predefine storehouse, if do not have, and the product process of end operation ticket then; If have, then load corresponding predefined operation parameter and figure demonstrating model; The operation order generating apparatus generates a newly-built operation order OP_N automatically according to the predefined operation parameter that loads, and this operation order OP_N is initialized state, and is saved among the interim state Temp_State.The operation order generating apparatus matees the operational order in the order rule base successively according to the real time data of system, if operational order of successful match, then execution in step 2);
2) as if operational order of successful match, then the operation order generating apparatus writes a corresponding operational order CMD_N in this operation order OP_N, and is optional; Whether the value or the state that can also detect the data object relevant with said operational order be correct; If then the source status modifier with said relevant data object is that compute type is (in practical application, because the operation order generating apparatus is being in simulation status; If the source state of the data object that is obtained is real-time type; Then the value of this data object or state then may constantly change according to actual conditions, cause the instability of simulation process, therefore; Need be compute type with the source status modifier of data object), and carry out simulation operations according to the operation order OP_N behind the write operation order CMD_N; If not, the product process of end operation ticket then.In process of simulation; Because the operation order generating apparatus loads the figure demonstrating model; Then display device just can show relevant by the data of operating equipment or state; And, realize with the image of simulated data synchronous according to the data or the state of relevant device in the said figure demonstrating model of the real-time renewal of above-mentioned operational order.
3) the operation order generating apparatus detects the operational order that whether has not coupling in the said order rule base, if do not have, and the product process of end operation ticket then; If have, then execution in step 1).
The operation order OP_N of operation order generating apparatus after with above-mentioned write operation order CMD_N saves as operation order output, and the product process of operation order finishes.
Only the application scenarios in the embodiment of the invention is illustrated above, it is understandable that, in practical application, the more applications scene can also be arranged, specifically do not limit here with some examples.
Down the embodiment in the face of the operation order generating apparatus of the present invention that is used to carry out aforesaid operations ticket generation method describes, and its logical organization please refer to Fig. 3, one embodiment comprises of operation order generating apparatus in the embodiment of the invention:
Detection starting unit 301, whether the current state that is used for detection system satisfies the entry condition of generating run ticket, if then set up the operation order initial model;
Commands match unit 302; Be used for carrying out the coupling of operational order according to said current state; If the successful match operational order then loads said operational order in said operation order initial model, and carries out simulation operations according to the operation order initial model after the load operation order; If the emulation success, then the operation order generation unit 303;
Operation order generation unit 303 is used for the operation order initial model after the said load operation order is saved as operation order.
Commands match unit further in the embodiment of the invention comprises:
Rule match module 3021; Be used for mating successively the operational order of order rule base, if operational order of successful match then triggers emulation module 3022 according to said current state; If failure, the then product process of end operation ticket are all mated in all operations order of order rule base;
Emulation module 3022 is used for loading the successful operational order of coupling at said operation order initial model, and carries out simulation operations according to the operation order initial model after the load operation order, if simulation result produces a desired effect, and then emulation success; If simulation result does not reach Expected Results, then the trigger command detection module 3023;
Order detection module 3023 is used for detecting said order rule base and whether has the not operational order of coupling, if do not have, and the product process of end operation ticket then; If have, then continue triggering rule matching module 3021.
Operation order generating apparatus in the embodiment of the invention can further include:
Figure loading unit 304 is used for then loading the figure demonstrating model if the current state of system satisfies the entry condition of generating run ticket.
Detection starting unit further in the embodiment of the invention comprises:
Acquisition module 3011 is used for obtaining the current state corresponding real-time data with system from real-time data base;
Detection starting module 3012 is used for whether satisfying according to the current state of said real time data detection system the entry condition of generating run ticket.
The concrete reciprocal process in each unit is following in the embodiment of the invention operation order generating apparatus:
Whether the current state of detection starting unit 301 detection systems satisfies the entry condition of generating run ticket, if then set up the operation order initial model, the product process of start-up operation ticket; This operation order initial model can be for generating according to predefined operation order parameter, and be stored in the operation order of interim memory headroom (flash memory).Optional; The entry condition of this generating run ticket can comprise: any one or any several of the electrical state of the load condition of time, designated equipment, the on off operating mode of specified circuit, designated equipment (voltage, electric current or power) combination, can use the entry condition of the decision method of " threshold value that whether reaches various times or state " as the generating run ticket; As, morning, the making flow process of the operation order of stray current drainage was carried out in 9 startups.
Concrete, can from real-time data base, obtain the current state corresponding real-time data with system by acquisition module 3011, whether satisfy the entry condition of generating run ticket again according to the current state of said real time data detection system by detection starting module 301.
Commands match unit 302 carries out the coupling of operational order according to said current state; If successful match operational order; Then in said operation order initial model, load said operational order; And carry out simulation operations according to the operation order initial model after the load operation order, if the emulation success, then the operation order generation unit 303.
Concrete; Can mate the operational order in the order rule base successively according to the current state of system by rule match module 3021; If operational order of successful match; Then trigger emulation module 3022, if failure, the then product process of end operation ticket are all mated in all operations order of order rule base.Concrete; In the operation order generating apparatus, be preset with an order rule base; In this order rule base, preserve the mapping relations of various command rule and various operational orders and the corresponding command rule; The operation order generating apparatus can be according to the current state corresponding real-time data of system each order rule in the configuration order rule base one by one, if the success of order rule match then can trigger emulation module 3022.Emulation module 3022 loads the successful operational order of coupling in aforesaid operations ticket initial model; And carry out simulation operations according to the operation order initial model after the load operation order; If simulation result produces a desired effect, then emulation success can trigger action ticket generation unit 303; If simulation result do not reach Expected Results, then trigger command detection module 3023 detects whether there is the not operational order of coupling in the said order rule base, if do not have, and the product process of end operation ticket then; If have, then continue triggering rule matching module 3021.
Optional; In the operation order initial model, load after the successful operational order of coupling, whether the operation order generating apparatus can also detect the value or the state of the data object relevant with said operational order correct, if; Then the source status modifier with said relevant data object is that compute type is (in practical application; Because the operation order generating apparatus is being in simulation status, if the source state of the data object that is obtained is real-time type, then the value of this data object or state then may constantly change according to actual conditions; Cause the instability of simulation process; Therefore, need be compute type with the source status modifier of data object), and carry out simulation operations according to the operation order initial model after the load operation order; If not, the product process of end operation ticket then.In process of simulation; Because the operation order generating apparatus loads the figure demonstrating model; Then display device just can show relevant by the data of operating equipment or state; And, realize with the image of simulated data synchronous according to the data or the state of relevant device in the said figure demonstrating model of the real-time renewal of above-mentioned operational order.
After the emulation success, the operation order initial model after operation order generation unit 303 is ordered above-mentioned load operation saves as operation order, and the product process of operation order finishes.
In several embodiment that the application provided, should be understood that the apparatus and method that disclosed can realize through other mode.For example, device embodiment described above only is schematically, for example; The division of said unit; Only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can combine or can be integrated into another system; Or some characteristics can ignore, or do not carry out.Another point, the coupling each other that shows or discuss or directly coupling or communication to connect can be through some interfaces, the indirect coupling of device or unit or communication connect, and can be electrically, machinery or other form.
Said unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of unit wherein of reality.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If said integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding; Part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), RAS (RAM, Random Access Memory), magnetic disc or CD.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection domain with claim.