Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » HOT helpers
HOT helpers [message #1814261] Fri, 06 September 2019 18:46 Go to next message
Yassmine Gara Hellal is currently offline Yassmine Gara HellalFriend
Messages: 9
Registered: April 2019
Junior Member
Hi can some one lead me plz to helpers written with HOT?
and what are the features that exists in IterateExp?
i want to write this part of helper

iterate(e; acc : Sequence(xm!a)
acc->union(e.allFeatures())


so i wrote :
h1:ATL!IterateExp (
source <- h1exp,
body <- h1union,
iterators <- Set{h1iterator1})

the result obtained is :

iterate(e, acc; |
acc->union(e.allFeatures())

i think some features on IterateExp are missed. can u correct for me the statement to otein the good result? and can u lead me to helpers written with HOT i can't found a suffisant documentation.
Re: HOT helpers [message #1814603 is a reply to message #1814261] Fri, 13 September 2019 19:26 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

The best way to learn about the ATL metamodel is to start by writing the expression you want to achieve in the ATL editor. Then, you right-click the .atl file in the Project Explorer view (or Package Explorer, as long as it shows your files...), and you select Open With -> Other... and then you choose Sample Reflective Ecore Model Editor. This will give you an abstract syntax tree (AST) editor of the ATL file. To find out more about the property values for a given AST node, such as your IterateExp, right-click the node and select Show Properties View. Note: all containment properties are typically hidden in the properties view, and can only be viewed in the main tree view, but without the property names(!). To circumvent this problem, you also also try to use the MoDisco Model Browser instead of the Sample Reflective Ecore Model Editor: this will give you a more detailed view of the property values.

Cheers,
Dennis
Previous Topic:One model to output model with multiple instances?
Next Topic:Multiple source model
Goto Forum:
  


Current Time: Sat Nov 11 08:18:21 GMT 2023

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

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

Back to the top