Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL interacting with Papyrus
ATL interacting with Papyrus [message #866593] Tue, 01 May 2012 00:03
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
Hi,

Please correct me where I am misunderstanding something:
I am using Papyrus, under the Topcased distribution, that also
comes with ATL.

I have a simple ATL file:
-- @nsURI UML=http://www.eclipse.org/uml2/3.0.0/UML
module GenerateA2B;
create OUT : MM from IN : MMS;
rule Test1 {
	from
		ma : MMS!AClass (ma.oclIsTypeOf(MMS!AClass))
	to 
		ta : MM!Class1 (
		  	name <- ma.name + '2'
		) 
}


Description of my elements
Now,

MMS: is a simple Papyrus model.uml with a class AClass in a
package.
MM: is a simple Papyrus model.uml in another project.
This model is already created.

In my Run configuration, I have

Source model: defined as my Papyrus model.uml containing
AClass. It conforms to uri:http://www.eclipse.org/uml2/3.0.0/UML
Target model: defined as the other Papyrus model.uml containing other classes.
It conforms to uri:http://www.eclipse.org/uml2/3.0.0/UML as well.

The execution of the ATL Configuration returns in the console:
... Cannot find class AClass in reference model MMS

[Q1] - Should I repeat the run configuration elements (MM and MMS
references) in the ATL script with @path ? Why, since they are in the run
configuration file ?

[Q2] - My models are in plain UML. Am I right to refer to
uri:http://www.eclipse.org/uml2/3.0.0/UML for their metamodels ?

[Q3] - I do not use references to any ecore file. Should I ?

[Q4] - Is there a way to test an ATL without having
org.eclipse.m2m.atl.engine.emfvm.VMException s ?

[Q5] - I would of wish to use the refining mode, but my last experience
made so much damage to my source/target model, that I had to re-insert
my model. In fact the model file (internally) was so damage, that
I had to remove manually the files from the disk. All test to read the
model file, would generate java...Null exceptions. Is there a way to avoid such
a problem, when using refining mode ? Like running in test mode, in read only,
simulating what will be done ?

[Q6] - I do not want to start an opinion thread, but what is are the main
differences between the users using QVT and ATL. Does ATL is the latest
transformation trend or should I switch to QVT, since, from my readings,
it does have more years of living ? Are they serving the same purposes ?

Regards.
Previous Topic:Official excuses
Next Topic:[ATL] Transforming one hierarchy type to another hierarchy type
Goto Forum:
  


Current Time: Fri Apr 26 18:35:23 GMT 2024

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

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

Back to the top