Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 291516 - atl.launch with InModels of type Metametamodel
Summary: atl.launch with InModels of type Metametamodel
Status: CLOSED FIXED
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: emfvm (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 13:39 EDT by Kelly Garces CLA
Modified: 2017-06-05 09:31 EDT (History)
1 user (show)

See Also:


Attachments
indicates the changes for solving the bug (3.34 KB, patch)
2009-10-06 13:40 EDT, Kelly Garces CLA
william.piers: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kelly Garces CLA 2009-10-06 13:39:18 EDT
Some transformations take Ecore models as input. For example:

module toto;
create ... from m1 : Metametamodel;

where Metametamodel refers to Ecore

In the Ant tasks of ATL 2.0, one specifies that as follows:
<inModel name="m1" model="m1">
<inModel name="Metametamodel" model="%EMF">

In ATL 3.0, it would not be necessary to specify Metametamodel as inModel. Then, how to specify what reference model m1 conforms to?

A solution would be to create a loadModel task like this

<atl.loadModel name="Metametamodel" nsuri="http.../EMF"/>

However this causes inexpected behavior.

To solve the issue, we propose to agregate the attribute "metamodelName" to inModel. The value of this attribute refers to Ecore.

Please find enclosed a patch corresponding to the solution. Note that a similar solution may be needed for inOutModel or outModel.
Comment 1 Kelly Garces CLA 2009-10-06 13:40:39 EDT
Created attachment 148923 [details]
indicates the changes for solving the bug
Comment 2 William Piers CLA 2009-10-07 04:41:10 EDT
The patch has been applied to CVS head. The correction will be available on next 3.1 build. Thanks for reporting/correcting it !
Comment 3 Dennis Wagelaar CLA 2017-06-05 09:31:02 EDT
Bug inactive - closing.