Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Transforming Multiple Input Models(How to transforms two ecore models using ATL)
Transforming Multiple Input Models [message #1602395] Thu, 05 February 2015 14:31 Go to next message
Joshua Nwokeji is currently offline Joshua NwokejiFriend
Messages: 94
Registered: January 2013
Member
Dear All,

I want to transform two ecore models i.e. X.ecore and Y.ecore, into another ecore model i.e. Z.ecore. Can this be done in ATL?

I started with the codes below, but it gives me error:

-- @path X=/C2E/X.ecore
-- @path Y=/C2E/Y.ecore
-- @path Z=/C2E/Z.ecore
module xy2z;
create OUT: Z from IN: X, Y;

Please I need help urgently!

Regards

Joshua
Re: Transforming Multiple Input Models [message #1608030 is a reply to message #1602395] Mon, 09 February 2015 08:15 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 379
Registered: September 2012
Location: Belgium
Senior Member

Wrong meta-level. You need this:

-- @nsURI ECORE=http://www.eclipse.org/emf/2002/Ecore
module xy2z;
create Z: ECORE from X: ECORE, Y: ECORE; 


Cheers,
Dennis
Re: Transforming Multiple Input Models [message #1615017 is a reply to message #1608030] Fri, 13 February 2015 16:50 Go to previous messageGo to next message
Joshua Nwokeji is currently offline Joshua NwokejiFriend
Messages: 94
Registered: January 2013
Member
Thanks Dennis, this works!
Re: Transforming Multiple Input Models [message #1645476 is a reply to message #1615017] Mon, 02 March 2015 14:32 Go to previous message
Joshua Nwokeji is currently offline Joshua NwokejiFriend
Messages: 94
Registered: January 2013
Member
Dear Dennis,

Thanks for the previous answer, it was indeed helpful. But I have encountered another problem, see below:

I followed the tutorial, in [1], on ATL transformation from Family to Person.
I did everything exactly as instructed in the tutorial. After editing the configuration, I clicked the run button, but nothing happened. I have tried this severally but it did not work. Please I need help.

Thanks

Joshua

[1] https://wiki.eclipse.org/ATL/Tutorials_-_Create_a_simple_ATL_transformation

Report message to a moderator
Previous Topic:ATL Run Configuration
Next Topic:problem doing uml comment
Goto Forum:
  


Current Time: Mon Oct 22 15:24:53 GMT 2018

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

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

Back to the top