Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Problem Change ATL Class name(How change ATL class name?)
Problem Change ATL Class name [message #1806307] Tue, 07 May 2019 14:35 Go to next message
Jérémy Cavron is currently offline Jérémy CavronFriend
Messages: 8
Registered: May 2019
Location: France
Junior Member
Hi,
I have question it's possible to change ATL class Name
Because when I execute with pure ATL, it's ok.
But with emftvm, that change my name class.

I show you an example :

create OUTModelica : MMModelica from INConcept : MMConcept;
...
...
rule BlackBox2Modelica {
	from
		BlackBox : MMConcept!BlackBox
	to
	Mod : MMModelica!Model (
		name <-	BlackBox.box.name
		--models <- BlackBox.box.boxes -> collect (c | thisModule.boxes(c));
		)
		--Juste example here
		do{
			BlackBox.box.boxes.debug('boxes');
		}
}


If I execute with pure ATL :

boxes: Sequence {INConcept!V2VM_comp, INConcept!V2VM_regles, INConcept!V2VM_cont}


if I execute with emftvm :

boxes: Sequence{V2VM_comp:MMConcept!InternalBox, V2VM_regles:MMConcept!InternalBox, V2VM_cont:MMConcept!InternalBox}


emftvm don't take alias and change result.
How do you do to keep result ATL pure?

I have a multi packages in my metamodel.
Ask me if you would like other files or info. I'm beginner in ATL.

thank you for all.

Jeremy

[Updated on: Thu, 09 May 2019 13:45]

Report message to a moderator

Re: Problem Change ATL Class name [message #1806471 is a reply to message #1806307] Thu, 09 May 2019 13:49 Go to previous messageGo to next message
Jérémy Cavron is currently offline Jérémy CavronFriend
Messages: 8
Registered: May 2019
Location: France
Junior Member
So after much tests. it's not problem of class name. I test a similar example and it's ok. I don't see where is a problem. ESuperType in class ? but with another example it's ok. multi-package? I delete multi-package and the same . I continue to testing errors cases

[Updated on: Thu, 09 May 2019 13:50]

Report message to a moderator

Re: Problem Change ATL Class name [message #1806476 is a reply to message #1806471] Thu, 09 May 2019 14:43 Go to previous message
Jérémy Cavron is currently offline Jérémy CavronFriend
Messages: 8
Registered: May 2019
Location: France
Junior Member
Sorry. That's not where the problem came from. It came from the following rule
...
lazy rule boxes {
	from
		boxes : OclAny
		using {
.....

I had put Set(String) and OclAny it's working.


However, I had already done it at the beginning of the week. To nothing to understand.


It's solved, I close

thank
Previous Topic:How to reverse an ATL transformation
Next Topic:How Eclipse resolves URIs ?
Goto Forum:
  


Current Time: Sat Nov 11 08:19:57 GMT 2023

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

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

Back to the top