Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Enrich Models with additional information( for Platform Independent to Platform Specific Model Transformations)
[ATL] Enrich Models with additional information [message #659410] Sun, 13 March 2011 17:44 Go to next message
Rob is currently offline RobFriend
Messages: 17
Registered: February 2011
Junior Member
Hello

For a project I want to do PSM - PIM - PSM Transformations using ATL.
I am stuck in a problem I can't find any useful hints for.

Is it possible with only using ATL to transform a PIM Java-Model (conforms to the Java Metamodel as provided by MoDisco) into a platform specific java model adding additional information:

e.g: a simple class should be enriched with Annotations and additional MethodDeclarations required for the platform specific model - for sure these Annotations and MethodDeclarations do not exist in the platform independent model.

Are there any best practices how to realize this?

Maybe with use of newInstance(). Unfortunately I have some Problems using this, because I did not find any useful resources for this.

Maybe somebody can point me to some examples.

Many thx in advance!
Re: [ATL] Enrich Models with additional information [message #659422 is a reply to message #659410] Sun, 13 March 2011 18:55 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7041
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000603020402010200060108
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi George<br>
<br>
You may be interested in my Enrich your Models with OCL tutorial at
EclipseCon.<br>
<br>
<a class="moz-txt-link-freetext"
href=" https://www.eclipsecon.org/submissions/2011/view_talk.php?id =2271"> https://www.eclipsecon.org/submissions/2011/view_talk.php?id =2271</a><br>
<br>
    Regards<br>
<br>
        Ed Willink<br>
<br>
<img
alt=" http://www.eclipsecon.org/2011/static/image/friends/130x100_ speaking.gif"
src="cid:part1.08030007.06080908@willink.me.uk"><br>
<br>
On 13/03/2011 17:44, George wrote:
<blockquote cite="mid:ilivcv$k3c$1@news.eclipse.org" type="cite">Hello
<br>
<br>
For a project I want to do PSM - PIM - PSM Transformations using
ATL.
<br>
I am stuck in a problem I can't find any useful hints for.
<br>
<br>
Is it possible with only using ATL to transform a PIM Java-Model
(conforms to the Java Metamodel as provided by MoDisco) into a
platform specific java model adding additional information:
<br>
<br>
e.g: a simple class should be enriched with Annotations and
additional MethodDeclarations required for the platform specific
model - for sure these Annotations and MethodDeclarations do not
exist in the platform independent model.
<br>
<br>
Are there any best practices how to realize this?
<br>
<br>
Maybe with use of newInstance(). Unfortunately I have some
Problems using this, because I did not find any useful resources
for this.
<br>
<br>
Maybe somebody can point me to some examples.
<br>
<br>
Many thx in advance!
<br>
<br>
</blockquote>
<br>
</body>
</html>

--------------000603020402010200060108
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <part1.08030007.06080908@willink.me.uk>

R0lGODlhggBkANU/APHx9Y2JqyQcUT0ydUg5k0E2esfF1WtmkTUraUxMdLOx ymVYkikfWUI0
hLCMyJJ0tTouc0Q1jElCh1RIl0Q5gHlupRkXK0k9jEY4itTT3yUoS01AlUg9 g15Ygh8YSnVc
oxsiWD4wfy0jXzo7ZFM7g1ZHjV1PmjM4WqqowJeVtSsvVD5CbCwzZ5uBvV1Y nk5Ug+Pi6zEn
Y356oGRipby60DU3djEzOGRfii8veaGdvUk4f148hisoQC4yRP///zMzMyH5 BAEAAD8ALAAA
AACCAGQAAAb/wJ9wOLSxcLVaYckcLAfQAjQ6rVqvAwgUws1yv+CweEwum7m4 tMpGbLuFPSVl
XphTlnQ8c8/v+5shT04FIQMhhVCHhYdTjBCKWodckpNelI9fIWc4PW9uNjUc cxyidaRLpHcU
pQWsq3d1sHZOOrJ3gXOHubhSIQ0NhQUNhL7Aj8bFmr7KlMuPzZrP0c04bJ4/ camroqPcqaa2
qnnjFMCxhw3luMC+FOi/74rsyeiKy/X49tL2zNOSh5w89bBDsKDBgwaF/Rr2 xw+/hxAjSpxI
sWLANjZeIdzIkeDCjyBDihxZsaTJkyGqtQlF6gIpUhJEcX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ARFu+ 2ZI95U7eV8+9
2Yxd5HQu5HUO2sKdssldTtdE5i7+5HMesQmG40+esk6e15ktvKdFXYLN5yDc 5C+e2Z1tTSk7
5yyUWnOu3HHO2XcO2hpw1g3u2F3NREy0uwa9Akxk0FnL5HC95a+N3h2wApqd tcvo2R4QA/9M
xOSeDUOa6uoMMAJv49i4LuvAjgAC4AGDjeyO7dnBXePUbdzPPt3MPtifzuAA HtKPLeraru3Z
3tgR6wEFrezcLu7GrezHnuy2ju4kTe7gvu6hfu5BLu7sPu0FbQMg0On43unI LgBLtO/nLtge
4O8CL/CaHfAFf/AIf+wED9oGD/D47u///tkg8AP3vvAKX/D7HvDIrvEAb/Aa //EgH/IiP/Ik
X/Ikr/Am//Eof/IKP/E9kPCfbfENf/E0T/Mcb/Men/M63/Edv/EN//NA3/M8 j/JDP/NB7/CC
3QkU7+7rbu5O3+7wrvBkbPBNP/RSf/FNX/UMQPU4b+sZ//Q8z/S9WB/1AR/u Xh/28D7xcODu
Vj/wCX/0XU/0OP/1Qh/3dg/3bo/0NZ/3Ro/sSi8EIJDygj/4hF/4hn/4h6/2 RBD4iN/4jv/4
kE/4ik8E9k73cg/0lt/3RX/0N4/5m5/5Xw/6ov/5m6/ZIGANbwACVX/5oV/6 rh/3nW/5c//6
nF/7ox/3k+8JGsD4kd/7vv/7JA8CGnANbrD7wH/8yP/4wk/812ADu59S0B/9 0j/91F/91n/9
2J/92r/9GoD6nhAEADs=
--------------000603020402010200060108--
Previous Topic:[ATL] xsd->Ecore->ATL
Next Topic:[ATL] Could we create an ATL rule without using the "TO" part
Goto Forum:
  


Current Time: Thu Feb 25 08:42:56 GMT 2021

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

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

Back to the top