Adding new operation in OCL standard library [message #1085865] |
Tue, 13 August 2013 09:30  |
Eclipse User |
|
|
|
i want to add an operation in standard ocl library. The signature of operation is like
real operation(real, real)
I am uncertain about categorizing this operation. This is neither a collection operation nor operation for numeric types(x.floor(), x.abs(), etc)
i want to use it like
let x : Real = operation(20, 2)
Can you please guide me under which category i should define this operation? Should i define it under OclAny category?
Regards,
[Updated on: Tue, 13 August 2013 09:39] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Adding new operation in OCL standard library [message #1087276 is a reply to message #1087199] |
Thu, 15 August 2013 07:55  |
Eclipse User |
|
|
|
Hi
Because from what I have seen you have a very tangled mixture of
standard and extended functionality, it is impossible to give a quick
answer as to whether the problem is due to the tangle, a bug in your
code or a bug in the underlying code.
Regards
Ed Willink
On 15/08/2013 10:16, ModelGeek Mising name wrote:
> Yes i can understand.
>
> i would like to ask one simple question then
>
> i have defined myoperation under OCLAny
>
> let x : Real = myoperation(100,2) in x does not work and gives exception
> but let x : Real = 10 in x.myoperation(100,2) works perfecly
>
> do you have any clue why first ocl statement myoperation is not
> recognized?
>
> thanks for your help!
>
> regards,
|
|
|
Powered by
FUDForum. Page generated in 0.09399 seconds