Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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 10:30 Go to previous messageGo to next message
Eclipse UserFriend
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: Tue, 28 October 2014 21:36] by Moderator

Re: Class diagram - intanceSpecification - Superclass [message #1695530 is a reply to message #1454562] Fri, 15 May 2015 14:36 Go to previous message
Eclipse UserFriend
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 14:37] by Moderator

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


Current Time: Wed Jul 23 15:30:26 EDT 2025

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

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

Back to the top