Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Is it possible to transform between two in-momery models?
[ATL] Is it possible to transform between two in-momery models? [message #71727] Fri, 11 January 2008 17:19 Go to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,
As we know, normal ATL project only translate one serialized
model(*.xmi) into anothter serialized mdoel instance. I am just wandering
whether we can translate between two in-memoery models, given their
serialized EMF metamodels.
Thanks.
Michael.
Re: [ATL] Is it possible to transform between two in-momery models? [message #71841 is a reply to message #71727] Mon, 14 January 2008 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

Dear Michael,

What do you mean by in-memory models? Do you mean from already loaded
resource? ATL transform ASMModel (kind of wrapper of EMF Resource when
working with EMF). There is no GUI to do the wrapping from an already
loaded EMF resource but you can launch ATL transformation from pure Java
code (as described here:
http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_programmatically.3F)

Hope this helps.

Best regards,
Mikael

Michael wrote:
> Hi,
> As we know, normal ATL project only translate one serialized
> model(*.xmi) into anothter serialized mdoel instance. I am just wandering
> whether we can translate between two in-memoery models, given their
> serialized EMF metamodels.
> Thanks.
> Michael.
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [ATL] Is it possible to transform between two in-momery models? [message #71859 is a reply to message #71841] Mon, 14 January 2008 14:15 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_028F_01C856B7.F806D3A0
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,=20
First of all , many thanks for your reply. =20
In the case that I already get an in-memory model, then I'd like =
to tranform it into to another in-memory mode without serializing into =
an xmi file at first. All the process, including obtaining a source, =
transforming into tarnget model, etc, takes place without =
seriablization.=20
Thanks.=20
Michael.=20
=20



=20
"Mika=EBl Barbero" <mikael.barbero@gmail.com> wrote in message =
news:fmfm8b$mi3$1@build.eclipse.org...
> Dear Michael,
>=20
> What do you mean by in-memory models? Do you mean from already loaded=20
> resource? ATL transform ASMModel (kind of wrapper of EMF Resource when =

> working with EMF). There is no GUI to do the wrapping from an already=20
> loaded EMF resource but you can launch ATL transformation from pure =
Java=20
> code (as described here:=20
> =
http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_progra=
mmatically.3F
>=20
> Hope this helps.
>=20
> Best regards,
> Mikael
>=20
> Michael wrote:
>> Hi,
>> As we know, normal ATL project only translate one serialized=20
>> model(*.xmi) into anothter serialized mdoel instance. I am just =
wandering=20
>> whether we can translate between two in-memoery models, given their=20
>> serialized EMF metamodels.
>> Thanks.
>> Michael.=20
>>=20
>>=20
>=20
>=20
>=20
> --=20
> Mika=EBl Barbero - PhD Candidate
> ATLAS Group (INRIA & LINA) - University of Nantes
> 2, rue de la Houssini=E8re
> 44322 Nantes Cedex 3 - France
> tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
> email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
> http://www.sciences.univ-nantes.fr/lina/atl/
------=_NextPart_000_028F_01C856B7.F806D3A0
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; First of =
all , many=20
thanks for your reply.&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In the =
case that I=20
already get an in-memory model, then I'd like to&nbsp;tranform it&nbsp; =
into to=20
another in-memory mode without serializing into an xmi file at first. =
All the=20
process, including obtaining a source, transforming into tarnget model, =
etc,=20
takes place without seriablization. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; Thanks. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Michael. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"Mika=EBl Barbero" &lt;</FONT><A=20
href=3D"mailto:mikael.barbero@gmail.com"><FONT face=3DArial=20
size=3D2>mikael.barbero@gmail.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A href=3D"news:fmfm8b$mi3$1@build.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:fmfm8b$mi3$1@build.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Dear =
Michael,<BR>&gt;=20
<BR>&gt; What do you mean by in-memory models? Do you mean from already =
loaded=20
<BR>&gt; resource? ATL transform ASMModel (kind of wrapper of EMF =
Resource when=20
<BR>&gt; working with EMF). There is no GUI to do the wrapping from an =
already=20
<BR>&gt; loaded EMF resource but you can launch ATL transformation from =
pure=20
Java <BR>&gt; code (as described here: <BR>&gt; </FONT><A=20
href=3D" http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ation=
s_programmatically.3F"><FONT=20
face=3DArial=20
size=3D2> http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform atio=
ns_programmatically.3F</FONT></A><BR><FONT=20
face=3DArial size=3D2>&gt; <BR>&gt; Hope this helps.<BR>&gt; <BR>&gt; =
Best=20
regards,<BR>&gt; Mikael<BR>&gt; <BR>&gt; Michael wrote:<BR>&gt;&gt;=20
Hi,<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; As we know, normal ATL project =
only=20
translate one serialized <BR>&gt;&gt; model(*.xmi) into anothter =
serialized=20
mdoel instance. I am just wandering <BR>&gt;&gt; whether we can =
translate=20
between two in-memoery models, given their <BR>&gt;&gt; serialized EMF=20
metamodels.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thanks.<BR>&gt;&gt; =
Michael.=20
<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- =
<BR>&gt; Mika=EBl=20
Barbero - PhD Candidate<BR>&gt; ATLAS Group (INRIA &amp; LINA) - =
University of=20
Nantes<BR>&gt; 2, rue de la Houssini=E8re<BR>&gt; 44322 Nantes Cedex 3 - =

France<BR>&gt; tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00<BR>&gt; =
email:=20
</FONT><A href=3D"mailto:Mikael.Barbero@{gmail.com"><FONT face=3DArial=20
size=3D2>Mikael.Barbero@{gmail.com</FONT></A><FONT face=3DArial =
size=3D2>,=20
univ-nantes.fr}<BR>&gt; </FONT><A=20
href=3D"http://www.sciences.univ-nantes.fr/lina/atl/"><FONT face=3DArial =

size=3D2>http://www.sciences.univ-nantes.fr/lina/atl/</FONT></A></BODY></=
HTML>

------=_NextPart_000_028F_01C856B7.F806D3A0--
Re: [ATL] Is it possible to transform between two in-momery models? [message #71878 is a reply to message #71859] Mon, 14 January 2008 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

Hi,

I suggest you to have a look at AM3 ANT task
(http://wiki.eclipse.org/AM3_Ant_Tasks). ATL transformations can be
launched subsequently with those ANT tasks without serializing each
target models.

Best regards.
Mikael

Michael wrote:
> Hi,
> First of all , many thanks for your reply.
> In the case that I already get an in-memory model, then I'd like
> to tranform it into to another in-memory mode without serializing into
> an xmi file at first. All the process, including obtaining a source,
> transforming into tarnget model, etc, takes place without seriablization.
> Thanks.
> Michael.
>
>
>
>
>
> "Mikaël Barbero" <mikael.barbero@gmail.com
> <mailto:mikael.barbero@gmail.com>> wrote in message
> news:fmfm8b$mi3$1@build.eclipse.org...
> > Dear Michael,
> >
> > What do you mean by in-memory models? Do you mean from already loaded
> > resource? ATL transform ASMModel (kind of wrapper of EMF Resource when
> > working with EMF). There is no GUI to do the wrapping from an already
> > loaded EMF resource but you can launch ATL transformation from pure Java
> > code (as described here:
> >
> http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_programmatically.3F
> >
> > Hope this helps.
> >
> > Best regards,
> > Mikael
> >
> > Michael wrote:
> >> Hi,
> >> As we know, normal ATL project only translate one serialized
> >> model(*.xmi) into anothter serialized mdoel instance. I am just
> wandering
> >> whether we can translate between two in-memoery models, given their
> >> serialized EMF metamodels.
> >> Thanks.
> >> Michael.
> >>
> >>
> >
> >
> >
> > --
> > Mikaël Barbero - PhD Candidate
> > ATLAS Group (INRIA & LINA) - University of Nantes
> > 2, rue de la Houssinière
> > 44322 Nantes Cedex 3 - France
> > tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
> > email: Mikael.Barbero@{gmail.com <mailto:Mikael.Barbero@{gmail.com>,
> univ-nantes.fr}
> > http://www.sciences.univ-nantes.fr/lina/atl/



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [ATL] Is it possible to transform between two in-momery models? [message #71897 is a reply to message #71878] Mon, 14 January 2008 19:40 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi, Mikael:
Now I find I am so stupid, meanwhile so lucky that you are ready to
help me.
I have read the page about AM3 ANT Tasks, however I still cannot
understand why you say we don't necessarily to serialize a model.
First, in the task am3.loadModel, the metamodel or model has to be
loaded from a file, and the loaded model or metamodel is identified by its
name.
Second, in the taskam3.atl, the model transformation depends on the
model loaded from the am3.loadModel through a key.
For above reasons, we need provide at least three serialized model
or metamodels. They are:
1) a source metamodel
2) a source model.
3) a target metamodel.
In some circumstances, we use GMF generate a graphical modelling
tool. In the generated RCP, the metamodel are represented by Java
implementation, not by some serialized file, such as default xmi. file. And
when RCP is launched, the metamodel has been loaded by loading the metamodel
implementation Java classes. So, in this case, I think we should not use a
task of am3.loadModel to load this metamodel duplicately. Do you think so?
How can we handle this situation to avoid duplicately loading metamodels.
Thanks.
Michael.

"Mika
Re: [ATL] Is it possible to transform between two in-momery models? [message #71935 is a reply to message #71897] Tue, 15 January 2008 10:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

Michael,

We will first talk about metamodels. ANT tasks (and even Eclipse launch
configurations) support referring to metamodel by the EPackage nsURI.
So, even if your metamodel only is available through the generated Java
code, its EPackages instances are registered in the EMF EPackage
registry and accessible via its nsURI. In ANT tasks, you can specify
this by the property path like this one referring to the UML2 metamodel:
path="uri:http://www.eclipse.org/uml2/2.x.x/UML" (2.x.x depends on the
version you installed).

Now, regarding models, I suppose you have two transformations A2B and
B2C to chain.
You must have a "serialized" model as the input of A2B but the output
does not need to be serialized, it can be passed directly as an input to
the B2C transformation like this:

<!-- Load metamodels -->
<am3.loadModel metamodel="%EMF" name="A" path="..."/> <!-- nsURI or
workspace path -->
<am3.loadModel metamodel="%EMF" name="B" path="..."/>
<am3.loadModel metamodel="%EMF" name="C" path="..."/>

<!-- Load source model -->
<am3.loadModel metamodel="A" name="myModel-A" path="..."/> <!-- "-A-" is
here not to forget that myModel is conforming to metamodel "A", but
you can give any name -->

<!-- First transformation -->
<am3.atl path="...">
<!--
the header of the executed transformation is:
module myModule1;
create TargetM : TargetMM from SourceM : SourceMM;
-->
<inmodel name="SourceMM" model="A"/>
<inmodel name="SourceM" model="myModel-A"/>
<inmodel name="TargetMM" model="B"/>
<outmodel name="TargetM" model="myModel-B" metamodel="B"/>
</am3.atl>

<!-- Second transformation -->
<am3.atl path="...">
<!--
the header of the executed transformation is:
module myModule2;
create TargetM : TargetMM from SourceM : SourceMM;
-->
<inmodel name="SourceMM" model="B"/>
<inmodel name="SourceM" model="myModel-B"/>
<inmodel name="TargetMM" model="C"/>
<outmodel name="TargetM" model="myModel-C" metamodel="C"/>
</am3.atl>

<!-- Serializing the output of the second transformation only -->
<am3.saveModel model="myModel-C" path="..." />

Note that myModel-B is available to the second transformation as if it
has been loaded by an am3.loadModel call.

I hope this give you an clearer overview of what it is possible to do
with ANT tasks.

Best regards,
Mikael

PS: I added this sample on the wiki page of ANT tasks to demonstrate how
to create chains of transformations. Do not hesitate to make any remarks
to improve this section ;)


> Hi, Mikael:
> Now I find I am so stupid, meanwhile so lucky that you are ready to
> help me.
> I have read the page about AM3 ANT Tasks, however I still cannot
> understand why you say we don't necessarily to serialize a model.
> First, in the task am3.loadModel, the metamodel or model has to be
> loaded from a file, and the loaded model or metamodel is identified by its
> name.
> Second, in the taskam3.atl, the model transformation depends on the
> model loaded from the am3.loadModel through a key.
> For above reasons, we need provide at least three serialized model
> or metamodels. They are:
> 1) a source metamodel
> 2) a source model.
> 3) a target metamodel.
> In some circumstances, we use GMF generate a graphical modelling
> tool. In the generated RCP, the metamodel are represented by Java
> implementation, not by some serialized file, such as default xmi. file. And
> when RCP is launched, the metamodel has been loaded by loading the metamodel
> implementation Java classes. So, in this case, I think we should not use a
> task of am3.loadModel to load this metamodel duplicately. Do you think so?
> How can we handle this situation to avoid duplicately loading metamodels.
> Thanks.
> Michael.
>
> "Mikaël Barbero" <mikael.barbero@gmail.com> wrote in message
> news:fmfrah$e5h$1@build.eclipse.org...
>> Hi,
>>
>> I suggest you to have a look at AM3 ANT task
>> (http://wiki.eclipse.org/AM3_Ant_Tasks). ATL transformations can be
>> launched subsequently with those ANT tasks without serializing each target
>> models.
>>
>> Best regards.
>> Mikael
>>
>> Michael wrote:
>>> Hi,
>>> First of all , many thanks for your reply. In the case that I
>>> already get an in-memory model, then I'd like to tranform it into to
>>> another in-memory mode without serializing into an xmi file at first. All
>>> the process, including obtaining a source, transforming into tarnget
>>> model, etc, takes place without seriablization.
>>> Thanks.
>>> Michael.
>>> "Mikaël Barbero" <mikael.barbero@gmail.com
>>> <mailto:mikael.barbero@gmail.com>> wrote in message
>>> news:fmfm8b$mi3$1@build.eclipse.org...
>>> > Dear Michael,
>>> >
>>> > What do you mean by in-memory models? Do you mean from already loaded
>>> > resource? ATL transform ASMModel (kind of wrapper of EMF Resource when
>>> > working with EMF). There is no GUI to do the wrapping from an already
>>> > loaded EMF resource but you can launch ATL transformation from pure
>>> Java
>>> > code (as described here:
>>> >
>>> http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_programmatically.3F
>>> >
>>> > Hope this helps.
>>> >
>>> > Best regards,
>>> > Mikael
>>> >
>>> > Michael wrote:
>>> >> Hi,
>>> >> As we know, normal ATL project only translate one serialized
>>> >> model(*.xmi) into anothter serialized mdoel instance. I am just
>>> wandering
>>> >> whether we can translate between two in-memoery models, given their
>>> >> serialized EMF metamodels.
>>> >> Thanks.
>>> >> Michael.
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Mikaël Barbero - PhD Candidate
>>> > ATLAS Group (INRIA & LINA) - University of Nantes
>>> > 2, rue de la Houssinière
>>> > 44322 Nantes Cedex 3 - France
>>> > tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
>>> > email: Mikael.Barbero@{gmail.com <mailto:Mikael.Barbero@{gmail.com>,
>>> univ-nantes.fr}
>>> > http://www.sciences.univ-nantes.fr/lina/atl/
>>
>>
>> --
>> Mikaël Barbero - PhD Candidate
>> ATLAS Group (INRIA & LINA) - University of Nantes
>> 2, rue de la Houssinière
>> 44322 Nantes Cedex 3 - France
>> tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
>> email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
>> http://www.sciences.univ-nantes.fr/lina/atl/
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [ATL] Is it possible to transform between two in-momery models? [message #71954 is a reply to message #71897] Tue, 15 January 2008 10:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

The wiki section about chaining transformations without intermediate
serialization is available there:
http://wiki.eclipse.org/AM3_Ant_Tasks#Making_ATL_transformat ions_chains_without_intermediate_serialization

Regards,
Mikael

Michael wrote:
> Hi, Mikael:
> Now I find I am so stupid, meanwhile so lucky that you are ready to
> help me.
> I have read the page about AM3 ANT Tasks, however I still cannot
> understand why you say we don't necessarily to serialize a model.
> First, in the task am3.loadModel, the metamodel or model has to be
> loaded from a file, and the loaded model or metamodel is identified by its
> name.
> Second, in the taskam3.atl, the model transformation depends on the
> model loaded from the am3.loadModel through a key.
> For above reasons, we need provide at least three serialized model
> or metamodels. They are:
> 1) a source metamodel
> 2) a source model.
> 3) a target metamodel.
> In some circumstances, we use GMF generate a graphical modelling
> tool. In the generated RCP, the metamodel are represented by Java
> implementation, not by some serialized file, such as default xmi. file. And
> when RCP is launched, the metamodel has been loaded by loading the metamodel
> implementation Java classes. So, in this case, I think we should not use a
> task of am3.loadModel to load this metamodel duplicately. Do you think so?
> How can we handle this situation to avoid duplicately loading metamodels.
> Thanks.
> Michael.
>
> "Mikaël Barbero" <mikael.barbero@gmail.com> wrote in message
> news:fmfrah$e5h$1@build.eclipse.org...
>> Hi,
>>
>> I suggest you to have a look at AM3 ANT task
>> (http://wiki.eclipse.org/AM3_Ant_Tasks). ATL transformations can be
>> launched subsequently with those ANT tasks without serializing each target
>> models.
>>
>> Best regards.
>> Mikael
>>
>> Michael wrote:
>>> Hi,
>>> First of all , many thanks for your reply. In the case that I
>>> already get an in-memory model, then I'd like to tranform it into to
>>> another in-memory mode without serializing into an xmi file at first. All
>>> the process, including obtaining a source, transforming into tarnget
>>> model, etc, takes place without seriablization.
>>> Thanks.
>>> Michael.
>>> "Mikaël Barbero" <mikael.barbero@gmail.com
>>> <mailto:mikael.barbero@gmail.com>> wrote in message
>>> news:fmfm8b$mi3$1@build.eclipse.org...
>>> > Dear Michael,
>>> >
>>> > What do you mean by in-memory models? Do you mean from already loaded
>>> > resource? ATL transform ASMModel (kind of wrapper of EMF Resource when
>>> > working with EMF). There is no GUI to do the wrapping from an already
>>> > loaded EMF resource but you can launch ATL transformation from pure
>>> Java
>>> > code (as described here:
>>> >
>>> http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_programmatically.3F
>>> >
>>> > Hope this helps.
>>> >
>>> > Best regards,
>>> > Mikael
>>> >
>>> > Michael wrote:
>>> >> Hi,
>>> >> As we know, normal ATL project only translate one serialized
>>> >> model(*.xmi) into anothter serialized mdoel instance. I am just
>>> wandering
>>> >> whether we can translate between two in-memoery models, given their
>>> >> serialized EMF metamodels.
>>> >> Thanks.
>>> >> Michael.
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Mikaël Barbero - PhD Candidate
>>> > ATLAS Group (INRIA & LINA) - University of Nantes
>>> > 2, rue de la Houssinière
>>> > 44322 Nantes Cedex 3 - France
>>> > tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
>>> > email: Mikael.Barbero@{gmail.com <mailto:Mikael.Barbero@{gmail.com>,
>>> univ-nantes.fr}
>>> > http://www.sciences.univ-nantes.fr/lina/atl/
>>
>>
>> --
>> Mikaël Barbero - PhD Candidate
>> ATLAS Group (INRIA & LINA) - University of Nantes
>> 2, rue de la Houssinière
>> 44322 Nantes Cedex 3 - France
>> tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
>> email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
>> http://www.sciences.univ-nantes.fr/lina/atl/
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [ATL] Is it possible to transform between two in-momery models? [message #71973 is a reply to message #71954] Tue, 15 January 2008 11:32 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Thanks, Mikael. It is very clear to me nows.
Best regards
Michael.
"Mika
Re: [ATL] Is it possible to transform between two in-momery models? [message #72375 is a reply to message #71935] Thu, 17 January 2008 12:51 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi, Michael,
How about the case the source input model has been already in
momery? Do we have to serialize it and load again? Can we avoid the
serialization?
Thanks.
Best regards.
Michael.
"Mika
Re: [ATL] Is it possible to transform between two in-momery models? [message #73301 is a reply to message #72375] Thu, 24 January 2008 16:39 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

> How about the case the source input model has been already in
> momery? Do we have to serialize it and load again? Can we avoid the
> serialization?

There is currently no mechanism to reuse a model that is already in
memory from an ant script.

However, you can for instance:
- implement such a mechanism,
- use Java code to run your transformation.


Regards,

Frédéric Jouault
Previous Topic:[ATL] Select and delete ASMModelElement
Next Topic:Diagram from models in "Families2Persons"
Goto Forum:
  


Current Time: Thu Mar 28 20:46:14 GMT 2024

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

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

Back to the top