David
David

Reputation: 632

What is an association end in UML?

I have stumbled across this term many times but I fail to understand the meaning of it. When I read "association end" I tend to think about the classes of an association. Is it true that every association has 2 association ends or do we mean the role of classes when we say "association end" ? I have searched for a more detailed explanation of this term but everything I've found was on uml-diagrams.org:

enter image description here

You can see at the bottom of my screenshot that query and qbuilder, the roles of each class, are the "association ends". My question is if through "association end" we point at the roles of each class, or at the class itself.

Upvotes: 1

Views: 1616

Answers (1)

Christophe
Christophe

Reputation: 73406

Every binary association has two association ends. But n-ary associations have n ends.

The association end means the connection of the association with one of the class it associates, i.e. how both are related.

The association end is related to several concepts:

  • ownership of the end (see dot notation)
  • navigability
  • multiplicity
  • role

So you cannot say that the association end is the role, because this would ignore the other elements.

Upvotes: 3

Related Questions