Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Customizing ocl environnement
Customizing ocl environnement [message #32332] Sat, 07 July 2007 17:46 Go to next message
Eclipse User
Originally posted by: asma.charfi.com

Hi,
Can we add more than one operation to ower OCL environnement .
if yes, how can we use Calloperation method twice?
asma
Re: Customizing ocl environnement [message #32505 is a reply to message #32332] Mon, 09 July 2007 11:16 Go to previous message
Eclipse User
Originally posted by: cdamus.ca.ibm.com

Hi, Asma,

You can add as many operations as you need.

I don't understand what you mean by using Calloperation twice. If you are
implementing your additional operations in Java, then you simply have to
make sure that your implementation of
EvaluationEnvironment::callOperation(...) understands all of your
additional operations. How you accomplish that is entirely up to you, but
probably some modular design that does not use a big if...elseif...
structure in the callOperation(...) method would be appropriate.

Cheers,

Christian


charfi asma wrote:

> Hi,
> Can we add more than one operation to ower OCL environnement .
> if yes, how can we use Calloperation method twice?
> asma
Previous Topic:Referring to all attributes of a class/element.
Next Topic:OCL Grammar for Validation
Goto Forum:
  


Current Time: Sat Aug 30 02:25:11 EDT 2014

Powered by FUDForum. Page generated in 0.01758 seconds