Exercises
Solutions to these exercises are supplied in Section B.2.1
Figure 6-30 shows a sequence diagram, and Figure 6-31 shows a collaboration diagram. These figures are equivalent; that is, they have the same elements. Identify the missing communications and guard expression and describe the interaction and collaboration. The missing communications in Figure 6-30 are labeled
ELM-01andELM-02. The missing guard expression in Figure 6-30 is labeledELM-03. The missing communications in Figure 6-31 are labeledELM-04,ELM-05, andELM-06.
Figure 6-30. Sequence diagram

Figure 6-31. Collaboration diagram
Describe Figures Figure 6-32 and Figure 6-33: identify the various elements. These elements are used for generating a report and its sections.

Figure 6-32. Sequence diagram for generating a report and its sections

Figure 6-33. Collaboration diagram for generating a report and its sections
Update the diagrams stepwise to show the following interaction and collaboration. After each step, check your answers against the solutions shown in Appendix B:
For each section, the
Reportelement retrieves 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