thisModule.resolveTemp [message #544188] |
Thu, 01 July 2010 23:00 |
wafaa Messages: 163 Registered: January 2010 Location: Egypt |
Senior Member |
|
|
hi, Can some one explain what is the need and use for the ATL Module Operation resolveTemp.
I read the tutorial but could not get how from a matched rule, I can point to a target element and in which case i prefer to use it.
I also read example but did not get it,
packagedElement <- Set {
s.packagedElement,
UML2!Class.allInstancesFrom('IN')->collect(e | thisModule.resolveTemp(e, 'extension'))
thanks in advanced
wafaa
[Updated on: Thu, 01 July 2010 23:01] Report message to a moderator
|
|
|
|
Re: thisModule.resolveTemp [message #544325 is a reply to message #544255] |
Fri, 02 July 2010 11:27 |
wafaa Messages: 163 Registered: January 2010 Location: Egypt |
Senior Member |
|
|
Vincent MAHE wrote on Fri, 02 July 2010 10:20 | Le 02/07/2010 01:00, wafaa a écrit :
When you refer to a input Class value in the 'to' section of a rule, ATL
replace it with the corresponding output value. By default it is the
first output element of the 'to' section of corresponding rule. If you
want to refer to one of the others (the rule for Class can produce
multiple outputs) then you need to force it using resolveTemp....
|
yes, i uses output element of another matched rule, not the current one? is that true,
can you give me example so that explain the replaced element and the target element
[Updated on: Fri, 02 July 2010 11:28] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02619 seconds