What do the diagram's multiplicity values mean? Do they mean each ShoeStore must have 1 instance of NikeShoes, and that the same instance can be part of many ShoeStore instances? In other words, many ShoeStores might have the same pair of shoes (an instance, not the type) to sell? Thanks.
UML Aggregation Multiplicity
309 views Asked by alohalin At
2
There are 2 answers
0
On
The 1
multiplicity is a defined shortcut for 1..1
, meaning that every instance of ShoeStore
must have at minimum and and maximum 1 instance of NikeShoe
.
The reverse *
multiplicity is a defined shortcut for 0..*
which means that an instance of NikeShoe
can be part minimum 0 and maximum an infinity of instances of ShoeShop
.
The diagram shows a shared aggregation relation. As per UML 2.5 this has no defined semantics. P. 110:
So what is left is an association (except there is some hidden document explaining the exact semantics of the diamond). And that means you can have 1
NikeShoes
in 0..nShoeStore
. What ever that might mean.Regarding multiplicities: pp. 34 of UML 2.5 says