July 2004
Intermediate to advanced
752 pages
35h 59m
English
A combined fragment in an interaction that represents a dynamic choice about whether to execute the operand.
A optional construct has one operand with a guard condition. The operand is executed if the guard is true and is not executed otherwise. This construct is equivalent to a conditional with an empty else clause.
An optional fragment is shown as a rectangular region with the tag opt within a small pentagon on the upper left corner. The region contains the body of the optionally executed operand (Figure 14-201).

Read now
Unlock full access