111k views
5 votes
Study the documentation below related to a file browser client.

VISION DESCRIPTION
We want to develop a file browser client for organizing files and folders. The user can add files and folders,
and arrange files and folders within a folder.
Files and folders have names. Any file or folder can be opened, closed, duplicated, deleted, moved, or
renamed. Files have a name and file extension (.docx, .pdf, etc.) Folders can run a batch command that will be
run on every item contained within the folder.
The model should be flexible by supporting additional elements. Add a shortcut element to your model that is
a reference to either a file or a folder. Shortcuts are similar to files and folders except that they cannot be
closed since the open operation applied to them really opens the file or folder they reference.
USER INTERACTION EXAMPLE
• Create folder (object) named "COMP-1258"
• Create file (object) "Outline.docx" within folder COMP-1258
• Create file "Outline.pdf" within folder COMP-1258
• Create folder "A06" within COMP-1258
• Create file "A06 Instruction.pdf" within A06
• Create file "A06 Solution.docx" within A06
• Create file "Assignment Guidelines.pdf" in folder COMP-1258
• Create a shortcut (object) "AssignGuide" in folder A06 that references the Assignment Guidelines.pdf
• Duplicate folder A06 to make folder "A06 copy" (the copy will be in the same location as the
original)
• Create folder "Assignments" within folder COMP-1258
• Move folder A06- into folderAssignments
• Create a shortcut in Assignments that references the A06 copy folder
Study the documentation below related to a file browser client.
1. Create an Analysis Class model that captures the Vision Description above.
a. Present the model as an analysis class diagram showing relationships and multiplicity
between the classes
2. Create an object diagram that represents the end result of the User Interaction Example above.
a. Color each folder object a light yellow
b. Color each file object a light blue
c. Color each shortcut object a bright orange
HINT: It is best to tackle this assignment by working on both questions simultaneously. This will give you
practice in using the technique of building object diagrams to help you discover analysis classes.

User Ususer
by
7.8k points

1 Answer

6 votes

Final answer:

The analysis class model and object diagram for a file browser client includes classes for Files, Folders, and Shortcuts, capturing operations like opening, duplicating, and moving, as well as attributes like name and file extension for files.

Step-by-step explanation:

The task at hand involves creating an Analysis Class model and an object diagram for a file browser client based on provided specifications. Given the Vision Description, we can deduce the necessary classes and their attributes for the analysis model: File, Folder, and Shortcut. These classes will have various operations such as open, close, duplicate, delete, move, and rename. The File class will have attributes for name and file extension, while the Folder class may include batch command functionalities.

A Shortcut class will reference either a File or a Folder and will not have a close operation. In the object diagram, the user interactions described will be visually represented, showing the creation of folders, files, and shortcuts, as well as the actions of duplicating, moving, and referencing between objects. The utilization of colors (light yellow for folders, light blue for files, and bright orange for shortcuts) aids in differentiating between the different types of objects.

User Christos Lytras
by
8.0k points