Home > other >  Stateflow based series - parallel mechanism of finite state systems
Stateflow based series - parallel mechanism of finite state systems

Time:11-22

5. Finite state systems, parallel mechanism

5.1 parallel mechanism5.1.1 overview
In finite state systems, the behavior of the state can be divided into two broad categories: according to the analytic way mutually exclusive OR (exclusive OR) AND parallel state (parallel OR AND), if in the state of the hierarchical graph contains the state of the mutex, which means that the same time in a state of the same level is only one condition is active; If the status is set to parallel state, is located in the same level of all state is active at the same time, under the same level, status or is mutually exclusive, either in parallel, can't be the same level under the condition of the two modes coexist,
5.1.2 set state behavior
Same layer of the default mode is in a state of mutex Exclusive (OR),
Any blank space in the Stateflow right choice: Decomposition - & gt; The Parallel (AND)



Slot and state the border around the Player is a dotted line, so the two state is in a parallel state Stateflow:

Its internal contain sub-state NoDisk and HasDisk and Stop and Play state border is, so is the state of the mutex between sub-state, sub-state at the corresponding levels at the same time there can be only one active,
Conclusion: solid line - mutually exclusive; The dotted line - parallel,
5.1.3 execute in parallel state and the principle of activated
When state in parallel, the state of the parallel is not strictly be activated at the same time, their execution and activate also to have certain order,
Basic principles:
(1) in a graphical editor, position of higher status has higher execution order number;
(2) at the same level of parallel state, on the left side of the state has higher execution order number,

  • Related