Execute OCL queries on models [message #506960] |
Mon, 11 January 2010 09:45  |
Eclipse User |
|
|
|
Dear All,
I'm actually using EMF OCL and I'm analyzing the example RoyalAndLoyal available in the OCL plugin. The OCL query code in the .ocl file is defined on the basis of the ecore metamodel. Is possible to execute it on a model conforms to the corresponding metamodel? In other words, can I execute OCL queries on models and obtain the evaluation result?
Hope my question is clear, thanks in advance.
Bye,
Romina
|
|
|
Re: Execute OCL queries on models [message #508053 is a reply to message #506960] |
Fri, 15 January 2010 11:46  |
Eclipse User |
|
|
|
Hi Romina,
Have you tried the OCL Interpreter example provided by the OCL's SDK?
http://help.eclipse.org/galileo/topic/org.eclipse.ocl.doc/re ferences/examples/oclInterpreterExample.html
To make the OCL Interpreter available for you, you should do the following:
1. create a New -> Example -> OCL Interpreter, which creates the plugins
of the OCL interpreter in your workspace.
2. select a created plugin -> right click -> Run as -> Eclipse
Application, which runs a second instance of Eclipse which contains the
OCL Interpreter (You could also install the interpreter plugins in your
main installation).
3. Follow the link I provided above.
Cheers,
Adolfo.
El 11/01/2010 14:45, Romina Eramo escribió:
> Dear All,
>
> I'm actually using EMF OCL and I'm analyzing the example RoyalAndLoyal
> available in the OCL plugin. The OCL query code in the .ocl file is
> defined on the basis of the ecore metamodel. Is possible to execute it
> on a model conforms to the corresponding metamodel? In other words, can
> I execute OCL queries on models and obtain the evaluation result?
>
> Hope my question is clear, thanks in advance.
>
> Bye,
>
> Romina
|
|
|
Powered by
FUDForum. Page generated in 0.03283 seconds