Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
loop
A behavioral construct in which a piece of behavior is executed repeatedly while a specified condition remains true. This article covers loops in interaction models.
See also loop node for loops in activity models.
Semantics
In an interaction, a loop is a variety of combined fragment in which the single body fragment is executed as long as a guard condition is true. A loop fragment may have a lower and upper limit on number of repetitions, as well as a Boolean condition using values from one of the lifelines in the fragment. The body of the loop is executed repeatedly while the Boolean condition evaluates true at the beginning of each repetition, but it is always executed at least the minimum count and it is never executed more than the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access