in-place transformation [message #46483] |
Thu, 14 June 2007 12:50 |
Eclipse User |
|
|
|
Originally posted by: hein..fokus.fraunhofer
Hi all,
I would like to extend a UML UseCase Model by an ATL transformation. The
extended (or target) Model should contains Classes which are derived
from the UseCases. If I write something like this:
rule Model{
from m1:UML2!Model
to m2:UML2!Model(
name<-m1.name
)
}
The xmi id of the Model has changed, but I need a transformation that
keep the xmi id's or otherwise I need a possibility to collect traces.
Is there already something that could helps me? Maybe a transformation
or a workaround that provides me a solution of a kind of a copy
transformation of the model or an in-place transformation mechanism?
I'm not familiar with ATL very well, therefore I wonder if somebody has
already solved my problems ;-)
Thanks in advance
Christian
|
|
|
Re: [ATL] in-place transformation [message #47268 is a reply to message #46483] |
Mon, 18 June 2007 10:06 |
Frédéric Jouault Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Hello,
Could you please prefix the subject of your ATL-related posts to this
newsgroup with [ATL], as I did in this reply? Thanks.
> I would like to extend a UML UseCase Model by an ATL transformation. The
> extended (or target) Model should contains Classes which are derived
> from the UseCases. If I write something like this:
>
> rule Model{
> from m1:UML2!Model
> to m2:UML2!Model(
> name<-m1.name
>
> )
> }
>
> The xmi id of the Model has changed, but I need a transformation that
> keep the xmi id's or otherwise I need a possibility to collect traces.
> Is there already something that could helps me? Maybe a transformation
> or a workaround that provides me a solution of a kind of a copy
> transformation of the model or an in-place transformation mechanism?
>
> I'm not familiar with ATL very well, therefore I wonder if somebody has
> already solved my problems ;-)
About model transformation traces:
http://www.eclipse.org/m2m/atl/atlTransformations/#ATL2Trace r
or, better (i.e., using model weaving with AMW):
http://www.eclipse.org/gmt/amw/usecases/traceability/
About XMI ids:
It is possible to get the XMI id of an element using the __xmiID__
property (e.g., m1.__xmiID__).
However, it is not possible to set the XMI id yet. It would not be very
difficult to implement it, but playing with XMI ids does not seem very
"clean".
About in-place transformations:
ATL refining mode can be implemented using an in-place mechanism,
provided the semantics of ATL is followed. However, I am not aware of
any such implementation existing yet.
Regards,
Frédéric Jouault
|
|
|
Powered by
FUDForum. Page generated in 0.02586 seconds