Multiple compositions in UML -


in uml class diagram, technically correct have 2 possible compistion relationships leading 1 class?

i.e. have inventory class, has composition of inventory class. want have same relationship container class taking place of inventory.

so, can have 2 compositions, or need turn these aggregations?

you can have many composite associations on class level. each instance can part of 1 composition @ specific moment in time. uml superstructure says:

if whole has aggregationkind = composite part can included in @ 1 composite @ time

this article wrote tries explain difference: uml composition vs aggregation vs association


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -