|Re: specialzed OCL [message #1033628 is a reply to message #1033609]
||Thu, 04 April 2013 12:58
| Ed Willink
Registered: July 2009
You've given no real clue as to what you really want to do, just a vague
assumption of your not-working solution.
If you're using OCLinEcore why not just add features to taste, possibly
in a dummy utilities class.
If you're using Complete OCL why not just add features to taste,
So what is your problem?
On 04/04/2013 13:32, ModelGeek Mising name wrote:
> I want to add some operations in default OCL so i can use them in ocl
> statements and then delegates should be able to evaluate them
> according to given implementation.
> Lets say i want to add operation xyz(real, real) with return type real
> as well. Now suppose i have a classed named "class1" and has three
> real attributes names as "one", "two" and "three". In derivation
> statement of "three" i want to write "self.xyz(self.one, seld.2)". I
> want xyz operation to be part of default OCL implemention same as
> collect, select, count etc operations are part of OCL.
> How can i extend default implementation to make xyz part of it and how
> to extends delegates to be able to recognize and evaluate it as any
> other default operation available in OCL