I have a situation from the picture, MyTimer contains a list of Updatable, and PlayerBulletUpdatable is one of the potential elements, alongside many defined in lambda clauses.
What is the correct way of modeling this in UML?
I have almost no knowledge of UML, and the internet didn’t help.
1
Your elements will look like this:
In the diagram we have depicted:
- Two classes:
MyTimer
andPlayerBulletUpdatable
; - The interface
Updatable
; - Relations:
aggregation
with multiplicity zero or more andrealization
.
1