VariableExp and "UMLVariable" [message #36282] |
Thu, 30 August 2007 06:13  |
Eclipse User |
|
|
|
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 #37779 is a reply to message #36668] |
Mon, 24 September 2007 06:40   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04843 seconds