正交状态解释

And*_*rew 6 state uml interpretation

以下引用句子的解释是什么UML Reference Manual

When an orthogonal state is entered, the number of control threads increases as a direct substate in each orthogonal region becomes active.

When the orthogonal state is exited, the number of control threads decreases.

Jim*_* L. 5

这是UML规范的复杂部分。在最简单的情况下,当您输入包含正交区域的状态时,每个正交区域中的初始伪状态实际上会启动单独的控制线程。关于这些线程如何使用事件以及线程如何重新结合在一起,有很多复杂的规则。

但是,根据我强烈推荐的方法学家(HS Lahman)的观点,您真的不应该使用普通的旧摩尔状态机。关于为什么要使用摩尔状态机(您可以在UML模型非常清楚),而不是米利或哈雷尔状态机的详细信息,请参阅此摘录Lahman的书。有关Moore和Mealy状态机之间的区别的更多信息,请参见此 StackExchange问​​题