Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » How to certain rules with entered paramter to an Attribute?
How to certain rules with entered paramter to an Attribute? [message #1830651] Thu, 30 July 2020 13:59 Go to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
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 81 times)
Re: How to certain rules with entered paramter to an Attribute? [message #1831145 is a reply to message #1830651] Wed, 12 August 2020 11:04 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

rule ZLeft {
  from s : PIM!Z (s.name = 'left')
  to a : PSM!A (
      ...),
     b : PSM!B (
      ...)
}

rule ZRight {
  from s : PSM!Z (s.name = 'right')
  to c : PSM!C (
      ...),
     d : PSM!D (
      ...)
}


Cheers,
Dennis
Re: How to certain rules with entered paramter to an Attribute? [message #1831155 is a reply to message #1831145] Wed, 12 August 2020 13:51 Go to previous message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Thanks Dennis, I managed it to work !
Previous Topic:ATL Generic Type Helper ?
Next Topic:Access to UML stereotypes from ATL EMFTVM script...
Goto Forum:
  


Current Time: Sat Apr 27 00:07:20 GMT 2024

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

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

Back to the top