|
|
Objectives Addressed
Overview
The purpose of this assignment is develop a better understanding of the visitor pattern. Problem Statement
Rewrite the DesktopItem and child classes so that they use the visitor pattern to provide functionality for size and erase. Add a visitor called summary that will display a summary for the item that is visited. For example, a summary may look something like: labs, 32.6 KB | +-- lab1.txt, 1.3KB, "SE281 -- Lab 1: Modelling in Rose ..." | +-- lab1.wav, 31.3KB, Length: 0:32, mono, 11.2Hz, 16 bps Write a program that tests all of the additional and modified functionality introduced in this assignment. Optional: Redo the open and save methods like you did with size and erase. Interim Activity Log (due 11:00pm, the day prior to week 5 lab)
You should submit an activity log to indicate your activity and progress on this assignment during the first week (one log file for the entire team). Lab Report (due 11:00pm, the day prior to week 6 lab)
Here is a template file to use as a starting point for this report. The lab report should consist of the following:
As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost. Acknowledgment
This laboratory was developed by Dr. Chris Taylor. |
| © 2001-2007 Dr. Christopher C. Taylor | Office: CC-36C | Phone: 277-7339 |