Thank you in advance!
If you mean empty drill, then Icepack is correct, you will confuse 2 separate things. Multiplicity has nothing to do with aggregation, so the “diamond” aggregation indicator can have what you like Any multiplicity, because they are not related.
If you mean filled diamonds that are composition, then their example will not really help you if someone publishes it, because it says there are many departments, but only 1 university (diversity), if all departments are deleted, then the university is also deleted (composition).
I am trying to think of a good example in which the composition ends will not only be 1 and I Think it will never be 0.. *Because you can have a class that has to delete things that may not exist? However, I can be 1.. * that is many-to-many, such as exams and exam questions.
Multiplicity can be 1.. * to 1.. * that is, the exam has one or more questions, one Questions can exist in one or more exams. The diamond (component) filled in at the end of the exam means that if all questions are deleted, then all exams will also be deleted
My colleague and I cannot reach an agreement. In UML, when performing aggregation, the multiplicity of the diamond edge is 1, or it can be 0.. *? Or does it depend on a point of view?
Thank you in advance!
First of all, you need to specify which “diamond” refers to the composition of the empty diamond and the filled diamond in the aggregate?
If you mean empty drill, then Icepack is correct, you will confuse 2 separate things. Multiplicity has nothing to do with aggregation, so the “diamond” aggregation indicator can have what you like Any multiplicity, because they are not related.
If you mean filled diamonds that are composition, then their example will not really help you if someone publishes it, because it says there are many departments, but only 1 university (diversity), if all departments are deleted, then the university is also deleted (composition).
I am trying to think of a good example in which the composition ends will not only be 1 and I Think it will never be 0.. *Because you can have a class that has to delete things that may not exist? However, I can be 1.. * that is many-to-many, such as exams and exam questions.
Multiplicity can be 1.. * to 1.. * that is, the exam has one or more questions, one Questions can exist in one or more exams. The diamond (component) filled in at the end of the exam means that if all questions are deleted, then all exams will also be deleted