Home » Archived » GMT (Generative Modeling Technologies) » EVL 'one' operator
EVL 'one' operator [message #381762] |
Sat, 29 March 2008 15:49  |
Eclipse User |
|
|
|
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] |
Sat, 29 March 2008 20:43   |
Eclipse User |
|
|
|
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 05:13  |
Eclipse User |
|
|
|
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 16:45  |
Eclipse User |
|
|
|
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 19:41  |
Eclipse User |
|
|
|
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] |
Sat, 29 March 2008 20:43  |
Eclipse User |
|
|
|
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 05:13  |
Eclipse User |
|
|
|
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?
>>
>>
|
|
|
Goto Forum:
Current Time: Tue Jul 22 18:57:08 EDT 2025
Powered by FUDForum. Page generated in 0.04601 seconds
|