list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

Role Names

A role name is an additional name attached to an association. In the following example, the word 'supervisor' could be omitted, but it clarifies that the graduate student's professor is called his or her supervisor.

Example


class Person {
  name;
}

class GraduateStudent {
  isA Person;
  Integer id;
  * -- 0..2 Professor supervisor;
}

class Professor {
  isA Person;
  rank;
}
      

Load the above code into UmpleOnline