Skip to main content



      Home
Home » Modeling » Model-to-Model Transformation » [ATL] Transform only a part of the rules ?
[ATL] Transform only a part of the rules ? [message #1830717] Sat, 01 August 2020 08:13 Go to next message
Eclipse UserFriend
Dear All, I am trying to transform the instances of Z to either to the instances at left or right.

If the Z's Name attribute is entered as 'left' then the rules that belong to left must be run to convert Z to both A and B. If 'right' then the rules that belong to the right must be run to C and D.

Thanks for your help.
  • Attachment: question.png
    (Size: 13.48KB, Downloaded 103 times)
Re: [ATL] Transform only a part of the rules ? [message #1830729 is a reply to message #1830717] Sat, 01 August 2020 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I'm not clear why you don't just write a pair of pim2left and pim2right transformations and invoke the appropriate one. If there is considerable sharing you might explore ATL's refining capabilities.

If you really want to unify them, then ATL's guards provide one option. (In QVTr you might play around with target domains).

Regards

Ed Willink
Re: [ATL] Transform only a part of the rules ? [message #1831149 is a reply to message #1830729] Wed, 12 August 2020 08:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

Actually, I implemented both pim2left and pim2right codes but the selection has to be controlled by the user,.
Re: [ATL] Transform only a part of the rules ? [message #1831184 is a reply to message #1831149] Thu, 13 August 2020 03:03 Go to previous message
Eclipse UserFriend
Hi

Not knowing how your user makes a choice I can only suggest that perhaps you use a shell script to make two choices, or pass a parameter to control guards , ....

Regards

Ed Willink

[Updated on: Thu, 13 August 2020 04:02] by Moderator

Previous Topic:Model-To-Model Sibling Child Problem
Next Topic:[QVTo] BPMN2 Metamodel issues
Goto Forum:
  


Current Time: Tue Apr 29 08:40:33 EDT 2025

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

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

Back to the top