July 2004
Intermediate to advanced
752 pages
35h 59m
English
A specification within an interaction of the range of number of iterations of a loop.
On a loop within an interaction, the range of iterations can be specified by a minimum and maximum count.
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:
| loop | Minimum = 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 ...
Read now
Unlock full access