UML Distilled, Third Edition by Fowler Martin

UML Distilled, Third Edition by Fowler Martin

Author:Fowler, Martin [Fowler, Martin]
Language: eng
Format: epub, azw3
Publisher: Addison-Wesley Professional
Published: 2003-09-15T04:00:00+00:00


Figure 4.4. Interaction frames

procedure dispatch

foreach (lineitem)

if (product.value> $10K)

careful.dispatch

else

regular.dispatch

end if

end for

if (needsConfirmation) messenger.confirm

end procedure In general, frames consist of some region of a sequence diagram that is divided into one or more fragments. Each frame has an operator and each fragment may have a guard. (Table 4.1 lists common operators for interaction frames.) To show a loop, you use the loop operand with a single fragment and put the basis of the iteration in the guard. For conditional logic, you can use an alt operator and put a condition on each fragment. Only the fragment whose guard is true will execute. If you have only one region, there is an opt operator.

Interaction frames are new in UML 2. As a result, you may see diagrams prepared before UML 2 and that use a different approach; also, some people don't like the frames and prefer some of the older conventions. Figure 4.5 shows some of these unofficial tweaks.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.