|
[ATL] Re : uml2 models transformation [message #81801 is a reply to message #81785] |
Wed, 21 May 2008 06:25 |
Eclipse User |
|
|
|
Originally posted by: frederic_thomas_fr.yahoo.fr
Hi Carlos,
ATL can't match the namespace<-s.namespace statement because in the UML
2.0 metamodel, the namespace feature is derived, hence you can only read
it and not write it.
If you want match the package namespace, you must use the
s.owningPackage feature which is a subset of the namespace set.
Best regards
Frédéric
Geam Carlos a écrit :
> Hi everybody,
>
> I'm having a problem at the moment to assign the element namespace to
> package element within the rule ATL, for example, set so the ATL rules
> with uml1.4:
> rule MergePackage {
> from s : UML2!Package
> to t : UML2!Package mapsTo s (
> name <- s.name,
> namespace <- s.namespace
> )
> }
>
> But now the rules ATL with uml2 (version 1.0) can not assign.
|
|
|
|
[ATL] Re : uml2 models transformation [message #82151 is a reply to message #81801] |
Mon, 26 May 2008 07:13 |
Eclipse User |
|
|
|
Originally posted by: frederic_thomas_fr.yahoo.fr
Hi cralos,
I have not tried yet but if the "s.owningPackage" doesnot work, the
"s.nestingPackage" should (this is also a subset of the namespace feature).
To solve such problem by your own, you have just to look at the "package
" metaclass description in the UML2 superstructure.
Fred
Frédéric Thomas a écrit :
> Hi Carlos,
>
> ATL can't match the namespace<-s.namespace statement because in the UML
> 2.0 metamodel, the namespace feature is derived, hence you can only read
> it and not write it.
>
> If you want match the package namespace, you must use the
> s.owningPackage feature which is a subset of the namespace set.
>
> Best regards
>
> Frédéric
>
> Geam Carlos a écrit :
>> Hi everybody,
>>
>> I'm having a problem at the moment to assign the element namespace to
>> package element within the rule ATL, for example, set so the ATL rules
>> with uml1.4:
>> rule MergePackage {
>> from s : UML2!Package
>> to t : UML2!Package mapsTo s (
>> name <- s.name,
>> namespace <- s.namespace
>> )
>> }
>>
>> But now the rules ATL with uml2 (version 1.0) can not assign.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04138 seconds