Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » EVL 'one' operator
EVL 'one' operator [message #381762] Sat, 29 March 2008 19:49 Go to next message
Andrew Lawson is currently offline Andrew LawsonFriend
Messages: 12
Registered: July 2009
Junior Member
Does EVL have the 'one' operator to act on collections when you are
interested in a condition appearing only once?
Re: [Epsilon] EVL 'one' operator [message #381763 is a reply to message #381762] Sat, 29 March 2008 20:45 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Andrew,

There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
returns true.

Please remember to prefix message subjects with [Epsilon] in the future :)

Cheers,
Dimitrios


Andrew Lawson wrote:
> Does EVL have the 'one' operator to act on collections when you are
> interested in a condition appearing only once?
>
>
Re: [Epsilon] EVL 'one' operator [message #381764 is a reply to message #381763] Sat, 29 March 2008 23:41 Go to previous messageGo to next message
Andrew Lawson is currently offline Andrew LawsonFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Dimitrios,

Is want to say that something exists, but only once? I want to test that
in a collection an attribute is set to true but only for one member of the
collection. In OCL you would replace 'exists' with 'one', is there anything
like this in EVL?

Cheers,
Andrew


"Dimitrios Kolovos" <dskolovos@gmail.com> wrote in message
news:fsm9ou$hkf$1@build.eclipse.org...
> Hi Andrew,
>
> There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
> returns true.
>
> Please remember to prefix message subjects with [Epsilon] in the future
> :)
>
> Cheers,
> Dimitrios
>
>
> Andrew Lawson wrote:
>> Does EVL have the 'one' operator to act on collections when you are
>> interested in a condition appearing only once?
Re: [Epsilon] EVL 'one' operator [message #381765 is a reply to message #381764] Sun, 30 March 2008 00:43 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Andrew,

I see. I'm afraid there is no such operation currently in EOL. Could you
please open an enhancement feature in the bugzilla? As a temporary
workaround you can use the select() operation and check the size of the
returned result: e.g. Sequence{1,2,3}.select(i|i=1).size() = 1

Cheers,
Dimitrios

Andrew Lawson wrote:
> Hi Dimitrios,
>
> Is want to say that something exists, but only once? I want to test that
> in a collection an attribute is set to true but only for one member of the
> collection. In OCL you would replace 'exists' with 'one', is there anything
> like this in EVL?
>
> Cheers,
> Andrew
>
>
> "Dimitrios Kolovos" <dskolovos@gmail.com> wrote in message
> news:fsm9ou$hkf$1@build.eclipse.org...
>> Hi Andrew,
>>
>> There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
>> returns true.
>>
>> Please remember to prefix message subjects with [Epsilon] in the future
>> :)
>>
>> Cheers,
>> Dimitrios
>>
>>
>> Andrew Lawson wrote:
>>> Does EVL have the 'one' operator to act on collections when you are
>>> interested in a condition appearing only once?
>
>
Re: [Epsilon] EVL 'one' operator [message #381949 is a reply to message #381765] Wed, 16 April 2008 09:13 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
On a follow-up to this, the one() operation has been added in version
1.3.3 which was released yesterday.

Cheers,
Dimitrios

Dimitrios Kolovos wrote:
> Hi Andrew,
>
> I see. I'm afraid there is no such operation currently in EOL. Could you
> please open an enhancement feature in the bugzilla? As a temporary
> workaround you can use the select() operation and check the size of the
> returned result: e.g. Sequence{1,2,3}.select(i|i=1).size() = 1
>
> Cheers,
> Dimitrios
>
> Andrew Lawson wrote:
>> Hi Dimitrios,
>>
>> Is want to say that something exists, but only once? I want to test
>> that in a collection an attribute is set to true but only for one
>> member of the collection. In OCL you would replace 'exists' with
>> 'one', is there anything like this in EVL?
>>
>> Cheers,
>> Andrew
>>
>>
>> "Dimitrios Kolovos" <dskolovos@gmail.com> wrote in message
>> news:fsm9ou$hkf$1@build.eclipse.org...
>>> Hi Andrew,
>>>
>>> There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
>>> returns true.
>>>
>>> Please remember to prefix message subjects with [Epsilon] in the
>>> future :)
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>>
>>> Andrew Lawson wrote:
>>>> Does EVL have the 'one' operator to act on collections when you are
>>>> interested in a condition appearing only once?
>>
>>
Re: [Epsilon] EVL 'one' operator [message #614507 is a reply to message #381762] Sat, 29 March 2008 20:45 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Andrew,

There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
returns true.

Please remember to prefix message subjects with [Epsilon] in the future :)

Cheers,
Dimitrios


Andrew Lawson wrote:
> Does EVL have the 'one' operator to act on collections when you are
> interested in a condition appearing only once?
>
>
Re: [Epsilon] EVL 'one' operator [message #614509 is a reply to message #381763] Sat, 29 March 2008 23:41 Go to previous message
Andrew Lawson is currently offline Andrew LawsonFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Dimitrios,

Is want to say that something exists, but only once? I want to test that
in a collection an attribute is set to true but only for one member of the
collection. In OCL you would replace 'exists' with 'one', is there anything
like this in EVL?

Cheers,
Andrew


"Dimitrios Kolovos" <dskolovos@gmail.com> wrote in message
news:fsm9ou$hkf$1@build.eclipse.org...
> Hi Andrew,
>
> There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
> returns true.
>
> Please remember to prefix message subjects with [Epsilon] in the future
> :)
>
> Cheers,
> Dimitrios
>
>
> Andrew Lawson wrote:
>> Does EVL have the 'one' operator to act on collections when you are
>> interested in a condition appearing only once?
Re: [Epsilon] EVL 'one' operator [message #614510 is a reply to message #381764] Sun, 30 March 2008 00:43 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Andrew,

I see. I'm afraid there is no such operation currently in EOL. Could you
please open an enhancement feature in the bugzilla? As a temporary
workaround you can use the select() operation and check the size of the
returned result: e.g. Sequence{1,2,3}.select(i|i=1).size() = 1

Cheers,
Dimitrios

Andrew Lawson wrote:
> Hi Dimitrios,
>
> Is want to say that something exists, but only once? I want to test that
> in a collection an attribute is set to true but only for one member of the
> collection. In OCL you would replace 'exists' with 'one', is there anything
> like this in EVL?
>
> Cheers,
> Andrew
>
>
> "Dimitrios Kolovos" <dskolovos@gmail.com> wrote in message
> news:fsm9ou$hkf$1@build.eclipse.org...
>> Hi Andrew,
>>
>> There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
>> returns true.
>>
>> Please remember to prefix message subjects with [Epsilon] in the future
>> :)
>>
>> Cheers,
>> Dimitrios
>>
>>
>> Andrew Lawson wrote:
>>> Does EVL have the 'one' operator to act on collections when you are
>>> interested in a condition appearing only once?
>
>
Re: [Epsilon] EVL 'one' operator [message #614898 is a reply to message #381765] Wed, 16 April 2008 09:13 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
On a follow-up to this, the one() operation has been added in version
1.3.3 which was released yesterday.

Cheers,
Dimitrios

Dimitrios Kolovos wrote:
> Hi Andrew,
>
> I see. I'm afraid there is no such operation currently in EOL. Could you
> please open an enhancement feature in the bugzilla? As a temporary
> workaround you can use the select() operation and check the size of the
> returned result: e.g. Sequence{1,2,3}.select(i|i=1).size() = 1
>
> Cheers,
> Dimitrios
>
> Andrew Lawson wrote:
>> Hi Dimitrios,
>>
>> Is want to say that something exists, but only once? I want to test
>> that in a collection an attribute is set to true but only for one
>> member of the collection. In OCL you would replace 'exists' with
>> 'one', is there anything like this in EVL?
>>
>> Cheers,
>> Andrew
>>
>>
>> "Dimitrios Kolovos" <dskolovos@gmail.com> wrote in message
>> news:fsm9ou$hkf$1@build.eclipse.org...
>>> Hi Andrew,
>>>
>>> There is the 'exists' operation: e.g. Sequence{1,2,4}.exists(i|i=1)
>>> returns true.
>>>
>>> Please remember to prefix message subjects with [Epsilon] in the
>>> future :)
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>>
>>> Andrew Lawson wrote:
>>>> Does EVL have the 'one' operator to act on collections when you are
>>>> interested in a condition appearing only once?
>>
>>
Previous Topic:How to install KM3 to Eclipse 3.3.2
Next Topic:[MOFScript] MOFScript 1.3 source code?
Goto Forum:
  


Current Time: Sat Nov 22 21:33:00 GMT 2014

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

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