Am I understanding multiplicity and aggregation here?
The Idea I'm trying to get across is that:
- Each character has a spell book.
- Each spell book has an array of 4 spells. (This is where things look a little weird to me)
Am I understanding multiplicity and aggregation here?
The Idea I'm trying to get across is that:
That's basically ok. The SpellArr
is a (wrongly placed and capitalized) redundant attribute. Rather you should use dot-notation together with the role name spell
(which should be spells
instead). Also the hollow diamond should be removed as it has no useful semantics. See p. 110 of the specs:
Indicates that the Property has shared aggregation semantics. Precise semantics of shared aggregation varies by application area and modeler.