Home » Archived » GMT (Generative Modeling Technologies) » EVL 'one' operator
| | |
Re: [Epsilon] EVL 'one' operator [message #381765 is a reply to message #381764] |
Sun, 30 March 2008 00:43 |
Dimitrios Kolovos 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 |
Dimitrios Kolovos 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 #614510 is a reply to message #381764] |
Sun, 30 March 2008 00:43 |
Dimitrios Kolovos 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 |
Dimitrios Kolovos 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?
>>
>>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 07:42:17 GMT 2024
Powered by FUDForum. Page generated in 5.03739 seconds
|