iteration expression

A specification within an interaction of the range of number of iterations of a loop.

Semantics

On a loop within an interaction, the range of iterations can be specified by a minimum and maximum count.

Notation

Sequence diagram. In a sequence diagram, the bounds on the number of iterations of a loop are included in parentheses as part of the tag after the keyword loop:

loopMinimum = 0, unlimited maximum
loop (repeat)Minimum = maximum = repeat
loop (minimum, maximum)Explicit minimum and maximum bounds

In addition to the bounds, a Boolean expression can be included as a guard on a lifeline. The loop will continue to iterate if the expression is true, but it will iterate at least the minimum count and no more than the maximum ...

Get Unified Modeling Language Reference Manual, The, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.