Skip to main content



      Home
Home » Modeling » OCL » Execute OCL queries on models(How to evaluate OCL Queries)
Execute OCL queries on models [message #506960] Mon, 11 January 2010 09:45 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:EMF with OCL
Next Topic:[Announce] Eclipse/OMG Symposium 2010
Goto Forum:
  


Current Time: Tue Jul 22 18:37:57 EDT 2025

Powered by FUDForum. Page generated in 0.03283 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top