Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] UML model with UML profile as input
[ATL] UML model with UML profile as input [message #517581] Mon, 01 March 2010 11:47 Go to next message
Eclipse UserFriend
Originally posted by: MartinFagereng.Johansen.sintef.no

Hi

I created an ATL transformation in 2008 which transformed a UML model with
an applied profile into a custom ecore meta model. This worked great for
this setup:

* Eclipse 3.4 (Ganymede)
* ATL 2.0.0.v200806101117
* EMF Ecore 2.4.0.v200806091234

but if fails for the newest versions of ATL, Eclipse and EMF. The setup in
the ATL file is as follows:

create OUT : AbstractWatch from IN2:uml;

in the lauch file:

<mapEntry key="IN2" value="/UMLWatch/UMLWatch.uml"/>
<mapEntry key="AbstractWatch" value="/UMLWatch/abstractWatch.ecore"/>
<mapEntry key="OUT" value="/UMLWatch/Watch.abstractwatch"/>
<mapEntry key="uml"
value="uri:http:///schemas/UMLWatch/_09H3UF7ZEd2X-sPUdg4L5A/0"/>

How do I make this work for the newest versions of ATL?

How should I work with profiled UML models and ATL?

Thanks and regards,
Martin
Re: [ATL] UML model with UML profile as input [message #518492 is a reply to message #517581] Thu, 04 March 2010 09:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MartinFagereng.Johansen.sintef.no

I fixed this by creating the following ecore file and use it as metamodel
for the ATL transformation. Why this works is beyond me, but maybe someone
here can explain.

<?xml version="1.0" encoding="UTF-8"?>

<ecore:EPackage xmi:version="2.0"

xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="UMLAndWatch"

nsURI="http://UMLAndWatch" nsPrefix="UMLAndWatch">

<eClassifiers xsi:type="ecore:EClass" name="Import" abstract="true"
eSuperTypes="http://www.eclipse.org/uml2/3.0.0/UML#//Element
UMLWatch.profile.uml#_1AetUV7ZEd2X-sPUdg4L5A"/>

</ecore:EPackage>

"Martin Johansen" <MartinFagereng.Johansen@sintef.no> wrote in message
news:hmg9h6$5ph$1@build.eclipse.org...
> Hi
>
> I created an ATL transformation in 2008 which transformed a UML model with
> an applied profile into a custom ecore meta model. This worked great for
> this setup:
>
> * Eclipse 3.4 (Ganymede)
> * ATL 2.0.0.v200806101117
> * EMF Ecore 2.4.0.v200806091234
>
> but if fails for the newest versions of ATL, Eclipse and EMF. The setup in
> the ATL file is as follows:
>
> create OUT : AbstractWatch from IN2:uml;
>
> in the lauch file:
>
> <mapEntry key="IN2" value="/UMLWatch/UMLWatch.uml"/>
> <mapEntry key="AbstractWatch" value="/UMLWatch/abstractWatch.ecore"/>
> <mapEntry key="OUT" value="/UMLWatch/Watch.abstractwatch"/>
> <mapEntry key="uml"
> value="uri:http:///schemas/UMLWatch/_09H3UF7ZEd2X-sPUdg4L5A/0"/>
>
> How do I make this work for the newest versions of ATL?
>
> How should I work with profiled UML models and ATL?
>
> Thanks and regards,
> Martin
>
>
Re: [ATL] UML model with UML profile as input [message #535462 is a reply to message #518492] Sun, 23 May 2010 19:26 Go to previous message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
hi martin

can u explain more how did u make ur transformation
did u use ur profileor uml as a metamodel.


can I have sample code, I am supposed to do some thing similar

wafaa

[Updated on: Sun, 23 May 2010 19:30]

Report message to a moderator

Previous Topic:.ecore
Next Topic:QVT : Element Name Filtering
Goto Forum:
  


Current Time: Fri Apr 26 19:40:28 GMT 2024

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

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

Back to the top