[Machine] to talk about the state of self-experience and application scenarios

Foreword

  The state machine appear more in the computer field, recently doing DM session management when there is the concept of finite state diagram and echoes some of the state machine concept before moving on titanium learned, when the state machine vertical and horizontal throughout the company, but I do not know how many people have flexible use.

FMS finite state machine

  To talk about, finite state machine (FMS), FSM resolve an input sequence, through the FSM, what ultimately remain in such a state problem. Pay more attention to is the transition between the state of the system, and the state, the state is a result of historical input, for a system, input and output factors, boundaries, impacts are likely to change the state, in general input will lead to changes in the state, and the state may have to change the output, or make some appropriate.

React front-end frame

  One kind of front-end framework, a self-proclaimed state machine, each component is a state machine, I think this is the most consistent with a state machine definition, Why? Because React feeling after receiving input from the outside action, according to the state will re-render the assembly, it will be with the Observer pattern, so I think it is closer to the essence of the state machine - state drive

State mode

  State pattern design pattern is the content, but the states and state machines are not the same. If there is a class state, so their status is very much, but a lot of time on the status mode with a state in which the state on behalf of their class. The DM is not the case, the state of the dialogue system is difficult exhaustive. So state model is a relatively low-level applied.

Guess you like

Origin www.cnblogs.com/iCanhua/p/11444420.html