You are on page 1of 2

Question 1

Draw a class diagram corresponding to the following description (cf. the question 2, from the previous
problem-sheet).
A typical warehouse consists of a number of storehouses, which have loading ramps in the outside.
Trucks drive to these ramps and are uploaded there. Storehouses contain several high racks grouped
into corridors; each of the racks has several floors. Each warehouse has a manager. Each storehouse is
served by some workers. Every rack is operated by a crane. Each crane is steered by one computer and
operated by one driver. The products can have different characteristics (e.g. burnable, toxic, acid, and
radioactive). Products which have different brands store at most 100 products per shelf.
Please analyse this text and draw an appropriate Class Diagram. This diagram should be detailed
enough to specify state of the warehouse: Which product is in which floor, who is working where and
so on. Please consider the difference between association and aggregation.

Question 1

Warehouse 1
Employee

*
*
Storehouse

Manager Worker Driver


1
1

*
High-Rack
1
0..1

Crane
*
1
Shelfe
*

Computer
*..100

Product
burnable
acid
radioactive
Question 2

You might also like