automatically show inherited associations

92 views
Skip to first unread message

Bleiker@localhost Robert Bleiker

unread,
Nov 23, 2012, 11:58:00 AM11/23/12
to sparx-enterprise-archite...@googlegroups.com
Situation: 3 classes, class A has an association to class B, subclass A1 has a generalization to class A. Now a class diagramm is created containing only B and A1.

Question: Is there a way to make EA automatically draw the inherited association between B and A1 (and also for compositions/aggregations)?

[original message]

S@localhost Robert S

unread,
Nov 25, 2012, 2:47:00 AM11/25/12
to sparx-enterprise-archite...@googlegroups.com
If you right click on an element on a diagram and select 'Add' one of the options is related element which will add all elements related to the selected element.  Additionally you can set the depth, type of element and type of connector.

Robert

[original message]

Bellekens@localhost Geert Bellekens

unread,
Nov 26, 2012, 3:40:00 AM11/26/12
to sparx-enterprise-archite...@googlegroups.com
No, EA will never show an association between A1 and B if that association doesn't exist.

So if you want to show that on your diagram you should put A on the diagram as well.

You could also create a "redefined" association, but that is not really the same. Redefinition is normally done only when something (like a constraint) is changed. (similar to overriding an operation)

Geert

[original message]

Bleiker@localhost Robert Bleiker

unread,
Nov 27, 2012, 9:41:00 AM11/27/12
to sparx-enterprise-archite...@googlegroups.com
Thanks for both answers. Add elements is also useful to me and now I can stop searching what EA doesn't have.
[original message]

g.makulik

unread,
Nov 27, 2012, 6:39:00 PM11/27/12
to sparx-enterprise-archite...@googlegroups.com

4858565F53515F483A0 wrote:
Thanks for both answers. Add elements is also useful to me and now I can stop searching what EA doesn't have.

UML doesn't provide such concept, it's not a thing EA just misses.

Best regards,
G�nther

[original message]
Reply all
Reply to author
Forward
0 new messages