|
Re: [ATL] Rule choose [message #655449 is a reply to message #655277] |
Mon, 21 February 2011 08:13 |
William Piers Messages: 301 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------070207030204080202020901
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hi,
Answers below:
Le 18/02/2011 23:29, fabio a écrit :
> hi, i would ask to you, how ATL choose which rule to apply if i have 2,
> or more, rule that are active?
>
> (for active I means that the rule have a match in the source model)
>
In fact, when using ATL standard rules (declarative), you cannot apply
several rules to one element (this will cause an execution error). This
is the condition which allows the compiler to manage the declarative
constructs, basically to later retrieve which input element was used to
create an output one.
To make an element be the input of several rules, you have to use
another type of rule (lazy, called, see
http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#Ru les_usage
for more details).
> If a rule have 2 or more match, the rule is applied to every match?
Exactly.
>
> thanks in advance.
Best regards,
William
--------------070207030204080202020901
Content-Type: text/x-vcard; charset=utf-8;
name="william_piers.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="william_piers.vcf"
YmVnaW46dmNhcmQNCmZuOldpbGxpYW0gUGllcnMNCm46UGllcnM7V2lsbGlh bQ0Kb3JnOk9i
ZW8NCmFkcjoyIHJ1ZSBSb2JlcnQgU2NodW1hbm47O2xvdCAyNDtOQU5URVM7 OzQ0NDA4O0Zy
YW5jZQ0KZW1haWw7aW50ZXJuZXQ6d2lsbGlhbS5waWVyc0BvYmVvLmZyDQp0 aXRsZTpNREEg
Q29uc3VsdGFudA0KdGVsO3dvcms6KzMzICgwKTIgNTEgMTMgNTAgNTMNCnVy bDpodHRwOi8v
d3d3Lm9iZW8uZnINCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------070207030204080202020901--
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds