uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

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

// This example generates the error message
class Person {
  * -- 2 Person parents;
}

      

Load the above code into UmpleOnline

 

Another Example

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

      

Load the above code into UmpleOnline