Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:45 Go to next message
Romina Eramo is currently offline Romina EramoFriend
Messages: 1
Registered: January 2010
Junior Member
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 16:46 Go to previous message
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo HerreraFriend
Messages: 254
Registered: July 2009
Senior Member
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: Wed Nov 26 17:52:48 GMT 2014

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

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