gpt4 book ai didi

UML 状态机 - 具有入口事件的复合状态中的显式入口

转载 作者:行者123 更新时间:2023-12-04 20:15:11 25 4
gpt4 key购买 nike

我有一个关于 UML 状态机图的问题。

来自 UML 2.5 规范,“14.2.3.4.5 进入状态”,p. 307f.

Explicit entry: If the incoming Transition or its continuations terminate on a directly contained substate of the composite State, then that substate becomes active and its entry Behavior is executed after the execution of the entry Behavior of the containing composite State. This rule applies recursively if the Transition terminates on an indirect (deeply nested) substate.

e 成为我们的显式入口,这意味着对于给定的情况,A1(即 x)的入口事件被执行在 A(即 y)的进入事件之前,对吧?还是相反?

Diagram

谢谢。

最佳答案

Let e be our explicit entry, this means for the given situation that the entry activity of A1 (which is x) is executed before the entry activity of A (which is y), right? Or is it the other way round?

不,这是相反的(它的入口行为在之后执行包含复合状态的入口行为)所以xy

之后执行

这是合乎逻辑的,您在进入A1 之前输入A(您在进入大楼之前进入大楼)。在退出时,这当然是相反的,你先从 A1 退出,然后从 A

退出

关于UML 状态机 - 具有入口事件的复合状态中的显式入口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55796621/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com