Common Operators for Interaction Frames
Operator | Meaning |
alt | 替代多个片段;只有条件为真的才会执行。
Alternative multiple fragments; only the one whose condition is true will execute. |
opt | 可选;只有在提供的条件为真时,片段才会执行。相当于只有一条轨迹的alt。
Optional; the fragment executes only if the supplied condition is true. Equivalent to an alt with only one trace. |
par | 并行;每个片段并行运行。
Parallel; each fragment is run in parallel. |
loop | 循环;该片段可以执行多次,并且守卫指示迭代的基础。
Loop; the fragment may execute multiple times, and the guard indicates the basis of iteration. |
region | 临界区;该片段只能有一个线程同时执行它。
Critical region; the fragment can have only one thread executing it at once. |
neg | 否定,该片段显示一个无效的相互作用。
Negative; the fragment shows an invalid interaction. |
ref | 引用;指在另一个图上定义的交互。车架被拉到盖子上。 参与互动的生命线。您可以定义参数和返回值。
Reference; refers to an interaction defined on another diagram. The frame is drawn to cover the lifelines involved in the interaction. You can define parameters and a return value. |
sd | 序列图;如果你愿意的话,可以用于环绕整个序列图。
Sequence diagram; used to surround an entire sequence diagram, if you wish. |
guard(关键的决策判断)