Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Can I have two output models from one input model using ATL transformation?
Can I have two output models from one input model using ATL transformation? [message #1769093] Wed, 26 July 2017 12:47 Go to next message
zz lalou is currently offline zz lalouFriend
Messages: 17
Registered: April 2011
Junior Member
Hi,
My ATL transformation takes one input model which I aim to transform it into two different models.
Is that possible to have more than one output model using ATL?
Re: Can I have two output models from one input model using ATL transformation? [message #1769481 is a reply to message #1769093] Tue, 01 August 2017 02:22 Go to previous messageGo to next message
Ricardo CaWal is currently offline Ricardo CaWalFriend
Messages: 28
Registered: January 2013
Junior Member
Here is presented how to create elements in different models conforming to the same metamodel: https://www.eclipse.org/forums/index.php/t/462932/

And in the language guide (https://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#Simple_target_pattern_element)

Quote:

Since ATL 3.1:

The declaration can specify the output model where to create elements. When several output models conform to the same metamodel, the in keyword allow to specify the output model name. Here is a sample transformation header:

create OUT1 : MM_B, OUT2 : MM_B from ... ;

Below is an output pattern which creates elements in the OUT2 model:

to
    o : MM_B!Class2 in OUT2


If possible, I think is better to use two different transformations. Nevertheless, you can create multiple models in one transformation. =)

Re: Can I have two output models from one input model using ATL transformation? [message #1769515 is a reply to message #1769481] Tue, 01 August 2017 09:24 Go to previous message
zz lalou is currently offline zz lalouFriend
Messages: 17
Registered: April 2011
Junior Member
Thank for replying,
In fact, in my case, each output model conforms to a different meta-model.
Is that possible?
Previous Topic:The resulted model of the ATL launcher file is empty.
Next Topic:delete instruction
Goto Forum:
  


Current Time: Fri Nov 16 07:46:12 GMT 2018

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

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

Back to the top