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

User Manual    [Previous]   [Next]   

E203 Not having an unique identifier

Umple semantic error related to not using traits which do not have unique identifiers

In Umple, all elements which are capable of being reused should have unique identifiers. Traits, as reusable elements in Umple also have to follow the same rule. Identifiers of traits should be unique in the system. The conflict happens among classes, interfaces, and traits. Therefore, these three elements always should have unique identifiers.

Example

// In  this example, Identifier of
// trait "I" is not unique. 
class A{
	isA I;
}

class I {
  //elements
}

trait I{
  //elements
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//In  this example, Identifier of
// trait "T" is unique.
class A{
	isA T;
}

class I {
  //elements
}

trait T{
  //elements
}
      

Load the above code into UmpleOnline