Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]The `IN' and 'OUT' in a code line.
[ATL]The `IN' and 'OUT' in a code line. [message #104595] Wed, 06 May 2009 09:07 Go to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,
The following two lines are respectively for loading the input
model and creating the output model. I have no idea of what the "IN" and
"OUT" mean: are they corresponding to the model variables in the ATL
files?
Thanks.

Michael.


------------------------------------------------------------ --------
ASMEMFModel jwtInputModel = (ASMEMFModel) modelHandler.loadModel("IN",
jwtMetamodel, URI.createFileURI(inFilePath));
ASMEMFModel bpmnOutputModel = (ASMEMFModel)
modelHandler.newModel("OUT",
URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
------------------------------------------------------------ --------
Re: [ATL]The `IN' and 'OUT' in a code line. [message #104610 is a reply to message #104595] Wed, 06 May 2009 09:39 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hi,

Michael a écrit :
> Hi,
> The following two lines are respectively for loading the input
> model and creating the output model. I have no idea of what the "IN" and
> "OUT" mean: are they corresponding to the model variables in the ATL
> files?

Exactly.

William

> Thanks.
>
> Michael.
>
>
> ------------------------------------------------------------ --------
> ASMEMFModel jwtInputModel = (ASMEMFModel) modelHandler.loadModel("IN",
> jwtMetamodel, URI.createFileURI(inFilePath));
> ASMEMFModel bpmnOutputModel = (ASMEMFModel)
> modelHandler.newModel("OUT",
> URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
> ------------------------------------------------------------ --------
Re: [ATL]The `IN' and 'OUT' in a code line. [message #104619 is a reply to message #104595] Wed, 06 May 2009 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mickael.istria.openwide.fr

Michael a écrit :
> Hi,
> The following two lines are respectively for loading the input
> model and creating the output model. I have no idea of what the "IN" and
> "OUT" mean: are they corresponding to the model variables in the ATL
> files?
> Thanks.
>
> Michael.
>
>
> ------------------------------------------------------------ --------
> ASMEMFModel jwtInputModel = (ASMEMFModel) modelHandler.loadModel("IN",
> jwtMetamodel, URI.createFileURI(inFilePath));
> ASMEMFModel bpmnOutputModel = (ASMEMFModel)
> modelHandler.newModel("OUT",
> URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
> ------------------------------------------------------------ --------

Yes, it is!

You can find the ATL transformation for this example here ->
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jwt/tra nsformations/jwt-transformation-bpmn/src/org/eclipse/jwt/tra nsformations/bpmn/internal/resources/Jwt2BpmnAllInPool.atl?r evision=1.1&root=Technology_Project&view=markup

By the way, please note that a few modification occurred on this example
code to follow ATLv3 API.
Checkout the jwt-transformations-bpmn folder for a full example using ATLv3.

Regards,
Mickael
Re: [ATL]The `IN' and 'OUT' in a code line. [message #104632 is a reply to message #104619] Wed, 06 May 2009 12:12 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Mickael Istria wrote:
> Michael a écrit :
>> Hi,
>> The following two lines are respectively for loading the input
>> model and creating the output model. I have no idea of what the "IN"
>> and "OUT" mean: are they corresponding to the model variables in the
>> ATL files?
>> Thanks.
>>
>> Michael.
>>
>>
>> ------------------------------------------------------------ --------
>> ASMEMFModel jwtInputModel = (ASMEMFModel) modelHandler.loadModel("IN",
>> jwtMetamodel, URI.createFileURI(inFilePath));
>> ASMEMFModel bpmnOutputModel = (ASMEMFModel)
>> modelHandler.newModel("OUT",
>> URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
>> ------------------------------------------------------------ --------
>
> Yes, it is!
>
> You can find the ATL transformation for this example here ->
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jwt/tra nsformations/jwt-transformation-bpmn/src/org/eclipse/jwt/tra nsformations/bpmn/internal/resources/Jwt2BpmnAllInPool.atl?r evision=1.1&root=Technology_Project&view=markup
>
>
> By the way, please note that a few modification occurred on this example
> code to follow ATLv3 API.
> Checkout the jwt-transformations-bpmn folder for a full example using
> ATLv3.
>
> Regards,
> Mickael
Thanks for your help. I tried to check out the example code from CVS,
but I could not find it. Please give me some hint. Thanks.
Re: [ATL]The `IN' and 'OUT' in a code line. [message #104644 is a reply to message #104632] Wed, 06 May 2009 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mickael.istria.openwide.fr

Michael a écrit :
> Mickael Istria wrote:
>> Michael a écrit :
>>> Hi,
>>> The following two lines are respectively for loading the input
>>> model and creating the output model. I have no idea of what the "IN"
>>> and "OUT" mean: are they corresponding to the model variables in the
>>> ATL files?
>>> Thanks.
>>>
>>> Michael.
>>>
>>>
>>> ------------------------------------------------------------ --------
>>> ASMEMFModel jwtInputModel = (ASMEMFModel)
>>> modelHandler.loadModel("IN", jwtMetamodel,
>>> URI.createFileURI(inFilePath));
>>> ASMEMFModel bpmnOutputModel = (ASMEMFModel)
>>> modelHandler.newModel("OUT",
>>> URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
>>> ------------------------------------------------------------ --------
>>
>> Yes, it is!
>>
>> You can find the ATL transformation for this example here ->
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jwt/tra nsformations/jwt-transformation-bpmn/src/org/eclipse/jwt/tra nsformations/bpmn/internal/resources/Jwt2BpmnAllInPool.atl?r evision=1.1&root=Technology_Project&view=markup
>>
>>
>> By the way, please note that a few modification occurred on this
>> example code to follow ATLv3 API.
>> Checkout the jwt-transformations-bpmn folder for a full example using
>> ATLv3.
>>
>> Regards,
>> Mickael
> Thanks for your help. I tried to check out the example code from CVS,
> but I could not find it. Please give me some hint. Thanks.

Sure

Protocol: pserver
Server: dev.eclipse.org
user: anonymous
Root: /cvsroot/technology
module: org.eclipse.jwt/transformations/jwt-trasformation-bpmn

cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/technology/ checkout
org.eclipse.jwt/transformations/jwt-transformation-bpmn

HTH
Mickael
Re: [ATL]The `IN' and 'OUT' in a code line. [message #104658 is a reply to message #104644] Wed, 06 May 2009 13:11 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Mickael Istria wrote:
> Michael a écrit :
>> Mickael Istria wrote:
>>> Michael a écrit :
>>>> Hi,
>>>> The following two lines are respectively for loading the input
>>>> model and creating the output model. I have no idea of what the "IN"
>>>> and "OUT" mean: are they corresponding to the model variables in
>>>> the ATL files?
>>>> Thanks.
>>>>
>>>> Michael.
>>>>
>>>>
>>>> ------------------------------------------------------------ --------
>>>> ASMEMFModel jwtInputModel = (ASMEMFModel)
>>>> modelHandler.loadModel("IN", jwtMetamodel,
>>>> URI.createFileURI(inFilePath));
>>>> ASMEMFModel bpmnOutputModel = (ASMEMFModel)
>>>> modelHandler.newModel("OUT",
>>>> URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
>>>> ------------------------------------------------------------ --------
>>>
>>> Yes, it is!
>>>
>>> You can find the ATL transformation for this example here ->
>>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jwt/tra nsformations/jwt-transformation-bpmn/src/org/eclipse/jwt/tra nsformations/bpmn/internal/resources/Jwt2BpmnAllInPool.atl?r evision=1.1&root=Technology_Project&view=markup
>>>
>>>
>>> By the way, please note that a few modification occurred on this
>>> example code to follow ATLv3 API.
>>> Checkout the jwt-transformations-bpmn folder for a full example using
>>> ATLv3.
>>>
>>> Regards,
>>> Mickael
>> Thanks for your help. I tried to check out the example code from CVS,
>> but I could not find it. Please give me some hint. Thanks.
>
> Sure
>
> Protocol: pserver
> Server: dev.eclipse.org
> user: anonymous
> Root: /cvsroot/technology
> module: org.eclipse.jwt/transformations/jwt-trasformation-bpmn
>
> cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/technology/ checkout
> org.eclipse.jwt/transformations/jwt-transformation-bpmn
>
> HTH
> Mickael
Hi, Mickael:

Thanks for your warm-hearted and timely help.

I have tried this example with my own metamoel and models. It seems work
fine but the output model is always empty; when extracted to xml file,
it reports null-pointer exception. The metamodels, input model and
tranformation file are very simple and surely correct (I have run this
transformation successfully in an ATL project). I consider that this may
be due to wrong library. Would you please tell me what library I should
use and what version they are.
Thanks.
Michael.
Re: [ATL]The `IN' and 'OUT' in a code line. [message #104671 is a reply to message #104658] Wed, 06 May 2009 13:44 Go to previous message
Eclipse UserFriend
Originally posted by: mickael.istria.openwide.fr

Michael a écrit :
> Mickael Istria wrote:
>> Michael a écrit :
>>> Mickael Istria wrote:
>>>> Michael a écrit :
>>>>> Hi,
>>>>> The following two lines are respectively for loading the input
>>>>> model and creating the output model. I have no idea of what the
>>>>> "IN" and "OUT" mean: are they corresponding to the model variables
>>>>> in the ATL files?
>>>>> Thanks.
>>>>>
>>>>> Michael.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------ --------
>>>>> ASMEMFModel jwtInputModel = (ASMEMFModel)
>>>>> modelHandler.loadModel("IN", jwtMetamodel,
>>>>> URI.createFileURI(inFilePath));
>>>>> ASMEMFModel bpmnOutputModel = (ASMEMFModel)
>>>>> modelHandler.newModel("OUT",
>>>>> URI.createFileURI(outFilePath).toFileString(), bpmnMetamodel);
>>>>> ------------------------------------------------------------ --------
>>>>
>>>> Yes, it is!
>>>>
>>>> You can find the ATL transformation for this example here ->
>>>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jwt/tra nsformations/jwt-transformation-bpmn/src/org/eclipse/jwt/tra nsformations/bpmn/internal/resources/Jwt2BpmnAllInPool.atl?r evision=1.1&root=Technology_Project&view=markup
>>>>
>>>>
>>>> By the way, please note that a few modification occurred on this
>>>> example code to follow ATLv3 API.
>>>> Checkout the jwt-transformations-bpmn folder for a full example
>>>> using ATLv3.
>>>>
>>>> Regards,
>>>> Mickael
>>> Thanks for your help. I tried to check out the example code from CVS,
>>> but I could not find it. Please give me some hint. Thanks.
>>
>> Sure
>>
>> Protocol: pserver
>> Server: dev.eclipse.org
>> user: anonymous
>> Root: /cvsroot/technology
>> module: org.eclipse.jwt/transformations/jwt-trasformation-bpmn
>>
>> cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/technology/
>> checkout org.eclipse.jwt/transformations/jwt-transformation-bpmn
>>
>> HTH
>> Mickael
> Hi, Mickael:
>
> Thanks for your warm-hearted and timely help.
>
> I have tried this example with my own metamoel and models. It seems work
> fine but the output model is always empty; when extracted to xml file,
> it reports null-pointer exception. The metamodels, input model and
> tranformation file are very simple and surely correct (I have run this
> transformation successfully in an ATL project). I consider that this may
> be due to wrong library. Would you please tell me what library I should
> use and what version they are.
> Thanks.
> Michael.

Dependencies and versions are explicitly set in the META-INF/MANIFEST.MF.
The NPE may be related to wrong resources path or something like that,
try running this code in debug mode, and you'll hopefully get more
details...

HTH
Mickael
Previous Topic:[ATL] Compatibility between ATL2 and ATL3?
Next Topic:[QVTO] What's new in 2.0.0?
Goto Forum:
  


Current Time: Sat Apr 20 02:39:41 GMT 2024

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

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

Back to the top