W010 Singleton Multiplicity Over 1
[Previous]  [Next] 
|
User Manual [Previous]  [Next] W010 Singleton Multiplicity Over 1Umple semantic warning reported when a singleton class has an association with incoming multiplicity > 1Since there can only be one instance of a singleton class, it is logically impossible for another class to have links to more than one instance of the singleton class. Example// This example generates the warning message class X { singleton; } class Y { 0..1 -- * X; } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears// The following shows how to avoid the warning class X { singleton; } class Y { 0..1 -- 1 X; } Load the above code into UmpleOnline |