Behavioral Modeling

The next few sections present solutions for Part III.

  1. 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 Report described in Chapter 6.

    In Figure B-32, the following elements are missing:

    • ELM-01 should be:

      4 : OutputData := FormatInfo (OrgInfo, PrjInfo)
    • ELM-02 should be:

      12 : OutputData := FormatWorkerInfo (UnitsOfWork, WorkProducts)
    • ELM-03 should be:

      [No more workers]
      Sequence diagram (question 1)

      Figure B-32. Sequence diagram (question 1)

    In Figure B-33, the following elements are missing:

    • ELM-04 should be:

      [Populated Project] 7 : GenerateReport(  )
    • ELM-05 should be:

      *[For each worker] 7.2 : outputWorkerInfo (Worker)
    • ELM-06 should be:

      9 : Destroy (  )
      Collaboration diagram (question 1)

      Figure B-33. Collaboration diagram (question 1)

  2. The following describes the figure: there are three elements, named Section, Report, and OutputDeviceInterface. The Report element has a Use relationship with the OutputDeviceInterface element and a Has relationship with the Section element.

    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!

    1. Figure B-34 and Figure B-35 show the figures.

      Figure B-34. Sequence diagram (question 2 ...

Get Learning UML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.