I have never seen two roles in a association relationship in a UML diagram. Is the following appropriate notation, or is there another method of listing two roles?
Asked
Active
Viewed 473 times
1 Answers
0
Your diagrams says that Course
has a property named 1 teaches
of type Instructor
. And Instructor
has a property has a *
of type Course
.
I guess that the 1
and *
are multiplicities and they should be placed a bit apart from role names to distinguish them. The remaining role names should rather correspond to what the properties represent. So where currently you see 1 teaches
it should be teacher
and on the other side there should be classes
(both with the multiplicities offset).

qwerty_so
- 35,448
- 8
- 62
- 86
-
Does every binary association require 2 multiplicities and 2 roles? – Peter Tao Mar 25 '17 at 16:06
-
1Not necessarily. In case you have navigability (your other question) you would eventually have only one role. – qwerty_so Mar 25 '17 at 16:59