Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
COMP5028 Lab 7 (Week 8) 
 
This lab will involve design work of common analysis patterns. Get into pairs for this 
lab. Use Rational Rose to draw both the analysis diagrams as shown and the design 
diagrams you develop. 
 
1. The class diagram below shows an analysis for a bidirectional association. 
Produce a design class diagram for this system. Include a collection of some sort 
to manage the * multiplicity. 
 
2. The class diagram below shows an association class analysis. Produce a design 
class diagram for this system. 
 
3. Produce class diagrams that explore different relationships between the following 
classes and roles. Identify the constraints of each design you develop. Develop at 
least two different designs. 
• Employee 
• Employer 
• Job 
• Programmer 
• Manager 
• Salesperson 
• Person 
• Customer 
 
 
4. If you have extra time, go through the javadocs on collections. You can find it at 
http://java.sun.com/j2se/1.4.2/docs/api/index.html and click on java.util in the top 
left frame (packages). Choose a piece of the Collections framework that we did 
not discuss in lectures, e.g. Map or Set. Read the subclassing and interfacing 
information at the top of the relevant class descriptions. Figure out the class 
design by drawing the classes, interfaces and relationships in Rational Rose. 
 
5. Save your work. 
BookShelf Book
1 *
Customer Product
quantity : int
LineItem
* *