gpt4 book ai didi

UML 序列图中断运算符

转载 作者:行者123 更新时间:2023-12-01 13:49:35 25 4
gpt4 key购买 nike

执行下面序列图中的 save() 消息后是否会发生中断?

enter image description here

最佳答案

是的。
来自 UML2.5 的定义

Break

The interactionOperator break designates that the CombinedFragment represents a breaking scenario in the sense that the operand is a scenario that is performed instead of the remainder of the enclosing InteractionFragment. A break operator with a guard is chosen when the guard is true and the rest of the enclosing Interaction Fragment is ignored. When the guard of the break operand is false, the break operand is ignored and the rest of the enclosing InteractionFragment is chosen. The choice between a break operand without a guard and the rest of the enclosing InteractionFragment is done non-deterministically.

A CombinedFragment with interactionOperator break should cover all Lifelines of the enclosing InteractionFragment.

关于UML 序列图中断运算符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33007992/

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