Book a Demo

Author Topic: association class and generalization bug  (Read 6748 times)

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
association class and generalization bug
« on: December 14, 2005, 03:50:46 am »

in EA 6.780 you can't make association class to be a descendant of the another class ;-)
registertm everything to SparX

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: association class and generalization bug
« Reply #1 on: December 14, 2005, 01:34:14 pm »
Quote
in EA 6.780 you can't make association class to be a descendant of the another class ;-)

...only of another association class :-/  I'll try to get that fixed for 781. Until then, Tools | Options | Diagram | Strict UML Syntax.

Neil  
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: association class and generalization bug
« Reply #2 on: December 14, 2005, 03:22:06 pm »
Quote
...only of another association class :-/  I'll try to get that fixed for 781. Until then, Tools | Options | Diagram | Strict UML Syntax.

Neil  
Neil,
While you're at it, can you also add the ability to generalize Associations?

As per my treatise on AssociationClasses, if you can Generalize an AssociationClass, you have to be able to Generalize an Association (and by implication Generalize and AssociationClass to an Association).

BTW:  Unchecking Strict UML syntax still won't all it.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: association class and generalization bug
« Reply #3 on: December 15, 2005, 12:49:35 am »
Quote
Until then, Tools | Options | Diagram | Strict UML Syntax.


Neil, strict UML syntax on allows the same name classes in the same package - this shouldn't be I guess.

Paolo, I saw somewhere generalizable association diagrams, but could you provide good example on this? Right now can't think any case, when this would be needed
« Last Edit: December 15, 2005, 12:50:06 am by SF_lt »
registertm everything to SparX

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: association class and generalization bug
« Reply #4 on: December 18, 2005, 04:20:16 pm »
Quote

Neil, strict UML syntax on allows the same name classes in the same package - this shouldn't be I guess.


UML states that elements must be distinguishable by name and type within the same namespace. Somebody (I think it was Bruce aka Sargasso) recently suggested that if two elements aren't distinguishable then it just means they are the same element. I'm happy to go along with that.

Neil
« Last Edit: December 18, 2005, 04:20:53 pm by KP »
The Sparx Team
[email protected]

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: association class and generalization bug
« Reply #5 on: January 02, 2006, 04:50:38 pm »
 ;) You betcha it was me.  And I still stand by it.  It's one of the more gotcha features of UML.  An element of type X with the name Namespace.Name is the same thing as a completely different X called Namespace.Name that appears in the same model.

The problem is that EA doesn't recognise it as such.

IMO, either OMG has to define more exsplicitly (???) rules for mulitple representation in a model,  (or at least explain why they use it in their metamodels but don't define it), or EA should pre-empt them and give us a sane and recognizable way to represent the same thing multiple times in a model.

Let me go further out on a limb - according to the "Old Bore's Almanac" (me) - .NET 2 "partial classes" are going to become a major EA problem in 2006.   Try rev-engineering some and see what I mean - multiple classes that are all the same thing!

I, for one, would like to see this issue as the one big thing fixed this year .


bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Hans

  • EA User
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: association class and generalization bug
« Reply #6 on: January 08, 2006, 05:08:54 am »
Bruce,

if only you could convince MS to have aspx-code part of a WebForm (Page) class as is the case for Windows.Forms and persuade them to take a leave from partial classes, *that* would be the major step!

Regards
Hans