Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumshow to write "for" logic in ATL
https://www.eclipse.org/forums/index.php/mv/msg/423481/967318/#msg_967318
for (int n=0; n<100;n++){
}
How to write this logic in atl?
ATL for logic used in collection is a bit different to this requirement. Here, iteration needs to happen until the condition becomes false.
Thanks in advance!
K]]>Kosala Yapa2012-11-01T17:20:37-00:00Re: how to write &quot;for&quot; logic in ATL
https://www.eclipse.org/forums/index.php/mv/msg/423481/968378/#msg_968378
The OCL idiom is
Sequence{0..99}->forAll(n | ... )
Regards
Ed Willink
On 01/11/2012 17:20, Kosala Yapa wrote:
> Hi there,
>
> for (int n=0; n<100;n++){
>
> }
>
>
> How to write this logic in atl?
>
>
> ATL for logic used in collection is a bit different to this
> requirement. Here, iteration needs to happen until the condition
> becomes false.
>
>
>
> Thanks in advance!
> K]]>Ed Willink2012-11-02T12:14:55-00:00Re: how to write &quot;for&quot; logic in ATL
https://www.eclipse.org/forums/index.php/mv/msg/423481/968453/#msg_968453
Kosala Yapa2012-11-02T13:24:19-00:00Re: how to write &quot;for&quot; logic in ATL
https://www.eclipse.org/forums/index.php/mv/msg/423481/969690/#msg_969690
> The OCL idiom is
>
> Sequence{0..99}->forAll(n | ... )
>
> On 01/11/2012 17:20, Kosala Yapa wrote:
>> for (int n=0; n<100;n++){
>>
>> }
>>
>> How to write this logic in atl?
>>
>> ATL for logic used in collection is a bit different to this requirement.
>> Here, iteration needs to happen until the condition becomes false.
I suppose I can add the following bit of knowledge to this: