helper definition within the OCL console [message #33505] |
Thu, 19 July 2007 13:33 |
Eclipse User |
|
|
|
Originally posted by: firstname.name.gmail.com
Hello
I would like to create a helper function within the console. But each time I get
a "Invalid OCL".
So my question is to know if the ocl console supports helper definition.
Bonus question: my /ultimate/ goal is to make a helper, in OCL, to compute the
longest path to reach the "root parent", i.e,
A extends B,C
B extends D
longestPath(A) = 2
thanks,
--
F. Lagarde
|
|
|
Re: helper definition within the OCL console [message #33539 is a reply to message #33505] |
Thu, 19 July 2007 17:38 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, François,
No, the console example does not provide a means to define additional
attributes/operations. However, it is an example for which you have the
source code in your workspace, so you can add whatever capabilities to it
that you need :-)
Concerning the bonus question, I would be inclined to do that with a pair of
co-dependent recursive additional operations, but the parser isn't capable
of that, yet.
Cheers,
Christian
François Lagarde wrote:
> Hello
>
> I would like to create a helper function within the console. But each time
> I get a "Invalid OCL".
>
> So my question is to know if the ocl console supports helper definition.
>
> Bonus question: my /ultimate/ goal is to make a helper, in OCL, to compute
> the longest path to reach the "root parent", i.e,
>
> A extends B,C
> B extends D
>
> longestPath(A) = 2
>
> thanks,
>
|
|
|
Powered by
FUDForum. Page generated in 0.05487 seconds