gpt4 book ai didi

database - UML 状态图 + 导航栏 + 多个退出操作

转载 作者:搜寻专家 更新时间:2023-10-30 23:35:27 25 4
gpt4 key购买 nike

希望一切都好!我正在为网站制作 UML 状态图。如果你有一个导航栏,你会/可以有多个退出操作代表每个链接吗?

最佳答案

似乎只能定义一种退出行为(第 307 页):

14.2.3.4.3 State entry, exit, and doActivity Behaviors A State may have an associated entry Behavior. This Behavior, if defined, is executed whenever the State is entered through an external Transition. In addition, a State may also have an associated exit Behavior, which, if defined, is executed whenever the State is exited.

同样在后面的段落中,他们只用单数谈论exit。例如

14.2.3.4.6 Exiting a State When exiting a State, regardless of whether it is simple or composite, the final step involved in the exit, after all other Behaviors associated with the exit are completed, is the execution of the exit Behavior of that State. If the State has a doActivity Behavior that is still executing when the State is exited, that Behavior is aborted before the exit Behavior commences execution.

因此您需要测试 exit 行为中的状态转换以采取相应的操作。

注意我正在使用允许定义多个 exit 行为的 Enterprise Architect。无法定义任何守卫来确认我关于只允许一个 exit 的假设。所以这里的实现很可能被破坏了。

关于database - UML 状态图 + 导航栏 + 多个退出操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43354847/

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