nus-cs2103-AY2425S1 / forum

12 stars 0 forks source link

Tutorial 9 Question 2 #529

Open DKHB0207 opened 3 days ago

DKHB0207 commented 3 days ago

Would like to ask if functionally are there any differences in the first and second picture? And how should we interpret the diagram that uses the association class? for example for one attempt can it be linked to 2 different associations between Student and Task. For eg. StudentA and Task1 linked to Attempt and StudentB and Task2 linked to the same object Attempt.

Screenshot 2024-10-17 at 12 17 15 PM Screenshot 2024-10-17 at 12 18 33 PM
shotnothing commented 1 day ago

why would the two different tasks be linked to the same attempt? i think CCDs are not meant to be strict, comprehensive and complete representations of what is and is not possible, but a higher-level conceptual modelling of how the different entities are related

damithc commented 1 day ago

@DKHB0207 Sorry for not answering before. I wanted to wait till all the tutorial are over before answering this question.

Would like to ask if functionally are there any differences in the first and second picture?

@DKHB0207 Association classes have some additional constraints but they are not in the scope of this course. So, in the scope of this course, they can be considered as alternative notations.

And how should we interpret the diagram that uses the association class? for example for one attempt can it be linked to 2 different associations between Student and Task. For eg. StudentA and Task1 linked to Attempt and StudentB and Task2 linked to the same object Attempt.

An attempt is for a single task. So, one Attempt object cannot be linked to multiple Task objects.