-
Key: KERML_-32
-
Status: open
-
Source: Model Driven Solutions ( Mr. Ed Seidewitz)
-
Summary:
In general, Feature::type can have more than one value, and there is no restriction on this for end Features. The Association::relatedType property is derived as all the types of all the associationEnds of the Association. However, Association::sourceType is derived to be just the first relatedType. But consider the following Association:
assoc A { end feature x : X1, X2; end feature y : Y1, Y2; }
Even though this is a binary Association (it has exactly two ends), it has four relatedTypes: X1, X2, Y1 and Y2. As a binary Association, though, it (implicitly) specializes the library Association BinaryAssociation, with the first end redefining the source and the second end redefining the target. However, with the current derivation, the sourceType of A will be only X1, and the targetTypes will be X2, Y1 and Y2 – even though X2 is a type of the source end.
-
Reported: KerML 1.0a1 — Wed, 10 May 2023 22:15 GMT
-
Updated: Tue, 26 Nov 2024 00:50 GMT
KERML_ — Association ends can have more than one type
- Key: KERML_-32
- OMG Task Force: Kernel Modeling Language (KerML) 1.0 FTF 2