EA&UML日拱一卒-活动图::14.2 Behavior StateMachines (11)

来源:互联网 发布:js select disabled 编辑:程序博客网 时间:2024/05/17 11:33

英文原文来自UML2.5,作者提供中文翻译。


14.2.5 Examples
Figure 14.36 is an example StateMachine diagram for the StateMachine for simple telephone. In addition to an initial Pseudostate, the StateMachine has an entry point called “activeEntry”. Also, in addition to the FinalState, it has an exit point called “aborted.”

图13.36是状态机的实例,它的内容是简单电话机的状态机。除了初始伪状态以外,状态机还有一个叫做“activeEntry”的进入点。同样地,除了完了状态以外,还有一个叫做“aborted”的退出点。



Figure 14.36 StateMachine diagram representing a telephone


An example of submachine usage is shown in Figure 14.12 and Figure 14.13.

子状态机用法的例子在图14.12和14.13中表示。


Figure 14.12 StateMachine with an exit point as part of the StateMachine graph 


Figure 14.13 StateMachine with an exit point on the border


参考资料:

《OMG Unified Modeling Language TM (OMG UML) Version 2.5》

  URL:http://www.omg.org/spec/UML/2.5

阅读更多更新文章,请扫描下面二维码,关注微信公众号【面向对象思考】


原创粉丝点击