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

User Manual    [Previous]   [Next]   

E009 Reflexive Lower Bound

Umple semantic error reported when a reflexive association has a multiplicity with a lower bound greater than one

A reflexive association must have multiplicity with lower bounds of zero at both ends (e.g. *, 0.1 or or 0..2), otherwise an illogical situation would result. For example, creating a parent-child association on class Person (the example below) with a lower bound of 2 would mean that every Person in the system must have parents, ad infinitum.

Example

  1. // This example generates the error message  
  2. class Person {  
  3.   * -- 2 Person parents;  
  4. }  
  5.         

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

  1. // The following shows how to avoid the error  
  2. class Person {  
  3.   * -- 0..2 Person parents;  
  4. }  
  5.         

Load the above code into UmpleOnline