UML 中的共区域

发布于 2024-08-18 22:25:22 字数 22 浏览 3 评论 0原文

UML 序列图中的共区是什么?

What are coregions in UML sequence diagrams?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

放我走吧 2024-08-25 22:25:22

当事件的顺序无关紧要时,即它们可以以任何顺序安全发生时,使用共区域。

是前几页之一我在Google搜索共区序列图时发现。

Coregions are used when the sequence of events does not matter, that is they can occur safely in any order.

This is one of the first few pages I found when I searched coregion sequence diagram in Google.

负佳期 2024-08-25 22:25:22

coregion 是表示并行组合片段的符号/sytanx 选择,UML 2.2 Superstruction 规范 (14.3.3) 说:

并行交互操作符 par
指定CombinedFragment
表示之间的并行合并
操作数的行为。这
发生规范
不同的操作数可以交错
任何方式,只要订购
每个操作数本身强加的是
保存下来。并行合并定义了
描述所有的跟踪集
发生方式 规格
操作数可以交错
在不妨碍秩序的情况下
发生规范内
操作数。

上面的答案是正确的,这只是更多的上下文。

The coregion is a notational/sytanx choice for representing parallel CombinedFragments the UML 2.2 Superstructure spec (14.3.3) says:

Parallel The interactionOperator par
designates that the CombinedFragment
represents a parallel merge between
the behaviors of the operands. The
OccurrenceSpecifications of the
different operands can be interleaved
in any way as long as the ordering
imposed by each operand as such is
preserved. A parallel merge defines a
set of traces that describes all the
ways that OccurrenceSpecifications of
the operands may be interleaved
without obstructing the order of the
OccurrenceSpecifications within the
operand.

The answer above is correct this is just more context.

岁吢 2024-08-25 22:25:22

UML 由 OMG 在两个文档 (http://www.omg.org/spec/uml) 中指定:UML 基础结构和 UML 上层结构。任何文档都可能不是官方的。

在 UML 上层结构第 14.3.3 节中指出:

对于一条生命线上事件发生(或其他嵌套片段)的顺序无关紧要的常见情况,可以使用并行组合片段的符号简写。这意味着在生命线的给定“共同区域”区域中,所有直接包含的片段都被视为并行组合片段的单独操作数。

The UML is specified by the OMG in the two documents (http://www.omg.org/spec/uml): The UML Infrastructure and the UML Supestructure. Whatever documentation may be not official.

In the UML superstructure section 14.3.3 it is said:

A notational shorthand for parallel combined fragments are available for the common situation where the order of event occurrences (or other nested fragments) on one Lifeline is insignificant. This means that in a given “coregion” area of a Lifeline all the directly contained fragments are considered separate operands of a parallel combined fragment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文