Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Tuple type in Papyrus for ocl expression.(Can not find a Tuple type in Paryrus)
Tuple type in Papyrus for ocl expression. [message #1695489] Fri, 15 May 2015 09:10 Go to next message
Pieter Martin is currently offline Pieter MartinFriend
Messages: 37
Registered: July 2013
Member
Hi,

I am trying to model a derived property or query operation which need to return a Tuple.

However I can not find any Tuple type in the type dialog.

Do I need to apply a profile to the model or how can do one specify that the result of an operation or the type of a derived property is a Tuple

Thanks
Pieter

Re: Tuple type in Papyrus for ocl expression. [message #1695491 is a reply to message #1695489] Fri, 15 May 2015 09:37 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The UML type system has limitations. OCL provides an extended and mostly
compatible system.

In principle, if you want to use the richer OCL type system, you just
use it. However today there is no UML model of the OCL type system that
you can exploit. This will hopefully be remedied in OCL 2.5.

Eclipse OCL provides a prototype of OCL 2.5 and so you can find a
normalized pivot representation of the OCL standard library (containing
OclTuple) at /org.eclipse.ocl.pivot/model-gen/OCL-2.5.oclas. The Ecore
representation at /org.eclipse.ocl.pivot/model-gen/oclstdlib.ecore is
already used for extended OCL type representation in Ecore models. You
could try an Ecore2UML conversion to create an oclstdlib.uml.

Experiment with the OCLinEcore editor to see what a Tuple-returning
function/property should look like, and use Ecore2UML to see what the
equivalent UML could be. Since this has never been tried, I anticipate a
Bugzilla or two.

Regards

Ed Willink



On 15/05/2015 10:10, Pieter Martin wrote:
> Hi,
>
> I am trying to model a derived property or query operation which need
> to return a Tuple.
>
> However I can not find any Tuple type in the type dialog.
>
> Do I need to apply a profile to the model or how can do one specify
> that the result of an operation or the type of a derived property is a
> Tuple
>
> Thanks
> Pieter
>
Re: Tuple type in Papyrus for ocl expression. [message #1695494 is a reply to message #1695491] Fri, 15 May 2015 09:55 Go to previous messageGo to next message
Pieter Martin is currently offline Pieter MartinFriend
Messages: 37
Registered: July 2013
Member
Thanks
Pieter
Re: Tuple type in Papyrus for ocl expression. [message #1695544 is a reply to message #1695491] Sat, 16 May 2015 06:46 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

On 15/05/2015 10:37, Ed Willink wrote:
> The Ecore representation at
> /org.eclipse.ocl.pivot/model-gen/oclstdlib.ecore is already used for
> extended OCL type representation in Ecore models. You could try an
> Ecore2UML conversion to create an oclstdlib.uml.
>
> I anticipate a Bugzilla or two.
Or more. I've just fallen over some limitations in oclstdlib.ecore.

Regards

Ed Willink
Previous Topic:Class diagram - intanceSpecification - Superclass
Next Topic:can not import an existing project into papyrus
Goto Forum:
  


Current Time: Thu Mar 28 08:59:49 GMT 2024

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

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

Back to the top