Book a Demo

Author Topic: Association Class and Composite Diagram  (Read 5314 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Association Class and Composite Diagram
« on: May 31, 2012, 05:57:01 pm »
Hi!


I've noticed some weird behavior concerning association classes: it seems a class can be either an association class, or be a composite element with its own diagram.

First I create an association class between two other classes.

If I then make the class composite, it is no longer displayed as an association class in the hover tooltip or properties dialog. It retains the reference to the association connector.

If I remove the class from the diagram, then right-click the connector, the "Find Association Class" and "Show Association Class" options are still available.
But if I pick "Show Association Class", EA removes the link between the class and the connector.

If I then place the class in the diagram again an right-click it, I can select Advanced - Association Class and pick the association.
This makes the class non-composite. Its contained diagram is still there.

I've noticed that the NType column in the t_object table switches between 17 for an association class and 8 for a composite one.


Does anyone know of a reason why association classes should not be allowed to be composite?
Or is this simply a bug?

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Association Class and Composite Diagram
« Reply #1 on: June 05, 2012, 10:19:47 am »
Hi Uffe,

There are a number of EAUI issues with AssociationClasses.

Report the bug...

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

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Association Class and Composite Diagram
« Reply #2 on: June 05, 2012, 03:27:39 pm »
Hi,

Yes, thanks. I've reported it and had it confirmed as a will-be-fixed. Issue 12062975.

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.