Lab IV

10 min

Soit le modèle UML ci-après.

Question

Réaliser le passage RO de ce modèle UML en utilisant le modèle imbriqué.

Solution

1
Type typ_ci <importance:integer, description:string>
2
Type col_ci : collection de typ_ci
3
Type typ_desc <courte:string(100), longue:string)>
4
5
medicament (#nom:string, description typ_desc, ci col_ci)
6
composant (#code:string, intitule:string)
7
composition (#fkmed=>medicament, #fkcomp=>composant)
Remarque

On perd ici l'expression de l'importance comme clé locale.