Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Release date: Tuesday, 15.04.14 - Due date: Sunday, 20.04.14, 23:59
2 points |
---|
Give us four examples of a part-whole relationship, two examples of an aggregation and two examples of a composition relationship. Argue for each of the four cases why it is an aggregation or an composition respectively. (Such an argument would consist of the generic criterion for choosing the respective type of association and one or two sentences arguing why the criterion applies here.)
[Optional, 0 points]: Can you find an example where it depends on the context whether it is an aggregation or composition.
9 = 5 + 4 points |
---|
Studying class diagrams can be as exciting as hunting down gangsters. This task is the proof. Below you find a class diagram explaining that gangsters are persons and that certain associations are possible between gangsters and persons:
Study the class diagram carefully and understand which associations can connect objects of which class. With this knowledge you can easily solve the following two subtasks.
a) Study the object diagram carefully and tell us:
Make sure that you don't accuse a person of being a gangster, if you can not be sure. Accusing a person that might still be person will cost you a point per wrong accusation!
b) For the four persons above we know already whether they are gangsters or just persons. Given the class diagram above, which associations are possible between the following pairs (in the indicated direction)?:
Name all possible associations.
4[+2] points |
---|
Give us for each of the four class diagrams above:
(optional) We claim that the two last diagrams are equivalent.
[9 points] |
---|
This task is optional not because it is difficult, but because we added it late.
Widget
.