Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » InstanceSpecification drawing help
InstanceSpecification drawing help [message #1764781] Fri, 02 June 2017 09:08 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6043
Registered: July 2009
Senior Member
Hi

I'm trying to clear OCL Bug 517145 by providing some tutorial information in the Oxygen OCL documentation on use of OCL constraints on class/profile/instance diagrams in Papyrus, but I'm stuck when it comes to drawing explanatory diagrams. Papyrus support for InstanceValues seems pretty ropey. See Bug 517689.

If any Papyrus experts out there can draw UML 2.5 Fig 9.30, 9.31 and 9.32, please attach the models to https://bugs.eclipse.org/bugs/show_bug.cgi?id=517145.

Regards

Ed Willink
Re: InstanceSpecification drawing help [message #1764840 is a reply to message #1764781] Fri, 02 June 2017 14:40 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 118
Registered: March 2014
Senior Member
index.php/fa/29541/0/
I would not call myself an expert but here is my attempt at drawing what you wanted.
I had a couple of problems.

First it appears that there is no way to change the name of the roles of the InstanceSpecificationLink. They are stuck at Don and Josh.
Second, there does not seem to be a way to draw desired king of link between the ":Window" and the "medium : Area" InstanceSpecifications. The attached screenshot shows the available options.

Ed, let me know if this is sufficient for you and I will attach the model to the bug.

Steve
  • Attachment: Example.PNG
    (Size: 108.67KB, Downloaded 232 times)
Re: InstanceSpecification drawing help [message #1764851 is a reply to message #1764840] Fri, 02 June 2017 15:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6043
Registered: July 2009
Senior Member
Hi

Thanks for trying. Your "size : Area = medium" I failed at, my RHS was blank.

Your and my failure to correctly label Don and Josh ends is a killer. How can I possibly have such a howler in a tutorial?

Have you tried 'saving' and reloading? I found that the Instance Specification Link was not persisted, so I do not know how it should be modeled it in UML.

I have resorted to Open Office for my Object Diagrams; I can draw what I want, especially UML-like rather than pedantically Papyrus-subset UML, and I don't have such a painful UI speed.

Regards

Ed Willink
Re: InstanceSpecification drawing help [message #1764859 is a reply to message #1764851] Fri, 02 June 2017 15:44 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 118
Registered: March 2014
Senior Member
The second issue is already has a bug here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439222.
There is a link to it from a bug you wrote in 2015. https://bugs.eclipse.org/bugs/show_bug.cgi?id=458395.

I don't see any bugs reports about not being able to rename InstanceSpecificationLink roles. Do you want to write it?

I was able to save and reload without any problems.

I agree that the development pace of Papyrus is painfully slow but at least there is some progress.

Steve
Re: InstanceSpecification drawing help [message #1764861 is a reply to message #1764859] Fri, 02 June 2017 16:01 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6043
Registered: July 2009
Senior Member
Hi

(Please refrain from adding a trailing dot to links.)

I am afraid that I raise so many bugs that I cannot remember them all.

The ends of an InstanceSpecifcation link should be hardwired, but to the Property names not the Instance names. The fifth observation in https://bugs.eclipse.org/bugs/show_bug.cgi?id=517689 should cover the bad naming.

The sixth observation might be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=517734

Regards

Ed Willink

Previous Topic:C++ codegen for classes derived from external class
Next Topic:Papyrus Designer for C++: how to use builtin parameterized types?
Goto Forum:
  


Current Time: Tue Sep 25 03:22:01 GMT 2018

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

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

Back to the top