Skip to main content



      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 09:59 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 122 times)
Re: How to certain rules with entered paramter to an Attribute? [message #1831145 is a reply to message #1830651] Wed, 12 August 2020 07:04 Go to previous messageGo to next message
Eclipse UserFriend
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 (
      ...)
}
Re: How to certain rules with entered paramter to an Attribute? [message #1831155 is a reply to message #1831145] Wed, 12 August 2020 09:51 Go to previous message
Eclipse UserFriend
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 Jul 12 08:37:52 EDT 2025

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

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

Back to the top