Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Class diagram - intanceSpecification - Superclass(How to specify instance with superclass that has composite association)
Class diagram - intanceSpecification - Superclass [message #886811] Fri, 15 June 2012 13:09 Go to next message
Daniel Kaminski de Souza is currently offline Daniel Kaminski de Souza
Messages: 2
Registered: June 2012
Location: Curitiba PR Brazil
Junior Member
I'm using papyrus 0.9.0.v201206061005 inside eclipse juno 4.2.0 I20120531-1500
I created the following Class Diagram:

index.php/fa/10311/0/


It has on the left chain, A superclass named Telephone with composite Keyboard.
And mobile class with composite class Battery.
The mobile class is a Telephone, that's why the blue generalization is drawn.

The right side I left for the definition of the instances.
I want now to define one instance of the class Mobile.
To do so, I have also to define its composite instances.

Specifying the Battery composite instance was straight forward, connected by an instance specification link to its parent instance aMobileTelephone.

For the Keyboard instance, I wasn't able to connect it using an instance specification link to its parent instance aMobileTelephone.

Instead, just to represent my intention, I've drawn a dependency link in red.

[Updated on: Wed, 01 August 2012 08:10]

Report message to a moderator

Re: Class diagram - intanceSpecification - Superclass [message #889620 is a reply to message #886811] Tue, 19 June 2012 08:16 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 399
Registered: February 2011
Senior Member
Hello Daniel,

This sounds like a bug in the Class Diagram. The workaround is to add all inherited Classifiers to your Instance specification (i.e. add Classifier "Telephone" to the list of classifiers of aMobileTelephone).

I filled Bug 382954 for this issue.


Regards,
Camille
Re: Class diagram - intanceSpecification - Superclass [message #899550 is a reply to message #889620] Wed, 01 August 2012 07:57 Go to previous message
Daniel Kaminski de Souza is currently offline Daniel Kaminski de Souza
Messages: 2
Registered: June 2012
Location: Curitiba PR Brazil
Junior Member
I agree with you, many thanks for your help.
For ease of understanding I'll link the reported bug to this topic.
Previous Topic:How to apply my customized uiCustom file to Model Explorer
Next Topic:How to improve performance of Eclipse 4.2 / Papyrus?
Goto Forum:
  


Current Time: Mon Apr 21 08:52:10 EDT 2014

Powered by FUDForum. Page generated in 0.03659 seconds