Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Self generalization
Self generalization [message #1739716] Thu, 04 August 2016 08:54 Go to next message
Fay Florian is currently offline Fay FlorianFriend
Messages: 1
Registered: August 2016
Junior Member
Hi together,

is it possible to display a self generalization in Papyrus UML?

I wasn't able to do this.

Thanks for your answers.
Re: Self generalization [message #1739922 is a reply to message #1739716] Fri, 05 August 2016 17:12 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 495
Registered: May 2015
Location: Germany
Senior Member
Hi,

well, the UML 2.5 specification -- as I interpret it -- allows self generalization. Neither the Generalization it itself nor the generalzation DirectedRelationship and the generalzation of the DirectedRelationship the Relationship own a rule imposing restrictions on it.

But, what is self generalization good for?
Or the other way round: What is the use case?

/Carsten
Re: Self generalization [message #1741995 is a reply to message #1739922] Fri, 05 August 2016 19:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7676
Registered: July 2009
Senior Member
Hi

UML may not explicitly prohibit self-generalization, but the class name
will be ambiguous and certainly any attributes will be.

Regards

Ed Willink


On 05/08/2016 18:12, Carsten Pitz wrote:
> Hi,
>
> well, the UML 2.5 specification -- as I interpret it -- allows self
> generalization. Neither the Generalization it itself nor the
> generalzation DirectedRelationship and the generalzation of the
> DirectedRelationship the Relationship own a rule imposing restrictions
> on it.
>
> But, what is self generalization good for?
> Or the other way round: What is the use case?
>
> /Carsten


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Re: Self generalization [message #1742879 is a reply to message #1739922] Thu, 08 September 2016 12:09 Go to previous messageGo to next message
Perdita Stevens is currently offline Perdita StevensFriend
Messages: 18
Registered: September 2016
Junior Member
UML2.5 does still prohibit self-generalization. The constraint is under Classifier, section 9.9.4.8, on p176 of the PDF.

no_cycles_in_generalization
Generalization hierarchies must be directed and acyclical. A Classifier can not be both a transitively general
and transitively specific Classifier of the same Classifier.
inv: not allParents()->includes(self)

Phew Smile
Re: Self generalization [message #1743081 is a reply to message #1742879] Sun, 11 September 2016 17:06 Go to previous message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 495
Registered: May 2015
Location: Germany
Senior Member
Ups, I missed this constraint.

Many thanks,
Carsten
Previous Topic:use Papyrus plug-in in RCP Application
Next Topic:Marte profile( Papyrus problem)
Goto Forum:
  


Current Time: Thu Oct 10 01:39:12 GMT 2024

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

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

Back to the top