Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composition diamond at wrong association end #121

Open
fractalqb opened this issue Oct 25, 2021 · 0 comments
Open

Composition diamond at wrong association end #121

fractalqb opened this issue Oct 25, 2021 · 0 comments

Comments

@fractalqb
Copy link

fractalqb commented Oct 25, 2021

In your example MyStruct1 is a part of MyStruct2. In particular the lifetime of MyStruct1 instances that are associated that way to MyStruct2 instances depends on the lifetime of the MyStruct2 instance. This make the association a composition where MyStruct2 is the composite and MyStruct1 is the component. For a composition the filled diamond is at the association end that touches the composite. I.e. in PlantUML MyStruct2 *-- MyStruct1.
Take the example from the UML specification v2.5.1; Figure 11.5 showing a class "Car" and a class "Wheel". There the diamond is at the Car.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant