Hello,
I have developed an interest for this particular line of code:
m:for actor | self.containedSystemAnalysis.ownedSystemComponentPkg->closure(cPkg | cPkg.ownedSystemComponentPkgs).ownedSystemComponents->select(sComp | sComp.actor)
I tried to look up for the this “closure” part of this call, I cannot find it on AQL documentation ( Acceleo (eclipse.org)), nor in Java ( Java Closure - Javatpoint)?
How does this work? What does it do exaclty?
Another question is about the “select” feature.
In this FOR loop we have a variable actor which is equal to : ??? I can’t seem to put my finger on the value of actor on this line of code, is it :
self.containedSystemAnalysis.ownedSystemComponentPkg->at(n) ?
self.containedSystemAnalysis.ownedSystemComponentPkg.ownedSystemComponentPkgs->at(n)?
self.containedSystemAnalysis.ownedSystemComponentPkg.ownedSystemComponentPkgs.ownedSystemComponents->at(n)
If it’s equal to any of the above, how does it come i could not replace its value in the following part?
“select(sComp | sComp.actor)” who could become "select(sComp | sComp.insertOneofTheAbove)?)
Sorry if this is too obvious for the veteran in Java, maybe I am missing some basics that I hadn’t the chance to look at.
Thanks