Skip to main content



      Home
Home » Modeling » OCL » ocl uml, can we do something?
ocl uml, can we do something? [message #3232] Thu, 01 February 2007 05:00 Go to next message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

Hello,

I am interested on using OCL for UML models. I read that OCL part for UML is
incoming and the current release does not implement all the features.

Nevertheless I would like to play a little bit with. Can I use it despite it is
not yet finished? My bonus question is to know if someone could be "nice enough"
to give a short query to help me to start with this library (alike the
validateEmployees[1])

best regards.

Reference:
[1] http://www.eclipse.org/articles/Article-EMF-Codegen-with-OCL /article.html

--
F. Lagarde
Re: ocl uml, can we do something? [message #3296 is a reply to message #3232] Thu, 01 February 2007 15:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, François,

The org.eclipse.ocl.uml plug-in (available in the most recent OCL build).
The primary purpose is to support the parsing of constraints embedded in
UML models, or applied to UML models from auxiliary text files. To that
end, we support the parsing of all of the language constructs defined by
CompleteOCL (the dialect for UML). This is useful for tools that wish, for
example, to transform OCL constraints to code in whatever domain-specific
language when they transform the model to code.

On the evaluation (interpreter) side, we support only a subset of the
possible expressions, and it depends on what you are evaluating expressions
on. For example, in evaluating expressions on InstanceSpecifications (in
the model, itself), association-class navigation and qualified association
navigation are supported. These expressions are not supported when
evaluating OCL on instances of an Ecore API generated from UML, because
Ecore/Java does not support these concepts. Similarly, evaluation of
operation calls is supported on instances of a generated API, but not an
InstanceSpecifications (because, in that case, there is no code). Of
course, operation calls are always supported when OCL itself provides a
body ...

The constraints in the article should be good examples to start from, even
for UML, because the OCL doesn't look any different whether you're dealing
with Ecore or UML models. The difference is in what it makes sense to try
to express in OCL, according to the different capabilities of Ecore (EMOF)
and UML.

HTH,

Christian


François Lagarde wrote:

> Hello,
>
> I am interested on using OCL for UML models. I read that OCL part for UML
> is incoming and the current release does not implement all the features.
>
> Nevertheless I would like to play a little bit with. Can I use it despite
> it is not yet finished? My bonus question is to know if someone could be
> "nice enough" to give a short query to help me to start with this library
> (alike the validateEmployees[1])
>
> best regards.
>
> Reference:
> [1]
> [ http://www.eclipse.org/articles/Article-EMF-Codegen-with-OCL /article.html
>
Re: ocl uml, can we do something? [message #3362 is a reply to message #3296] Fri, 02 February 2007 03:03 Go to previous message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

In the last post, on 02/01 about 09h, "Christian" (Christian W Damus) wrote:


Christian> The org.eclipse.ocl.uml plug-in (available in the most recent
Christian> OCL build) [...] The constraints in the article should be
Christian> good examples to start from

thanks a lot,

I installed this last plugin. I will try it as soon as possible.

--
F. Lagarde
Previous Topic:[Announce] MDT OCL 1.1.0 I200702011837 is available
Next Topic:Getting started questions from the mailing list
Goto Forum:
  


Current Time: Thu Jun 05 02:27:42 EDT 2025

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

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

Back to the top