Skip to main content



      Home
Home » Modeling » ATL » resolveTemp() in lazy rule
resolveTemp() in lazy rule [message #1076153] Tue, 30 July 2013 16:23 Go to next message
Eclipse UserFriend
Hi,

I have some questions about lazy rules.

I have a ResolveTemp in a lazy rule called by a rule. The parameter in resolveTemp() matches the target in another lazy rule called by the same rule. But this resolveTemp does not work. Is it because that the matched target is created by a lazy rule? If so, How I can sort it out?

Another question is that does the resolveTemp() work when the target is created from a rule that has multiple source element in the "from" section? because in the examples that I have seen, the rule in its "from" section has only one source element that one or multiple target elements created from it.

Thanks
Re: resolveTemp() in lazy rule [message #1076345 is a reply to message #1076153] Wed, 31 July 2013 04:07 Go to previous message
Eclipse UserFriend
Hello,

Concerning your first question, it would be easier to see the ATL code excerpts in order to identify the issue.
Concerning your second question, if you have multiple inputs in your lazy rule then you have to pass the corresponding model elements when calling it (e.g. thisModule.myLazyRule(modelElement1,modelElement2)).

Generally, note that the use of standard matched rules is recommended in ATL and that lazy (matched) rules have to be used only when strictly needed.

Best regards,
Previous Topic:UML Testing Profile not found
Next Topic:Problem when setting values of applied Stereotypes
Goto Forum:
  


Current Time: Wed Jul 23 13:52:58 EDT 2025

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

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

Back to the top