Input: A model |
Output: A labeled directed graph |
(1) |
(2) Let and |
(3) |
(4) for class in model ββdo |
(5) β |
(6) end for |
(7) |
(8) for each association end in model ββdo |
(9) β where is the type of the association end and is the type of the other class in the association |
(10) βif the lower bound of the multiplicity of is β₯1ββthen |
(11) ββLabel the arc as tightly coupled |
(12) βelse if the lower bound of the multiplicity of ββthen |
(13) ββLabel the arc as loosely coupled |
(14) βend if |
(15) end for |
(16) for each generalization, aggregation and composition between classes and ββdo |
(17) β |
(18) βLabel the arcs and as tightly coupled |
(19) end for |