CN101311902A - State machine system associating with multi-instance and its realization method - Google Patents
State machine system associating with multi-instance and its realization method Download PDFInfo
- Publication number
- CN101311902A CN101311902A CNA2007100410307A CN200710041030A CN101311902A CN 101311902 A CN101311902 A CN 101311902A CN A2007100410307 A CNA2007100410307 A CN A2007100410307A CN 200710041030 A CN200710041030 A CN 200710041030A CN 101311902 A CN101311902 A CN 101311902A
- Authority
- CN
- China
- Prior art keywords
- state machine
- session
- instance
- state
- associating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides an association multi-example state mechanism system and a realization method thereof. The association multi-example state mechanism system is arranged between an operator and an operating object, which adopts a limited state mechanism method to describe the object, control a plurality of object state mechanism examples and complete an instruction transmitted by the operator through coordinating the operation of the examples. The system consists of a management unit and a state unit. The management unit uses a dialog to describe the association logic included in an instruction and coordinates the examples to jointly complete the action sequence required by the instruction through the dialog management, namely, the generation, implementation, maintenance and cancellation of the dialog. The state unit uses the state of the state mechanism maintenance example and controls the operating object to implement the specific action. The system of the invention separates the association logic from the object state mechanism, so that the object state mechanism can have simple and independent design. Through introducing the dialog mechanism, the system can definitely describe the association logic included in the instruction and effectively coordinate the operation of examples to achieve the multi-object control.
Description
Technical field
The invention belongs to data communication technology field, particularly a kind of state machine system associating with multi-instance and its implementation.
Background technology
Finite state machine FSM (Finite State Machine) is a kind of basic, simple, important techniques.It is made of limited state and transfer each other, at any time can only be in the state of given number.When receiving an incoming event, state machine produces an output, also may be accompanied by the transfer of state simultaneously.Along with industrial expansion and development of technology, Finite State Machine is widely used in fields such as communication, computing machine, robotization controls.
In the application of reality, often not only one of the object (or target) that needs operation.For example: in the call control system in radio communication, the number of calls that a certain moment may be controlled can reach 7 at most; In the robot control system in robotization control, can control a plurality of robots work compound simultaneously.In addition, use for the ease of operating and being easy to, the steering order that offers the operator must be simple (or abstract), and the operator does not need to be concerned about the execution details of instruction, because the implementation of instruction is very long and complicated often.Such as: in the call control system in radio communication, in order to initiate a new calling, the user only need simply send instruction, and " to dial a phone " just passable, and call control system then needs to realize complicated logic: if system is idle this moment, can directly initiate new calling; If there has been a calling in system, then must hang up or hang up existing the calling earlier, just can initiate new calling then.Again such as: in the robot control system in the robotization control, in order to finish a procedure W, the user only need send instruction, and " to finish operation W " just passable, robot control system then needs to realize concrete logic: the A of robot carries out the W1 action, the B of robot finishes the W2 action then,, or the like.
The actual conditions of using from engineering as can be seen, for the control system with a plurality of operands, how effectively how its gordian technique for realizing collaborative/related, the implementation of steering order of multi-object.Method commonly used at present roughly has following two kinds:
Method one: in the state machine of controlling object, realize the correlation logic between the example, coordinate the operation of each example by increase state (or increasing mark).Its typical execution process instruction is: instruction W receives in system, allows example 1 at first carry out action A, and allows other example be in a certain intermediateness wait; A is finished when action, and the example that example 1 drives other state that mediates again continues to carry out, and carries out up to instruction and finishes.This is a kind of method the most intuitively, but it also exists significant disadvantages:
1, state machine object need be paid close attention to the state of other example, is difficult to independent design;
2, for the implementation of steering order, state machine object need increase a lot of intermediatenesses (or mark);
3, the steering logic complexity of state machine object is difficult to maintenance and expansion.
Method two: the method that adopts system state machine and state machine object to combine, state machine object is described the state of single object, and the system state machine is then described assembled state and the mode of operation that many examples may exist.Its typical execution process instruction is: when the supposing the system state machine was in a certain assembled state S1, instruction W received in system; System state machine order example 1 is earlier carried out action A, and the system state machine jumps to a certain intermediateness S2 wait then; A is finished when action, and system state machine (the current state S2 that mediates) orders other example to continue to carry out again, carries out up to instruction and finishes.The advantage of the method is: realize the correlation logic of instruction by the system state machine, and control the execution of each example that the state machine object logic is simple, can independent design.The shortcoming of the method is:
1, the design of system state machine is complicated, in theory the assembled state of necessary all object instances of limit of system state machine.If an object has N state, then there be N~M assembled state in M example, therefore very easily produces the problem of state explosion;
2, for the implementation of steering order, the system state machine also must define a lot of intermediatenesses or mark;
3, the system state machine is difficult to maintenance and expansion, because state machine object increases or the minimizing state, all can cause the huge change of system state machine.
Summary of the invention
The object of the present invention is to provide a kind of state machine system associating with multi-instance and communication means thereof, control, more effectively coordinate the implementation that each operand is finished instruction jointly to realize multi-object better.
For reaching above-mentioned purpose, the present invention adopts following technical scheme:
A kind of state machine system associating with multi-instance comprises:
State cell adopts the finite state machine description object, and each controlling object is instantiated as a state machine instance, is used to realize generation, operation and the destruction of a plurality of these state machine instance;
Administrative unit, described administrative unit adopts session to represent the life cycle that an instruction is carried out, be used to realize the correlation logic that instructs, and the implementation of steering order, it receives operator's instruction and to the execution result of operator's link order, and it receives the notice of operand and to operand transmit operation request, to described state cell query State information, and to the state machine instance transmit status machine incident of correspondence, the operation of driving condition machine example.
Wherein, described session comprises:
(1) the session entry sequence of forming by a series of session entry; Described session entry is represented an operation to state machine instance, and described session entry comprises: carry out object, execution action, successful decision condition, failure decision condition, failure processing;
(2) execution pattern of described session entry sequence;
(3) processing of conversation end.
Wherein, this state machine system associating with multi-instance is a radio communication state machine system associating with multi-instance, and described state cell is used for the maintenance of call state and the example of setting call state machine; Independent mutually between the example, each example is responsible for the control of an audio call;
Described administrative unit receives instruction that human-machine interface module sends and to the execution result of human-machine interface module link order, the notice of described administrative unit received communication protocol stack module and to communication protocol stack module transmit operation request, to described state cell query State information, and, drive the operation of call state machine example to the call state machine example transmit status machine incident of correspondence.
On the other hand, the present invention also provides a kind of implementation method of associating with multi-instance state machine, comprising:
The state cell step, the described state cell in this step adopts the finite state machine description object, and each controlling object is instantiated as a state machine instance, is used to realize generation, operation and the destruction of a plurality of these state machine instance;
The administrative unit step, described administrative unit in this step adopts session to represent the life cycle that an instruction is carried out, be used to realize the correlation logic that instructs, and the implementation of steering order, it receives operator's instruction and to the execution result of operator's link order, and it receives the notice of operand and to operand transmit operation request, to described state cell query State information, and to the state machine instance transmit status machine incident of correspondence, the operation of driving condition machine example.
Wherein, described session comprises:
(1) the session entry sequence of forming by a series of session entry; Described session entry is represented an operation to state machine instance, and described session entry comprises: carry out object, execution action, successful decision condition, failure decision condition, failure processing;
(2) execution pattern of described session entry sequence;
(3) processing of conversation end.
Wherein, the execution pattern of described session entry sequence is concurrent execution pattern or order execution pattern.
Wherein, the execution of described instruction comprises generation, execution, maintenance and the destruction of session.
Wherein, the step of the generation of described session is: when administrative unit received operator's instruction, administrative unit produced session according to the status information of many examples in the state cell, and this session will exist always, be finished up to this instruction.
Wherein, comprise concurrent execution pattern and order execution pattern in the execution in step of described session, under burse mode, the session entry sequence will unconditionally be carried out simultaneously; Under the order execution pattern, the session entry sequence will be carried out successively according to sequencing, and and if only if, and previous session entry completes successfully, and a back session entry just can begin to carry out, and first session entry will unconditionally be carried out.
Wherein, the step of the maintenance of described session is: the session that reservation is not finished is in the middle of administrative unit, and when executive condition satisfies, this session will continue to carry out.
Wherein, the step of the destruction of described session is: the session that finishes is carried out in described administrative unit deletion.
Wherein, the mode that described execution finishes comprises anomalous mode and normal mode, and described anomalous mode is: any one session entry is carried out failure, and this session anomalous mode finishes, and carries out the failure processing of this session entry.
Wherein, described state machine instance is dynamically to produce.
Wherein, described state machine instance is a static defining.
Wherein, the implementation method of this associating with multi-instance state machine is the implementation method of a radio communication associating with multi-instance state machine, and described state cell is used for the maintenance of call state and the example of setting call state machine; Independent mutually between the example, each example is responsible for the control of an audio call;
Described administrative unit receives instruction that human-machine interface module sends and to the execution result of human-machine interface module link order, the notice of described administrative unit received communication protocol stack module and to communication protocol stack module transmit operation request, to described state cell query State information, and, drive the operation of call state machine example to the call state machine example transmit status machine incident of correspondence.
One aspect of the present invention has been simplified the design of state machine, makes that the design of state machine is more independent; On the other hand, it is separate that the session of administrative unit produces logic, can flexible expansion, realized good scalability.
Further specify the present invention below in conjunction with drawings and Examples.
Description of drawings
Fig. 1 is the state machine system associating with multi-instance configuration diagram;
Fig. 2 is that the session of administrative unit produces flow process;
Fig. 3 is the session management flow process of administrative unit;
Fig. 4 is that flow process is carried out in the session of burse mode;
Fig. 5 is that flow process is carried out in the session of ordered mode;
Fig. 6 is the operational scheme of state cell;
Fig. 7 is applied to structural representation in the mobile phone for the embodiment of the invention.
Embodiment
Embodiment one, state machine system associating with multi-instance
As shown in Figure 1, state machine system associating with multi-instance 10 in the present embodiment is middleware systems between operator 13 and operand 14 or claims control system, this system adopts the method for finite state machine that operand 14 is described, and each object is embodied as a state machine instance.Instruction that person 13 sends that the operation of each example of system coordination comes the complete operation, and shield concrete execution details, for the user provides the shirtsleeve operation interface.This system comprises administrative unit 11 and 12 two parts of state cell.Wherein administrative unit 11, state cell 12; The operator 13; Interface between the operand 14 is described below:
Interface 15: the instruction that administrative unit 11 receives from operator 13;
Interface 16: the notice that administrative unit 11 receives from operand 1416;
Interface 17: administrative unit 11 is to state cell 12 query State information, transmit status machine incident;
Interface 18: state machine system associating with multi-instance 10 is to the execution result of operator's 13 link orders;
Interface 19: state machine system associating with multi-instance 10 is to operand 14 transmit operation requests.
The framework of state machine system associating with multi-instance 10 is applicable to various platforms, and this system can specific implementation be a process, communicates by letter with operand 14 with peripheral operation person 13 by modes such as socket (socket) or message queues.Whether administrative unit 11 and state cell 12 are embodied as thread is determined on a case-by-case basis, and the communication between them (interface 17) form includes but not limited to: pipeline, event queue, global variable, function call etc.
One, state cell 12
State cell 12 finite state machine description object, each controlling object are instantiated as a state machine instance.State cell 12 is responsible for generation, operation and the destruction of a plurality of state machine instance, and the status information of many examples is provided to administrative unit 11.
Two, administrative unit 11
Described administrative unit 11 adopts session to represent the life cycle that an instruction is carried out, and realizes the correlation logic of instruction, and the implementation of steering order.When an instruction is received by system, produce a new session; When this instruction is finished (normal or unusual), when returning execution result, this conversation end.Conversation description concrete execution in step of being comprised of instruction and the correlation logic between each execution in step.Correlation logic between many examples mainly contains two types: concurrent actuating logic, and promptly many examples are carried out some action simultaneously; The order actuating logic, promptly many examples are successively carried out some action sequence.Described session comprises following key element:
(1) session entry sequence, i.e. sequence of steps.The sequence of forming by a series of session entry; Session entry is represented an operation to example, and it comprises following key element:
A, execution object are promptly carried out the set of the example of this operation;
B, execution action, i.e. the operation of Zhi Hanging;
C, successful decision condition, the i.e. decision condition that runs succeeded of this session entry;
D, failure decision condition, promptly this session entry is carried out the decision condition of failure;
E, failure are handled, and promptly this session entry is carried out the processing action of failure.
(2) execution pattern, the expression correlation logic, i.e. the execution pattern of session entry sequence, as: concurrent execution or order are carried out;
(3) end process, i.e. the processing of conversation end action.
Administrative unit 11 is responsible for the management of session, comprises generation, execution, maintenance and the destruction of session.The implementation of session is the implementation of representative instruction just, the correlation logic that on behalf of instruction, the execution pattern of session entry sequence just comprise.Thereby make administrative unit 11 can realize the coordination control of many examples and the execution of instruction.Wherein, the generation of described session, execution, maintenance and destruction concrete steps are described below:
1, the generation of session.When an instruction was received by system, administrative unit 11 produced session according to the status information of many examples in the state cell 12.This session will exist always, be finished up to this instruction.
2, the execution of session.Session entry sequence in the session has two kinds of execution patterns: concurrent execution pattern and order execution pattern.Under burse mode, the session entry sequence will unconditionally be carried out simultaneously; Under the order execution pattern, the session entry sequence will be carried out successively according to sequencing, and previous session entry that and if only if completes successfully (satisfying successful decision condition), and a back session entry just can begin to carry out, and first session entry will unconditionally be carried out.
3, the maintenance of session.For the complete life cycle that recording instruction is carried out, the session that is not finished will be retained in the middle of the administrative unit 11 always, and when executive condition satisfies, this session will continue to carry out.
4, the destruction of session.Have only the session of the end carried out just can be destroyed.Session may finish in two ways: anomalous mode and normal mode.Any one session entry is carried out failure (satisfying the failure decision condition), all can cause the abnormal ending of session, carries out the failure of this session entry and handles.The normal termination of the session then execution pattern with session is relevant: for burse mode, and if only if all when carrying out sequences all by successful execution, just normal termination of session; For ordered mode, and if only if, and all carry out sequences all by after the successful execution successively, just normal termination of session.Session normal or abnormal ending will be deleted by administrative unit 11, promptly destroy.
In the administrative unit 11, the implementation effect of session entry is the operation of driving condition machine example, and the state machine that is embodied as usually to corresponding instance sends incident.State cell 12 is responsible for accepting state machine incident, and drives corresponding state machine operation.
Embodiment two, state machine system associating with multi-instance
The session of administrative unit 11 produces flow process as shown in Figure 2, and is specific as follows:
20) beginning receives from operator 13 instruction or from the notice of operand 14;
21) by the status information of interface 17 to the many examples of state cell 12 inquiries;
22) administrative unit 1112 is according to step 21) status information produce correct session;
23) administrative unit 11 is preserved this session, process ends.
The session of all preservations is in charge of by administrative unit 11, comprises execution, maintenance and the destruction of session.The session management flow process of administrative unit 11 as shown in Figure 3.Specific as follows:
30) administrative unit 11 judges whether there is executable session in existing session; If then enter step 31), otherwise process ends;
31) carry out session (detailed description sees below);
32) judge whether this session is finished, if then enter step 33), otherwise this session will still be kept in the administrative unit 11, change step 30);
33) destroy this session; Change step 30).
Wherein, described step 31) carry out in the conversation procedure, exist concurrent execution to carry out two kinds of different session execution patterns with order.Now be described below respectively.
One, concurrent execution pattern
Concurrent execution pattern realizes the logic of the concurrent execution of many examples, and its treatment scheme as shown in Figure 4.Specific as follows:
40) judge whether all session entry are all carried out, if not, for example have the new session that produces, then change step 46); If then enter step 41);
41) executed session entry being carried out fail condition judges;
42) carry out failure if having session entry; Then change step 47); Otherwise enter step 43);
43) carry out successfully condition criterion;
44) if all session entry all run succeeded; Then enter step 45), otherwise keep this session, this flow process finishes.
45) end process of execution session, session finishes with normal mode;
46) carry out whole session entry, flow process finishes.
47) failure of carrying out this session entry is handled, and session finishes with anomalous mode.
Two, order execution pattern
The order execution pattern realizes the logic that many examples are carried out in proper order, and its treatment scheme as shown in Figure 5.Specific as follows:
50) judge whether to exist the session entry that can carry out immediately,, for example newly produce first session entry of session, then change step 58 if exist), otherwise enter step 51);
51) executed session entry fail condition is judged;
52) judge whether the session entry that this session is carried out recently satisfies fail condition, if then enter step 59); Otherwise enter step 53);
53) executed session entry success conditions is judged;
54) judge whether this session entry satisfies success conditions.If then enter step 55), otherwise finish.
55) judged whether that the subsequent session item can carry out, if not, then changeed entering 56), if then change step 57);
56) carry out conversation end and handle,
57) carry out next session entry; This session finishes with normal mode.
58) carry out this session entry, flow process finishes.
59) failure of carrying out this session entry is handled, and this session finishes with anomalous mode.
State cell 12 uses the method description object of finite state machine.Because correlation logic is realized in administrative unit 11, so state machine object can have simple and independent design.State cell 12 is responsible for accepting state machine incident, and drives the operation of a plurality of state machine instance.State machine instance can dynamically produce, and for example, in calling system described later, has only new foundation to call out, and just newly makes a call 1 o'clock, promptly dynamically produces a state machine instance.Also can static defining.
The operational scheme of state cell 12 as shown in Figure 6.Specific as follows:
60) accepting state machine incident;
61) judge whether to receive incident, if enter step 62), otherwise finish;
62) executing state machine incident is changeed step 60).
The present invention is specially adapted to have a plurality of operands 14 (same or similar), needs each object cooperation to finish the occasion of user instruction.System of the present invention and platform independence all are suitable for Windows, Linux and various real time operating system, can be widely used in communicating by letter, the technical fields such as middleware, control system in field such as control automatically.
Embodiment three, radio communication state machine system associating with multi-instance and its implementation
State machine system associating with multi-instance can be applied to a lot of fields.With the wireless communication field is example, and wireless communication terminal (for example mobile phone) requires can control at most 7 audio calls.(3GPP22.030) according to 3G (Third Generation) Moblie partner plan specification, the user can be by simple man-machine interface (MMI, Man-Machine Interface, be used to show human-computer interaction interface, the processing human-machine interactive information) a plurality of callings are set up and controlled to module operation, realize basic voice call function (making a call/incoming call answering/hang up), the supplementary service (Call Waiting/calling maintenance/MPTY) relevant with calling.For example:
Telephone number+transmission (SEND): initiate new calling;
0+SEND: hang up the calling that is in " maintenance " and " wait " state;
1+SEND: hang up the calling that is in " conversation " state, answer the calling that is in " maintenance " or " wait " state;
2+SEND: remain in the calling of " conversation " state, answer the calling that is in " maintenance " or " wait " state;
......
As shown in Figure 7, for the voice call control functions such as supplementary service relevant that in mobile phone, realizes above-mentioned complexity with calling, radio communication state machine system associating with multi-instance 100 in the present embodiment is a middleware, promptly be used for realizing voice call control shielding complicated operations details, for MMI module 130 provides simple service interface.It is between operator-human-machine interface module 130 and the operand-communication protocol stack module 140.
Wherein, the interface 150 between this system 100 and the MMI module 130 is used for receiving the calling control request from MMI module 130, for it provides the control service of calling out.This interface 150 can be with reference to 3GPP TS27.007 standard, and the form of ordering with AT defines the calling control request, such as:
ATD: make a call
ATA: incoming call answering
ATH: hang up
AT+CHLD=X: call out related supplementary service (X=0/1/2/ ..., corresponding " 0+SEND ", " 1+SEND ",
Function requests such as " 2+SEND ")
……
Wherein, connect 180 between this system 100 and the MMI module, be used to transmit the result and the indication information of call operation.This interface 180 also can be with reference to 3GPP TS27.007 standard, defines the response of call operation with the form of AT command response, such as:
RING: incoming call indication
OK: call operation success
ERROR: call operation failure
……
Wherein, this system 100 realizes complicated voice call control by mutual with communication protocol stack module 140.Between this system 100 and the communication protocol stack module 140 connect 160, connecing 190 equally can be with reference to 3GPP TS24.007 normalized definition, as:
MNCC_XXx_IND: the calling indication of communication protocol stack
MNCC_XXX_CNF: the affirmation of call request
MNCC_XXX_REJ: the refusal of call request
……
MNCC_XXX_REQ: call request
MNCC_XXX_RSP: call
……。
This radio communication state machine system associating with multi-instance 100 specifically comprises: state cell 120 and administrative unit 110.Wherein,
State cell 120 is used for the maintenance of call state, and it sets the example of maximum maintainable call state machines according to actual conditions, for example is set to the example of 7 common call state machines.Independent mutually between the example, each example is responsible for the control of an audio call.The specific implementation of call state machine is carried out according to demand, and a simple call state machine can be defined as following state:
Initialization: original state
In the exhalation: call out in the dial-out, set up
In the incoming call: during calling is dialled in, wait for and setting up
Conversation: call out successfully and set up
In the maintenance: keep operation to calling out to carry out
In the recovery: carry out recovery operation to calling out
Keep: calling is in hold mode
Hang up: call out and hang up
Disconnect: calling disconnects
Call state machine is handled the incident relevant with this calling, and these incidents comprise: from user's request with from the indication and the response of communication protocol stack module 140.For example:
E_SETUP_REQ: set up and breathe out
E_HOLD_REQ: keep calling out
……
E_SETUP_IND: incoming call indication
E_HOLD_CNF: call out and preserve successfully
……
Based on the state and the incident of above definition, call state machine can simply be embodied as following bivariate table:
Current call state | The current state machine incident of receiving |
Corresponding disposal route | New call state |
Administrative unit 110, administrative unit 110 is responsible for the management of session, the i.e. generation of session, execution, maintenance and destruction.The method that produces session has: function, question blank etc.The session that produces is relevant with the state of external message that receives and current all-calls.Therefore, each list item of question blank can be defined as:
{ message of receiving, system state, the session of generation };
Wherein, " session of generation " can be expressed as { session entry sequence, execution pattern, end process }.
With the Outgoing Call is example, and administrative unit is for the ATD request message, and possible inquiry list item has:
The message of receiving | System state | The session { session entry sequence, execution pattern, end process } that produces |
ATD | System does not have the calling of " conversation " state | Session entry 1{ calls out 1, and E_SETUP_REQ, " conversation ", " disconnection ", the failure of breathing out is handled }, order is carried out, and conversation end is handled A} |
ATD | There is the calling of " conversation " state in system: call out 1 | { { session entry 1{ calls out 1, E_HOLO_REQ, " maintenance " or " disconnection ", " conversation ", keep failure to handle }, session entry 2{ calls out 2, E_SETUP_REQ, " conversation ", " disconnection ", the failure of breathing out is handled }, order is carried out, the conversation end treatments B } |
Administrative unit 110 is according to the session of all generations of flow performing shown in Figure 3, and the session of burse mode and ordered mode is respectively according to the flow performing of Fig. 4 and Fig. 5.The execution action of each session entry is embodied as: by interface 170 certain state machine instance transmit status machine incident to state cell 120, finish corresponding call processing action thereby drive it.
State machine system associating with multi-instance is applied to the voice call control of wireless communication terminal, has simplified the design of call state machine on the one hand, make that the design of call state machine is more independent; On the other hand, it is separate that the session of administrative unit produces logic, can flexible expansion, realized good scalability.
Claims (15)
1, a kind of state machine system associating with multi-instance is characterized in that comprising:
State cell adopts the finite state machine description object, and each controlling object is instantiated as a state machine instance, is used to realize generation, operation and the destruction of a plurality of these state machine instance;
Administrative unit, described administrative unit adopts session to represent the life cycle that an instruction is carried out, be used to realize the correlation logic that instructs, and the implementation of steering order, it receives operator's instruction and to the execution result of operator's link order, and it receives the notice of operand and to operand transmit operation request, to described state cell query State information, and to the state machine instance transmit status machine incident of correspondence, the operation of driving condition machine example.
2, state machine system associating with multi-instance according to claim 1 is characterized in that: described session comprises,
(1) the session entry sequence of forming by a series of session entry; Described session entry is represented an operation to state machine instance, and described session entry comprises: carry out object, execution action, successful decision condition, failure decision condition, failure processing;
(2) execution pattern of described session entry sequence;
(3) processing of conversation end.
3, state machine system associating with multi-instance according to claim 1 and 2, it is characterized in that: this state machine system associating with multi-instance is a radio communication state machine system associating with multi-instance, described state cell is used for the maintenance of call state and the example of setting call state machine; Independent mutually between the example, each example is responsible for the control of an audio call;
Described administrative unit receives instruction that human-machine interface module sends and to the execution result of human-machine interface module link order, the notice of described administrative unit received communication protocol stack module and to communication protocol stack module transmit operation request, to described state cell query State information, and, drive the operation of call state machine example to the call state machine example transmit status machine incident of correspondence.
4, a kind of implementation method of associating with multi-instance state machine is characterized in that comprising:
The state cell step, the described state cell in this step adopts the finite state machine description object, and each controlling object is instantiated as a state machine instance, is used to realize generation, operation and the destruction of a plurality of these state machine instance;
The administrative unit step, described administrative unit in this step adopts session to represent the life cycle that an instruction is carried out, be used to realize the correlation logic that instructs, and the implementation of steering order, it receives operator's instruction and to the execution result of operator's link order, and it receives the notice of operand and to operand transmit operation request, to described state cell query State information, and to the state machine instance transmit status machine incident of correspondence, the operation of driving condition machine example.
5, the implementation method of associating with multi-instance state machine according to claim 4 is characterized in that: described session comprises,
(1) the session entry sequence of forming by a series of session entry; Described session entry is represented an operation to state machine instance, and described session entry comprises: carry out object, execution action, successful decision condition, failure decision condition, failure processing;
(2) execution pattern of described session entry sequence;
(3) processing of conversation end.
6, the implementation method of associating with multi-instance state machine according to claim 5 is characterized in that: the execution pattern of described session entry sequence is concurrent execution pattern or order execution pattern.
7, the implementation method of associating with multi-instance state machine according to claim 5 is characterized in that: the execution of described instruction comprises the generation of session, execution, maintenance and destruction.
8, the implementation method of associating with multi-instance state machine according to claim 7, it is characterized in that: the step of the generation of described session is: when administrative unit receives operator's instruction, administrative unit is according to the status information of many examples in the state cell, produce session, this session will exist always, be finished up to this instruction.
9, the implementation method of associating with multi-instance state machine according to claim 7 is characterized in that: comprise concurrent execution pattern and order execution pattern in the execution in step of described session, under burse mode, the session entry sequence will unconditionally be carried out simultaneously; Under the order execution pattern, the session entry sequence will be carried out successively according to sequencing, and and if only if, and previous session entry completes successfully, and a back session entry just can begin to carry out, and first session entry will unconditionally be carried out.
10, the implementation method of associating with multi-instance state machine according to claim 7 is characterized in that: the step of the maintenance of described session is: the session that reservation is not finished is in the middle of administrative unit, and when executive condition satisfies, this session will continue to carry out.
11, the implementation method of associating with multi-instance state machine according to claim 7 is characterized in that: the step of the destruction of described session is: the session that finishes is carried out in described administrative unit deletion.
12, the implementation method of associating with multi-instance state machine according to claim 11, it is characterized in that: the mode that described execution finishes comprises anomalous mode and normal mode, described anomalous mode is: any one session entry is carried out failure, this session anomalous mode finishes, and carries out the failure processing of this session entry.
13, the implementation method of associating with multi-instance state machine according to claim 4 is characterized in that: described state machine instance is dynamically to produce.
14, the implementation method of associating with multi-instance state machine according to claim 4 is characterized in that: described state machine instance is a static defining.
15, according to the implementation method of claim 4 to the described associating with multi-instance state machine of claim 14, it is characterized in that: the implementation method of this associating with multi-instance state machine is the implementation method of a radio communication associating with multi-instance state machine, described state cell is used for the maintenance of call state and the example of setting call state machine; Independent mutually between the example, each example is responsible for the control of an audio call;
Described administrative unit receives instruction that human-machine interface module sends and to the execution result of human-machine interface module link order, the notice of described administrative unit received communication protocol stack module and to communication protocol stack module transmit operation request, to described state cell query State information, and, drive the operation of call state machine example to the call state machine example transmit status machine incident of correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100410307A CN101311902A (en) | 2007-05-22 | 2007-05-22 | State machine system associating with multi-instance and its realization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100410307A CN101311902A (en) | 2007-05-22 | 2007-05-22 | State machine system associating with multi-instance and its realization method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101311902A true CN101311902A (en) | 2008-11-26 |
Family
ID=40100561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007100410307A Pending CN101311902A (en) | 2007-05-22 | 2007-05-22 | State machine system associating with multi-instance and its realization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101311902A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214187A (en) * | 2010-04-12 | 2011-10-12 | 阿里巴巴集团控股有限公司 | Complex event processing method and device |
CN102256020A (en) * | 2011-04-07 | 2011-11-23 | 深圳市共进电子有限公司 | Voice over Internet service control device and method |
WO2012151885A1 (en) * | 2011-05-10 | 2012-11-15 | 清华大学 | Universal control kernel system |
CN108334384A (en) * | 2018-02-10 | 2018-07-27 | 郑州天迈科技股份有限公司 | 4G module management methods based on state machine |
CN110827180A (en) * | 2019-10-24 | 2020-02-21 | 浙江工商大学 | Method for managing classroom test process in small-scale mobile terminal classroom teaching system |
CN113031921A (en) * | 2020-12-31 | 2021-06-25 | 南京汉隆科技有限公司 | Development framework and implementation method of network phone application software |
-
2007
- 2007-05-22 CN CNA2007100410307A patent/CN101311902A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214187A (en) * | 2010-04-12 | 2011-10-12 | 阿里巴巴集团控股有限公司 | Complex event processing method and device |
CN102214187B (en) * | 2010-04-12 | 2017-03-01 | 阿里巴巴集团控股有限公司 | Complex event processing method and device |
CN102256020A (en) * | 2011-04-07 | 2011-11-23 | 深圳市共进电子有限公司 | Voice over Internet service control device and method |
WO2012151885A1 (en) * | 2011-05-10 | 2012-11-15 | 清华大学 | Universal control kernel system |
CN108334384A (en) * | 2018-02-10 | 2018-07-27 | 郑州天迈科技股份有限公司 | 4G module management methods based on state machine |
CN108334384B (en) * | 2018-02-10 | 2023-07-21 | 郑州天迈科技股份有限公司 | 4G module management method based on state machine |
CN110827180A (en) * | 2019-10-24 | 2020-02-21 | 浙江工商大学 | Method for managing classroom test process in small-scale mobile terminal classroom teaching system |
CN113031921A (en) * | 2020-12-31 | 2021-06-25 | 南京汉隆科技有限公司 | Development framework and implementation method of network phone application software |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101311902A (en) | State machine system associating with multi-instance and its realization method | |
CN106161480B (en) | SMS platform service scheduling method based on gateway resource pond | |
CN1867000B (en) | Call authority control method and system | |
JP6248108B2 (en) | Smart home system based on call center and method for realizing the same | |
CN101106609A (en) | Forwarding method of soft call | |
CN102694932A (en) | Method and system for intelligently accessing call center through mobile internet | |
CN100596155C (en) | Method for joint command of multimedia scheduling table and monitoring system | |
CN107181635A (en) | A kind of method and system of upgrade server external equipment | |
CN104735271A (en) | Method for intelligent multimedia telephone terminal to process voice services and terminal | |
CN101699883A (en) | Call forwarding system and call forwarding method thereof | |
CN107967098A (en) | A kind of button exchange method and device | |
CN101472020A (en) | Method, device and system for implementing network telephone business | |
CN110515662A (en) | Long-range control method, system, equipment and the readable storage medium storing program for executing of dual-system device | |
CN109922295A (en) | The management system and management method of a kind of intelligent alarm and video intercom | |
JP3727013B2 (en) | Communication management apparatus, communication management information setting method and processing program therefor | |
CN103095940A (en) | Scheduling method based on touch screen control and system of scheduling method | |
CN107800857A (en) | VoLTE call control methods, device and call terminal | |
CN103685776A (en) | Method and device for processing call | |
CN105554322A (en) | Method for realizing IVR (Interactive Voice Response) configuration based on WEB | |
CN109605388A (en) | A kind of long-range control method based on service robot stage task | |
CN101242400A (en) | System and method for realizing network click dialing capability based on HTTP redirection | |
JP5186931B2 (en) | Portable terminal device, control method, control program, and recording medium | |
US20090210361A1 (en) | Multi-platform control system for controlling machines | |
CN109714834A (en) | Communication means, apparatus and system | |
CN208112659U (en) | Unified Communication dispatching platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20081126 |