CN104122799B - Deduction Process Control System based on nested type state machine and method - Google Patents
Deduction Process Control System based on nested type state machine and method Download PDFInfo
- Publication number
- CN104122799B CN104122799B CN201410349480.2A CN201410349480A CN104122799B CN 104122799 B CN104122799 B CN 104122799B CN 201410349480 A CN201410349480 A CN 201410349480A CN 104122799 B CN104122799 B CN 104122799B
- Authority
- CN
- China
- Prior art keywords
- state machine
- state
- deduction
- seat
- machine
- 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.)
- Expired - Fee Related
Links
Abstract
The invention discloses a kind of deduction Process Control System based on nested type state machine and method, it includes deducing phase state machine and service condition unit;Described service condition unit is provided with main business state machine, and described main business state machine all includes some operational states;Each operational state of described main business state machine is all correspondingly arranged on a sub-service condition machine, including untreated, the process complete three kinds of states of neutralisation treatment;Each " in process " subservice state all includes some seats state machine, completes the deduction task of its main business state machine distribution;Described each seat state machine deduces subservice state machine entrance " process " state triggering correspondence after terminating, then this service condition unit can enter the deduction of next operational state.Native system can preferably describe the processes such as the stage in deduction process control, activity, it is possible to preferably for deducing the propelling of control process, it is ensured that deduce the order that process advances.
Description
Technical field
The present invention relates to a kind of deduction Process Control System and method, a kind of deduction based on nested type state machine
Process Control System and method.
Background technology
Due to particularity and the hazardness of particularly serious event, if occurring big error in practical operation, its consequence is
Cannot estimate.Therefore, the formulation for combat exercise or other accident Response project needs comprehensively to consider and instead
Multiple consideration.Now, it is necessary to deduce and play a great role.Deduce and prediction scheme is combined with directorial decision-making, analyze event
Development trend, release event future scenarios.After deduction terminates, need to deduce result carry out the assessment in target and
Feasibility analysis etc. technically, economically, thus constantly adjust and improve prediction scheme content.
During deducing, the control for process is just particularly important.Use more currently for process control
Be manually operated method, i.e. rely on people subjective judgment determine deduction process propelling.This method is random strong, because of people
Individual difference, for process schedule judgement produce difference, consequently, it is possible to cause deduce result diversity.Also there is use
Computer carries out process control, but universal process stage divides single, and certain node in the most a certain stage goes wrong,
It is accomplished by the deduction again of all stage, even overall process, causes unnecessary waste.
Summary of the invention
The technical problem to be solved in the present invention be to provide a kind of ensure deduction process advance order based on nested type shape
The deduction Process Control System of state machine;Present invention also offers a kind of deduction course control method for use based on nested type state machine
For solving above-mentioned technical problem, the technical solution used in the present invention is: it includes deducing phase state machine and industry
Business state unit;
Described service condition unit is provided with main business state machine, and described main business state machine all includes some operational states;
Each operational state of described main business state machine is all correspondingly arranged on a sub-service condition machine, including not locating
Reason, the process complete three kinds of states of neutralisation treatment;
Each " in process " subservice state all includes some seats state machine, completes pushing away of its main business state machine distribution
Drill task;Described each seat state machine deduces subservice state machine entrance " process " state triggering correspondence after terminating, then should
Service condition unit can enter the deduction of next operational state.
Seat of the present invention state machine uses n level wooden fork shape structure to arrange;The termination output of first order seat state machine is made
Initial input for seat, second level state machine is deduced;Advance successively, until n-th grade of seat state machine has been deduced;Institute
State 1~n level seat state machine and deduced all deduction tasks, then subservice state machine enters " process " state, triggers main business
Business state machine enters the deduction of next operational state.
Deduction phase state machine of the present invention includes deducing wait, deducing to carry out, deduced and deduce and suspend four
State.
Operational state of the present invention includes troops' division, operational organization, operational implementation and operation done state.
Each seat of the present invention state machine comprise do not deduce, deduce neutralization deduced three states;When a certain process
When in neutron service condition, all seats state machine is in " deduction " state, corresponding subservice state machine is advanced to " place
Manage " state.
The inventive method uses above-mentioned control system, the steps include: to start and deduces phase state machine, enters deduction and wait
State, receives entrance deduction after entering deduction instruction and carries out state;
Carrying out under state in the deduction deducing phase state machine, the main business state machine of service condition unit enters " troops
Divide " state, the deduction personnel input of main business state machine " starts to process " instruction, and subservice state machine is by " untreated " state
" in the process " state of entrance, each seat state machine of its subordinate starts to deduce instruction according to input deduces;Described each seat
State machine deduces subservice state machine entrance " process " state triggering correspondence after terminating, then this service condition unit can wait
The deduction of operational organization state to be entered;
Service condition unit deduces troops' division, operational organization, operational implementation and operation done state successively;All operations
After state deduction completes, trigger and deduce phase state machine entrance deduction completion status.
The termination of the main business state machine of first order seat state machine described in the inventive method exports as seat, the second level
The initial input of the main business state machine of state machine, is deduced by seat state machine;Advance successively, until n-th grade of seat shape
State machine has been deduced;Described 1~n level seat state machine deduced the deduction task of all operational states, then subservice state machine
All enter " process " state.
State machine is particularly suitable for describing when those occur to be had sequencing or has the thing of logical laws.The basis of state machine
Matter is exactly
Core that state machine is described and strong point.All things with logical order and temporal order are suitable for retouching with state machine
State.State in state machine, export and the concept such as input can preferably describe stage of deducing in process control, activity waited
Journey, it is possible to preferably for deducing the propelling of control process, it is ensured that deduce the order that process advances.
Use and have the beneficial effects that produced by technique scheme: utilization state machine of the present invention is deduced, will deduce
Task by the orderly executable unit being divided into next level of level, such as army-teacher-, make the deduction target of each unit
The clearest and the most definite, thus more effectively control each step deduced, result is deduced in more specific analysis;The present invention can preferably retouch
State the processes such as the stage in deduction process control, activity, it is possible to preferably for deducing the propelling of control process, it is ensured that deduced
The order that journey advances.
Accompanying drawing explanation
The present invention is further detailed explanation with detailed description of the invention below in conjunction with the accompanying drawings.
Fig. 1 is that the present invention deduces phase state machine state transition diagram;
Fig. 2 is the present invention " deduction is carried out " host state machine state transition diagram;
Fig. 3 is " troops' division " state machine state transfer figure;
Tu4Shi basic command post command system exemplary plot;
Fig. 5 is " troops' division " " in process " subservice state machine state transfer figure.
Detailed description of the invention
This deduction Process Control System based on nested type state machine is made up of following two kinds of state machine: control shape
State machine and service condition machine.Controlled state machine describes the controlled state of deduction process, and service condition machine describes industry during deducing
The state of business behavior, carries out the division of state machine according to the situation of practical business work.Each state machine is one hexa-atomic group
(in, S, S0, F, Sn, out):
In: input;
S: state set;
S0: original state;
F: transfer function;
Sn: final state;
Out: output.
This deduction Process Control System based on nested type state machine specifically includes deduction phase state machine and wooden fork shape structure
Service condition unit.
(1) phase state machine is deduced:
Whole deduction process is divided into deduction wait by deduction phase state machine, deduction carries out, deduced and deduces temporarily
Stop four states.Deduce and wait being original state and final state, deduce and carry out, deduced and deduce halted state for centre
State, the state between each state is displaced through transfer instruction and determines, as shown in Figure 1.Deducing waiting state is the standard before deducing
Standby state, treats that personnel, ER equipment ready, input " enter and deduce " instruction (man-machine interaction instruction), deduces phase state machine and push away
Proceed to deduction and carry out state.Deduce and carry out the major state that state is whole deduction, be made up of multiple service condition machines, when all industry
When business state machine state is final state, input " completes to deduce " instruction (man-machine interaction instruction), proceeds to deduce completion status.Push away
Drilling the finishing phase that completion status is deduction process, the data carrying out deducing preserve, document is brought to justice, input " exiting deduction " instruction
(man-machine interaction instruction), the deduction stage be returned to deduce waiting state, prepare next time deduce.Deducing halted state can be by being in
Deduce after any state carried out in stage condition sends " suspend and deduce " instruction (man-machine interaction instruction) and proceed to.
(2) service condition unit: by a main business state machine, several subservice state machines and some seats state
Mechanism becomes.
(1) main business state machine:
Under " deduction is carried out " state in a combat exercise, there is a main business state machine, including " troops' division "
State, " operational organization " state, " operational implementation " state and four states of " operation terminates " state;Main business state machine does not limit
In above-mentioned four kinds of states, different conditions also can be divided into as required.These four states are the concrete bodies of " deduction is carried out " state
Existing;When being in " deduction is carried out " state, it is necessarily in a current main business state machine state.When deducing phase state machine
When input " enters and deduce " instruction, main business state machine is advanced to " troops' division " state;When the input of " operation terminates " state is " complete
Become deduce " instruction time, deduce phase state machine be advanced to " deduction completes " state.Transfer basic process, as shown in Figure 2.
(2) subservice state machine:
The each state of host state machine shows as a sub-state machine the most respectively, and each sub-state machine comprises three kinds of states: do not locate
In reason, process, process;Sub-state machine is not limited to above-mentioned three kinds of states, also can be divided into different conditions as required.Each
The original state of subservice state machine is untreated.The state migration procedure of " troops' division " subservice state machine, such as Fig. 3 institute
Show.
(3) seat state machine:
When each subservice state machine is in " in process " state, it is made up of multiple seats state machine again, each seat shape
State machine comprise do not deduce, deduce neutralization deduced three states;Seat state machine is not limited to above-mentioned three kinds of states, also can basis
Require division into different conditions.Deduce phase state machine, main business state machine, subservice state machine and seat service condition machine it
Between relation and status list be shown in Table 1.
Table 1: nested type state machine state sample list
Seat state machine uses n level wooden fork shape structure to arrange: the termination of first order seat state machine exports as second level seat
The initial input of position state machine is deduced;Advance successively, until n-th grade of seat state machine has been deduced;Described 1~n level seat
Position state machine has deduced the deduction task of all operational states, then subservice state machine all enters " process " state, triggers main
Service condition machine enters the deduction of next operational state.The level of seat state machine is arranged as required to, such as army-teacher-
Tertiary structure.
(3) the realization analysis of service condition unit allocation:
1, service condition machine Row control example-troops' division state:
Fight deduce in Business Process Control and operational command system and its business contacted relation.In order to describe
Problem, first supposes that in deducing maneuvers process, command post builds according to a basic command post.Basic command post's command system example
As shown in Figure 4.
In deduction, basic command post is command post of army 1, teacher 1 command post by partition of the level, is rolled into a ball 1 command post, command post of army 1
Under divide leader's seat, operation seat etc., leader's seat is divided into again leader department _ 1 etc. according to function.If seat function service processes multiple
Miscellaneous can with further by function treatment for state machine form, process is controlled.Function is not the most done state machine process.
2, seat state machine is dealt with relationship:
(1) precedence relationship of each seat business operation in same command post:
In same command post between each seat, after the finishing service operation of only current leader seat, other seat could start
Business operation.For the definition of " completing ", i.e. seat state machine state becomes " deduction ".
(2) the business operation precedence relationship at command post of the superior and the subordinate leader seat:
When there is command post of the superior and the subordinate, only current higher level command post leader seat finishing service operation, command post of subordinate is first
Long Xi Caineng is advanced to " in the deduction " at this seat.
3, state machine running example:
State migration procedure is as shown in Figure 5.When operating under entrance " troops' division " " in process " state for the first time, only
Leader's seat state machine of You Jun 1 command post can normally be advanced into " in deduction ".After leader's seat of command post of army 1 completes operation,
It is advanced into " deduction " state, using the output signal business seat as the army of inputing to 1, leader's seat state machine of teacher 1 command post,
These state machines then can be advanced into " in deduction " state and carry out tissue manipulation.In like manner it is inferred that current teacher 1 command post completes
After task is advanced into " deduction " state, the business seat of teacher 1, the leader's seat state machine rolling into a ball 1 command post can be actuated for group
Knit operation.The like, carry out the propelling of each seat state machine.Each command post all seats state machine is deduced and is entered " deduction "
After state, subservice state machine is advanced into " process " state, and main business state machine state is advanced into from " troops' division " state
" operational organization " state.Thus, " operational organization " subservice state machine brings into operation.
Claims (7)
1. a deduction Process Control System based on nested type state machine, it is characterised in that: it includes deducing phase state machine
With service condition unit;
Described service condition unit is provided with main business state machine, and described main business state machine all includes some operational states;
Each operational state of described main business state machine is all correspondingly arranged on a sub-service condition machine, each subservice state
Machine includes untreated, the process complete three kinds of states of neutralisation treatment;
Each subservice state machine being in state in process all includes some seats state machine, seat state machine complete it main
The deduction task of service condition machine distribution;Described each seat state machine deduces the subservice state machine entrance triggering correspondence after terminating
" processed " state, then this service condition unit can enter the deduction of next operational state.
Deduction Process Control System based on nested type state machine the most according to claim 1, it is characterised in that: described seat
Position state machine uses n level wooden fork shape structure to arrange;The termination output of first order seat state machine is as seat, second level state machine
Initial input is deduced;Advance successively, until n-th grade of seat state machine has been deduced;Described 1~n level seat state machine push away
Drilled all of deduction task, then subservice state machine all enters " process " state, triggers main business state machine and enters next
The deduction of operational state.
Deduction Process Control System based on nested type state machine the most according to claim 1, it is characterised in that push away described in:
Drill phase state machine to include deducing wait, deducing to carry out, deduced and deduce and suspend four states.
Deduction Process Control System based on nested type state machine the most according to claim 1, it is characterised in that: described work
War state includes troops' division, operational organization, operational implementation and operation done state.
5. according to the deduction Process Control System based on nested type state machine described in claim 1-4 any one, its feature
Be: described each seat state machine comprise do not deduce, deduce neutralization deduced three states;It is in state in process when a certain
Subservice state machine in all seats state machine when being in having deduced state, corresponding subservice state machine is advanced to " place
Manage " state.
6. a deduction course control method for use based on nested type state machine, it uses the control system described in claim 4, its
Being characterised by: start and deduce phase state machine, enter deduction waiting state, reception enters entrance deduction after deducing instruction and carries out shape
State;
Carrying out under state in the deduction deducing phase state machine, the main business state machine of service condition unit enters " troops' division "
State, the deduction personnel input of main business state machine " starts to process " instruction, and subservice state machine is entered by " untreated " state
" in process " state, each seat state machine of its subordinate starts to deduce instruction according to input deduces;Described each seat state
Machine deduce terminate after trigger correspondence subservice state machine enter " process " state, then this service condition unit i.e. may wait for into
Enter the deduction of operational organization state;
Service condition unit deduces troops' division, operational organization, operational implementation and operation done state successively;All operational states
After deduction completes, trigger and deduce phase state machine entrance deduction completion status.
Deduction course control method for use based on nested type state machine the most according to claim 6, it is characterised in that: the first order
The termination output of seat state machine is as the initial input of seat, second level state machine;Advance successively, until n-th grade of seat state
Machine has been deduced;Described 1~n level seat state machine deduced the deduction task of all operational states, then subservice state machine enters
Enter " process " state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410349480.2A CN104122799B (en) | 2014-07-22 | 2014-07-22 | Deduction Process Control System based on nested type state machine and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410349480.2A CN104122799B (en) | 2014-07-22 | 2014-07-22 | Deduction Process Control System based on nested type state machine and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104122799A CN104122799A (en) | 2014-10-29 |
CN104122799B true CN104122799B (en) | 2016-08-31 |
Family
ID=51768257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410349480.2A Expired - Fee Related CN104122799B (en) | 2014-07-22 | 2014-07-22 | Deduction Process Control System based on nested type state machine and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104122799B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106548261A (en) * | 2015-09-21 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of Business Process Control method, device and electronic equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7257523B1 (en) * | 1999-05-06 | 2007-08-14 | Fisher-Rosemount Systems, Inc. | Integrated distributed process control system functionality on a single computer |
KR20070075957A (en) * | 2006-01-17 | 2007-07-24 | 주식회사 로보스타 | Robot control system for multi tasking based task |
CN101329694A (en) * | 2007-06-21 | 2008-12-24 | 上海北控智能科技有限公司 | Computer aided battlefield awareness method |
CN101908085B (en) * | 2010-06-28 | 2012-09-05 | 北京航空航天大学 | Multi-Agent-based distributive deduction simulation system and method |
CN102542740A (en) * | 2010-12-15 | 2012-07-04 | 北京航天长峰科技工业集团有限公司 | Land defence situation display and control method |
CN102710614A (en) * | 2012-05-16 | 2012-10-03 | 南征兵推(北京)信息技术研究院 | Network system platform for war game simulation |
-
2014
- 2014-07-22 CN CN201410349480.2A patent/CN104122799B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN104122799A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3399426B1 (en) | Method and device for training model in distributed system | |
CN100474240C (en) | Systems and methods for implementing an operating system in a virtual machine environment | |
CN103873321B (en) | Distributed file system-based simulation distributed parallel computing platform and method | |
CN103297456B (en) | Access method and the distributed system of resource is shared under a kind of distributed system | |
DE112013000486B4 (en) | Instruction uncertainty by instruction uncertainty for multi-threaded processors | |
CN101216793A (en) | Multiprocessor system fault restoration method and device | |
DE112012004728T5 (en) | Method, program and system for simulation execution | |
CN102790698B (en) | Large-scale computing cluster task scheduling method based on energy-saving tree | |
CN107025805A (en) | Coordinated decision system moment computational methods and correspondence system based on candidate mechanism | |
CN105138405B (en) | MapReduce task based on the Resources list to be released, which speculates, executes method and apparatus | |
CN105184385A (en) | Distributed control method of automatic manufacturing system | |
CN106716348A (en) | Shared resources in a data processing appartus for executing a plurality of threads | |
CN104122799B (en) | Deduction Process Control System based on nested type state machine and method | |
CN104866460B (en) | A kind of fault-tolerant adaptive reconfigurable System and method for based on SoC | |
CN104615445B (en) | A kind of equipment I O queuing methods based on atomic operation | |
GB2531143A (en) | Method of implementing a maintenance schedule for an aircraft and a maintenance system | |
CN104461705B (en) | A kind of method and storage control, cluster storage system of business access | |
CN102103649A (en) | Logic flow building method of device RMS (reliability maintenance supportability) analysis simulation task | |
CN106776032B (en) | The treating method and apparatus of the I/O request of distributed block storage | |
CN115049356A (en) | Cooperative operation concurrency conflict control method based on object ownership dynamic allocation and timeliness limitation | |
CN113590281B (en) | Distributed parallel fuzzy test method and system based on dynamic centralized scheduling | |
Cone et al. | Scheduling for sensor management using genetic search | |
CN106873355A (en) | A kind of selection of multipriority maintenance test instruction with control law instruction and changing method | |
CN105404577B (en) | A kind of partition operating system time monitoring method based on information sharing treatment mechanism | |
WO2012051972A2 (en) | Method for the efficient use of a dual- or multi-core processor by an operating system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160831 Termination date: 20170722 |