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 17:09 Go to next message
Daniel Kaminski de Souza is currently offline Daniel Kaminski de SouzaFriend
Messages: 3
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 12:10]

Report message to a moderator

Re: Class diagram - intanceSpecification - Superclass [message #889620 is a reply to message #886811] Tue, 19 June 2012 12:16 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 638
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


Camille Letavernier
Papyrus developer
Re: Class diagram - intanceSpecification - Superclass [message #899550 is a reply to message #889620] Wed, 01 August 2012 11:57 Go to previous messageGo to next message
Daniel Kaminski de Souza is currently offline Daniel Kaminski de SouzaFriend
Messages: 3
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.
Re: Class diagram - intanceSpecification - Superclass [message #1454562 is a reply to message #899550] Tue, 28 October 2014 14:30 Go to previous messageGo to next message
Ibrahim ERTURK is currently offline Ibrahim ERTURKFriend
Messages: 4
Registered: October 2014
Junior Member
I'm new to Eclipse Modelling Tools and Papyrus UML. I've created a Class Diagram in Eclipse Papyrus UML (version 0.10.2.v201402281227) with Kepler as follow.

https://www.eclipse.org/forums/index.php/fa/19680/0/

then a InstanceSpecification as follow

https://www.eclipse.org/forums/index.php/fa/19682/0/

Is it an expected behaviour for my case.

Regards,
Ibrahim

[Updated on: Wed, 29 October 2014 01:36]

Report message to a moderator

Re: Class diagram - intanceSpecification - Superclass [message #1695530 is a reply to message #1454562] Fri, 15 May 2015 18:36 Go to previous message
Daniel Kaminski de Souza is currently offline Daniel Kaminski de SouzaFriend
Messages: 3
Registered: June 2012
Location: Curitiba PR Brazil
Junior Member
As the Bug 382954 was solved and the contribution was merged to the Eclipse Luna, I'm proud to say I've tested it and it's now working the way it should be! Thank you all for the hard work and collaboration. Cheers, Daniel!

[Updated on: Fri, 15 May 2015 18:37]

Report message to a moderator

Previous Topic:IsInstance function failed
Next Topic:Tuple type in Papyrus for ocl expression.
Goto Forum:
  


Current Time: Tue May 26 00:11:24 GMT 2015

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

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