Problem Change ATL Class name [message #1806307] |
Tue, 07 May 2019 14:35 |
Jérémy Cavron 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02173 seconds