Skip to main content



      Home
Home » Modeling » OCL » VariableExp and "UMLVariable"
VariableExp and "UMLVariable" [message #36282] Thu, 30 August 2007 06:13 Go to next message
Eclipse UserFriend
Originally posted by: krzysztof_kaczmarski.o2.pl

Hi All,

If I use OCL in UML Actions models is there any way to refer to UML
Variable from OCL expressions?
I can see that VariableExp accepts only OCL Variable...
Somehow strange if we consider those standards to be integrated.

Regards,
Krzysztof
Re: VariableExp and "UMLVariable" [message #36668 is a reply to message #36282] Tue, 11 September 2007 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Krzysztof,

Right, this is one of those cases where these two standards are not
integrated.

I don't know of a way to access UML Variables; OCL only knows about
properties and operation parameters. The only part of OCL that addresses
behaviour models is the Transition guards in state machines, and variables
don't enter into it here.

Cheers,

Christian

Krzysztof Kaczmarski wrote:

> Hi All,
>
> If I use OCL in UML Actions models is there any way to refer to UML
> Variable from OCL expressions?
> I can see that VariableExp accepts only OCL Variable...
> Somehow strange if we consider those standards to be integrated.
>
> Regards,
> Krzysztof
Re: VariableExp and "UMLVariable" [message #37779 is a reply to message #36668] Mon, 24 September 2007 06:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krzysztof_kaczmarski.o2.pl

Hi Christian,

this is rather bad news for me.
If we use our imagination... is there any obstacle to integrate UML
variable with OCL variable in a single metaclass ?

Cheers,
Krzysztof


Christian W. Damus wrote:
> Hi, Krzysztof,
>
> Right, this is one of those cases where these two standards are not
> integrated.
>
> I don't know of a way to access UML Variables; OCL only knows about
> properties and operation parameters. The only part of OCL that addresses
> behaviour models is the Transition guards in state machines, and variables
> don't enter into it here.
>
> Cheers,
>
> Christian
>
> Krzysztof Kaczmarski wrote:
>
>> Hi All,
>>
>> If I use OCL in UML Actions models is there any way to refer to UML
>> Variable from OCL expressions?
>> I can see that VariableExp accepts only OCL Variable...
>> Somehow strange if we consider those standards to be integrated.
>>
>> Regards,
>> Krzysztof
>
Re: VariableExp and "UMLVariable" [message #37874 is a reply to message #37779] Mon, 24 September 2007 09:53 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Krzysztof,

You can raise your issues with the OCL committee at the OMG. Other than
that, it would take a radical departure from the specification (and the
current API) to accomplish this.

I suppose you might try unifying the two metaclasses by implementing your
own variant of the org.eclipse.ocl.uml plug-in (using the same technique as
made the CollectionType extend Classifier, for example), but that probably
would require a lot of effort and I'm not sure of the feasibility. I don't
yet understand how you propose to use OCL in UML actions or activities.
AFAICT, the language simply isn't set up to work with Actions, unless there
are extensions in the Executable UML or something that I don't know about;
I'm not an expert.

Cheers,

Christian


Krzysztof Kaczmarski wrote:

> Hi Christian,
>
> this is rather bad news for me.
> If we use our imagination... is there any obstacle to integrate UML
> variable with OCL variable in a single metaclass ?
>
> Cheers,
> Krzysztof
>
>
> Christian W. Damus wrote:
>> Hi, Krzysztof,
>>
>> Right, this is one of those cases where these two standards are not
>> integrated.
>>
>> I don't know of a way to access UML Variables; OCL only knows about
>> properties and operation parameters. The only part of OCL that addresses
>> behaviour models is the Transition guards in state machines, and
>> variables don't enter into it here.
>>
>> Cheers,
>>
>> Christian
>>
>> Krzysztof Kaczmarski wrote:
>>
>>> Hi All,
>>>
>>> If I use OCL in UML Actions models is there any way to refer to UML
>>> Variable from OCL expressions?
>>> I can see that VariableExp accepts only OCL Variable...
>>> Somehow strange if we consider those standards to be integrated.
>>>
>>> Regards,
>>> Krzysztof
>>
Previous Topic:[Announce] MDT OCL 1.2.0 I200709211125 is available
Next Topic:check an attribute
Goto Forum:
  


Current Time: Sun Jul 06 16:27:58 EDT 2025

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

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

Back to the top