UML 序列图中断运算符

标签 uml sequence-diagram

执行下面序列图中的 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/

相关文章:

uml - 如何表示一个包的所有类都实现了一个接口(interface)

class - 拆分 UML 类图?

uml - signal 和 Call in sequence Diagram 的区别

uml - 如何延长Dia序列图的生命线?

c - 如何描述可由序列图中的预处理器禁用或启用的序列图消息

uml - 如何在序列图中显示 "if"条件而不用 else

visual-studio - 在 Visual Studio 2017 中的类图中创建聚合和组合

objective-c - 如何从 Xcode4 生成 UML 图

Java - 对象多次创建自身 - 有任何设计模式吗?

uml - 类图到序列图规则