Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Manipulating collections
[ATL] Manipulating collections [message #104269] Wed, 29 April 2009 23:32 Go to next message
Guillaume Gauffre is currently offline Guillaume GauffreFriend
Messages: 65
Registered: July 2009
Member
Hi,

Does anybody knows how to reorganize a structure of collection such as :
Sequence {
1
Sequence {
2,
Sequence {
3
},
Sequence {
4
}
},
Sequence {
3
},
Sequence {
4
}
}

in something like :
Sequence {
Sequence {
1,
2,
3
}
Sequence {
1,
2,
4
}
Sequence {
1,
3
},
Sequence {
1,
4
}
}

I don't find the way to process such operation.

Thanks,
Guillaume
Re: [ATL] Manipulating collections [message #104291 is a reply to message #104269] Thu, 30 April 2009 13:53 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
maybe try to use iterate operation to reorganize your collection

Guillaume a écrit :
> Hi,
>
> Does anybody knows how to reorganize a structure of collection such as :
> Sequence {
> 1
> Sequence {
> 2,
> Sequence {
> 3
> },
> Sequence {
> 4
> }
> },
> Sequence {
> 3
> },
> Sequence {
> 4
> }
> }
>
> in something like :
> Sequence {
> Sequence {
> 1,
> 2,
> 3
> }
> Sequence {
> 1,
> 2,
> 4
> }
> Sequence {
> 1,
> 3
> },
> Sequence {
> 1,
> 4
> }
> }
>
> I don't find the way to process such operation.
>
> Thanks,
> Guillaume




Re: [ATL] Manipulating collections [message #104380 is a reply to message #104291] Mon, 04 May 2009 00:07 Go to previous message
Guillaume Gauffre is currently offline Guillaume GauffreFriend
Messages: 65
Registered: July 2009
Member
Solution found,

thanks

Tristan FAURE a écrit :
> maybe try to use iterate operation to reorganize your collection
>
> Guillaume a écrit :
>> Hi,
>>
>> Does anybody knows how to reorganize a structure of collection such as :
>> Sequence {
>> 1
>> Sequence {
>> 2,
>> Sequence {
>> 3
>> },
>> Sequence {
>> 4
>> }
>> },
>> Sequence {
>> 3
>> },
>> Sequence {
>> 4
>> }
>> }
>>
>> in something like :
>> Sequence {
>> Sequence {
>> 1,
>> 2,
>> 3
>> }
>> Sequence {
>> 1,
>> 2,
>> 4
>> }
>> Sequence {
>> 1,
>> 3
>> },
>> Sequence {
>> 1,
>> 4
>> }
>> }
>>
>> I don't find the way to process such operation.
>>
>> Thanks,
>> Guillaume
Previous Topic:[QVTO] transforming profile-based models revisited
Next Topic:[QVTO] Generating UML model with Stereotypes
Goto Forum:
  


Current Time: Fri Apr 26 05:17:34 GMT 2024

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

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

Back to the top