Arrange the objects listed in Exercises 5-1 and 5–2 horizontally on a sequence diagram, the boundary objects to the left, then the control object you identified, and finally, the entity objects. Draw the sequence of interactions resulting from dropping the file into a folder. For now, ignore the exceptional cases.

What will be an ideal response?


Figure 5-1 depicts a possible solution to this exercise. The names and parameters of the operations may vary. The

diagram, however, should at least contain the following elements:

• Two boundary objects, one for the file being copied, and one of the destination folder.

• At least one control object remembering the source and destination of the copy, and possibly checking for access

rights.

• Two entity objects, one for the file being copied, and one of the destination folder.

In this specific solution, we did not focus on the Disk, Pointer, and TrashCan objects. The Disk object would be

added to the sequence when checking if there is available space. The TrashCan object is needed for scenarios in

which Files or Folders are deleted.

Note that the interaction among boundary objects can be complex, depending on the user interface components that

are used. This sequence diagram, however, only describes user level behavior and should not go into such details. As

a result, the sequence diagram depicts a high level view of the interactions between these object, not the actual

sequence of message send

Computer Science & Information Technology

You might also like to view...

Declaring a(n) Android layout in XML makes it easier to visualize the structure of a user interface.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which term is best described as an attack that relies on the gullibility of people?

A. malicious code B. script kiddie C. back door D. social engineering

Computer Science & Information Technology

An effective filename should identify the types of files stored in the folder

Indicate whether the statement is true or false

Computer Science & Information Technology

Which video mode is used in 24"+ widescreen monitors?

A. XGA B. UXGA C. SXGA D. WUXGA

Computer Science & Information Technology