Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Two output models serialized into the same file?(It works sometimes...Bug?)
[ATL] Two output models serialized into the same file? [message #539049] Wed, 09 June 2010 13:21 Go to next message
Alex Schenkman is currently offline Alex Schenkman
Messages: 21
Registered: October 2009
Location: Sweden
Junior Member
Hi list:

I've been using the following header, to create a SINGLE file containing elements from two meta-models:

create OUT1 : UML, OUT2 : EST from IN1 : SIM;


This works sometimes.

1) Is this allowed in ATL?
2) If yes, why does it work only sometimes?

Thanks in advance!
Re: [ATL] Two output models serialized into the same file? [message #539795 is a reply to message #539049] Sun, 13 June 2010 08:08 Go to previous message
Helko Glathe is currently offline Helko Glathe
Messages: 55
Registered: July 2009
Member
Hi Alex,

your EST is a UML Pofile, Thus you can use all Stereotypes and also all standard UML elements (Class, Package, Attribute etc...) as first class elements in your ATL transformation.

e.g.

rule myRule{
....
to
xyz : EST!Class ...

zyx : EST!FunctionType(
....,
base_Class <- xyz,
...
)
}

Thus you must not do something like:

....
do{
xyz.applyStereotype(...);
xyz.setValue(...);
...
}


From my point of view, you do not need to state two output models explicitely.

The only thing you have to keep in mind is, that you must apply all Profiles (EAST Profile and explicitely all necessary sub Profiles from the EAST Profile) on the output model manualy with pure old Java Code (see uml2 package Model.applyProfile(...)) after the transformation has been done. A post processing so to say. Without doing that, no profiles will be applied on the output model when using the Profile EAST as metamodel.

Cheers, Helko

[Updated on: Sun, 13 June 2010 08:12]

Report message to a moderator

Previous Topic:[QVTo] Extract port conjugation from an RSA-RTE model
Next Topic:[ATL] Problem with keywords
Goto Forum:
  


Current Time: Sat Oct 25 22:51:22 GMT 2014

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

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