Home » Archived » M2M (model-to-model transformation) » [ATL] refining problem : feature feature is not changeable [read only]
[ATL] refining problem : feature feature is not changeable [read only] [message #46833] |
Fri, 15 June 2007 12:26 |
Eclipse User |
|
|
|
Originally posted by: djodjo91.free.fr
hi,
i would like to transform an uml model to another one except that all
elements in imported packages from the entry model would be owned by the
root model. So the out model should not have imported package.
My problem is that in refining mode, i have noticed something which goes
wrong, the refine mode tries to modify readonly attribute and i have error
message like : feature ... is not changeable.
does someone have the same problem ?
|
|
|
Re: [ATL] refining problem : feature feature is not changeable [read only] [message #46893 is a reply to message #46833] |
Fri, 15 June 2007 15:41 |
Sebastien Revol Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hi all,
since it is the first time write to this mailing list, I'll quickly
introduice myself: I'm Sebastien Revol, and I'm doing a PhD whose main
subject is the use of UML and MDE for Hardware Design.
I work with Jonathan, and we try to perform an UML to UML transfo where
only few elements are modified in the model. Therefore we thought that
the refining mode would be best-suited.
However, it seems that in this mode, when the virtual machine implicitly
copies a source element which has read-only or derived attributes, it
tries to directly modify them in the target element rather than letting
them being automatically computed by the target meta-model, and we get
the following error: feature xxx is not changeable.
Does anybody know if we do something wrong, or if there is a workaround
permitting to use the refining mode for UML models?
We tried to define a matched rule sending derived Properties on
arbitrary UML elements, but it has no effect (as if there were none of
these properties in the source element!...)
Thanks in advance,
Seb
jonathan a écrit :
> hi,
> i would like to transform an uml model to another one except that all
> elements in imported packages from the entry model would be owned by the
> root model. So the out model should not have imported package.
> My problem is that in refining mode, i have noticed something which goes
> wrong, the refine mode tries to modify readonly attribute and i have
> error message like : feature ... is not changeable.
>
> does someone have the same problem ?
>
|
|
|
Re: [ATL] refining problem : feature feature is not changeable [read only] [message #46922 is a reply to message #46893] |
Fri, 15 June 2007 18:22 |
Frédéric Jouault Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Hello,
The refining mode is not available in ATL 2006 yet, and few new
developments are done on ATL 2004.
However, there is a technique that is very similar to the refining mode:
superimposing rules on a copy transformation. It is described on the wiki:
http://wiki.eclipse.org/index.php/ATL_Superimposition
Please, let us know if it suits your needs.
Best regards,
Frédéric Jouault
Sebastien Revol wrote:
> Hi all,
> since it is the first time write to this mailing list, I'll quickly
> introduice myself: I'm Sebastien Revol, and I'm doing a PhD whose main
> subject is the use of UML and MDE for Hardware Design.
>
> I work with Jonathan, and we try to perform an UML to UML transfo where
> only few elements are modified in the model. Therefore we thought that
> the refining mode would be best-suited.
> However, it seems that in this mode, when the virtual machine implicitly
> copies a source element which has read-only or derived attributes, it
> tries to directly modify them in the target element rather than letting
> them being automatically computed by the target meta-model, and we get
> the following error: feature xxx is not changeable.
>
> Does anybody know if we do something wrong, or if there is a workaround
> permitting to use the refining mode for UML models?
>
>
> We tried to define a matched rule sending derived Properties on
> arbitrary UML elements, but it has no effect (as if there were none of
> these properties in the source element!...)
>
> Thanks in advance,
>
> Seb
>
>
> jonathan a écrit :
>> hi,
>> i would like to transform an uml model to another one except that all
>> elements in imported packages from the entry model would be owned by
>> the root model. So the out model should not have imported package.
>> My problem is that in refining mode, i have noticed something which
>> goes wrong, the refine mode tries to modify readonly attribute and i
>> have error message like : feature ... is not changeable.
>>
>> does someone have the same problem ?
>>
|
|
|
Re: [ATL] refining problem : feature feature is not changeable [read only] [message #47238 is a reply to message #46922] |
Mon, 18 June 2007 10:06 |
Sebastien Revol Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hello Frederic,
thanks for the tip, we will try like this.
Best regards,
Seb
Frédéric Jouault a écrit :
> Hello,
>
> The refining mode is not available in ATL 2006 yet, and few new
> developments are done on ATL 2004.
>
> However, there is a technique that is very similar to the refining mode:
> superimposing rules on a copy transformation. It is described on the wiki:
> http://wiki.eclipse.org/index.php/ATL_Superimposition
>
> Please, let us know if it suits your needs.
>
>
> Best regards,
>
> Frédéric Jouault
>
> Sebastien Revol wrote:
>> Hi all,
>> since it is the first time write to this mailing list, I'll quickly
>> introduice myself: I'm Sebastien Revol, and I'm doing a PhD whose main
>> subject is the use of UML and MDE for Hardware Design.
>>
>> I work with Jonathan, and we try to perform an UML to UML transfo
>> where only few elements are modified in the model. Therefore we
>> thought that the refining mode would be best-suited.
>> However, it seems that in this mode, when the virtual machine
>> implicitly copies a source element which has read-only or derived
>> attributes, it tries to directly modify them in the target element
>> rather than letting them being automatically computed by the target
>> meta-model, and we get the following error: feature xxx is not
>> changeable.
>>
>> Does anybody know if we do something wrong, or if there is a
>> workaround permitting to use the refining mode for UML models?
>>
>>
>> We tried to define a matched rule sending derived Properties on
>> arbitrary UML elements, but it has no effect (as if there were none of
>> these properties in the source element!...)
>>
>> Thanks in advance,
>>
>> Seb
>>
>>
>> jonathan a écrit :
>>> hi,
>>> i would like to transform an uml model to another one except that all
>>> elements in imported packages from the entry model would be owned by
>>> the root model. So the out model should not have imported package.
>>> My problem is that in refining mode, i have noticed something which
>>> goes wrong, the refine mode tries to modify readonly attribute and i
>>> have error message like : feature ... is not changeable.
>>>
>>> does someone have the same problem ?
>>>
|
|
|
Goto Forum:
Current Time: Tue Sep 24 13:54:27 GMT 2024
Powered by FUDForum. Page generated in 0.45552 seconds
|