Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » loop
loop [message #1095216] Mon, 26 August 2013 19:55 Go to next message
Mahin Abbasipour is currently offline Mahin AbbasipourFriend
Messages: 24
Registered: June 2013
Junior Member
Hi,

In one of my elements, I have an attribute which is from the type integer. I want to do some imperative steps as many as the value of that attribute is. I am wondering is it possible to do that in the do section of my rule? If so, how?

thanks.
Re: loop [message #1095657 is a reply to message #1095216] Tue, 27 August 2013 10:53 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

ATL provides an implementation of the for statement.
However, as using imperative code is not the best recommended practice in ATL, we generally prefer to use iterators over collections.

Best regards,


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Previous Topic:Problem with getValue
Next Topic:Multiple inputs with references
Goto Forum:
  


Current Time: Fri Apr 26 13:57:03 GMT 2024

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

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

Back to the top