Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » in-place transformation
in-place transformation [message #46483] Thu, 14 June 2007 12:50 Go to next message
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 Go to previous message
Frédéric Jouault is currently offline 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
Previous Topic:[ATL] refining problem : feature feature is not changeable [read only]
Next Topic:[ATL] Sequence as a source pattern ?
Goto Forum:
  


Current Time: Sat Oct 25 00:03:15 GMT 2014

Powered by FUDForum. Page generated in 0.02506 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software