Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EOL: How to modify an element of a sequence to another value?
EOL: How to modify an element of a sequence to another value? [message #1725803] Mon, 07 March 2016 18:12 Go to next message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Hi,

I want to modify the values of some indices in a sequence. Is there any trick to do that?
For example, I like to modify "H1" and "H2" in the following sequence to "Handler":
s: Sequence(Sequence);
...
s = Sequence {Sequence {foo1, H2}, Sequence {foo2, H1, H2}, ...}


Best regards,
Alireza

[Updated on: Tue, 08 March 2016 04:18]

Report message to a moderator

Re: EOL: How to modify an element of a sequence to another value? [message #1725877 is a reply to message #1725803] Tue, 08 March 2016 08:58 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2182
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

EOL sequences are backed by Java lists, which don't provide a "replace" facility out of the box. As such, you'd have to use index-based add() and remove() to achieve this.

Cheers,
Dimitris
Re: EOL: How to modify an element of a sequence to another value? [message #1725882 is a reply to message #1725877] Tue, 08 March 2016 09:33 Go to previous message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Dear Dimitris,

Thanks a lot.

Best regards,
Alireza
Previous Topic:Invoking Flock programmatically
Next Topic:Epsilon support
Goto Forum:
  


Current Time: Sat Sep 21 14:52:29 GMT 2024

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

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

Back to the top