Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Direction of the association arrow in UML class diagrams

Tags:

class

uml

diagram

On this webpage which shows how to draw a class diagram, why is the arrow for association pointing from order to customer, and not from customer to order?

UML Tutorial - Class Diagrams

like image 446
neuromancer Avatar asked Dec 15 '09 10:12

neuromancer


People also ask

Which way do arrows go in UML?

In my diagrams (and in UML in general) the arrow heads point in the direction of source code dependencies, not data or control flow.

What do the arrows in a UML diagram mean?

The UML class diagram maps out the object's attributes, operations, and how they relate. The arrows that connect classes show important relationships. The arrows denote association, inheritance, aggregation, composition, dependency, and realization among others.

What is directed association in class diagram?

A directed association indicates that control flows from one classifier to another; for example an actor to a use case. This flow of control means that only one of the association ends specifies navigability. If you use association end names, you do not typically need to name an association.

How is an association shown in a UML diagram?

Association can be represented by a line between these classes with an arrow indicating the navigation direction. In case an arrow is on both sides, the association is known as a bidirectional association. We can also indicate the behavior of an object in an association (i.e., the role of an object) using role names.


1 Answers

The arrows describe navigability.

  • Navigable end is indicated by an open arrowhead on the end of an association
  • Not navigable end is indicated with a small x on the end of an association
  • No adornment on the end of an association means unspecified navigability

UML Arrow association direction

Taken from: http://www.uml-diagrams.org/association.html

like image 63
Pup Avatar answered Sep 19 '22 02:09

Pup