Draw a sequence diagram for the warehouseOnFire scenario of Figure 2-15. Include the objects bob, alice, john, FRIEND, and instances of other classes you may need. Draw only the first five message sends.

What will be an ideal response?

This exercise checks the student’s knowledge of sequence diagrams when using instances. This exercise can have

several correct answers. In addition to the UML rules on sequence diagrams, all correct sequence diagrams for this

exercise should include one or more actors on the left of the diagram who initiate the scenario, one or more objects in

the center of the diagram which represent the system, and a dispatcher actor on the right of the diagram who is

notified of the emergency. All actors and objects should be instances. Figure 2-9 depicts a possible answer.



Computer Science & Information Technology

You might also like to view...

In Excel, typing a ________ sets the number format to Currency

A) number sign B) asterisk C) percent sign D) dollar sign

Computer Science & Information Technology

COGNITIVE ASSESSMENT A host in a network performs which of the following tasks?

A. Ensures satellite communications are functional B. Exclusively monitors wireless networks to search for data transmission errors C. Routes transmissions over a network to guarantee data reaches its intended destination D. Provides services and connections to other computers on the network

Computer Science & Information Technology