Exercise 4 (25.-29.11.) |
Reading material for these exercises:
Reading material for the next week:
Tasks
2. Combine the object diagrams of task 1 to the object diagram of task 3.5. (Diagram will be available as Plastic Lite PLA-file in the example solutions of last week on Friday 22.11)
3. Construct a dependency matrix to indicate how the use cases of the pizza system are related to the information content delined in task 2. Try to find out missing information or missing use cases.
The matrix should have one row for each class or association, and one column for each use cases. Use the following values in the elements of the matrix: C = use case creates an object or association instance, D = use case deletes an object or association instance, U = use case updates some attribute values of an object, R = Use case reads the information.). An example:
Each class and association should have a use case for creating instances. Most classes usually have use cases for deleting instances and for modifying them.
4.
The appendix contains the essential part of a card playing program.
Construct a class diagram to describe the structure of this program.
(This kind of diagram building is called 'reverse engineering'.
Normally you proceed from diagrams to program code).
(Hint: An interface should be treated like a class.)
5. Draw a sequence diagram to describe the cooperation of objects in providing the service CardGame.round of the example program of the previous task. Assume that there are two players.