Behavioral Modeling
The next few sections present solutions for Part III.
Figure B-32 shows the sequence diagram, and Figure B-33 shows the collaboration diagram. The interaction and collaboration is that of the
Generate Project-Status Reportdescribed in Chapter 6.In Figure B-32, the following elements are missing:
ELM-01should be:4 : OutputData := FormatInfo (OrgInfo, PrjInfo)
ELM-02should be:12 : OutputData := FormatWorkerInfo (UnitsOfWork, WorkProducts)
ELM-03should be:[No more workers]

Figure B-32. Sequence diagram (question 1)
In Figure B-33, the following elements are missing:
ELM-04should be:[Populated Project] 7 : GenerateReport( )
ELM-05should be:*[For each worker] 7.2 : outputWorkerInfo (Worker)
ELM-06should be:9 : Destroy ( )

Figure B-33. Collaboration diagram (question 1)
The following describes the figure: there are three elements, named
Section,Report, andOutputDeviceInterface. TheReportelement has aUserelationship with theOutputDeviceInterfaceelement and aHasrelationship with theSectionelement.Because these figures show an interaction and collaboration, each step adds to the previous step; otherwise, the notion of when a communication occurs would be lost!
Figure B-34 and Figure B-35 show the figures.
Figure B-34. Sequence diagram (question 2 ...
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