Book a Demo

Author Topic: automatically show inherited associations  (Read 4369 times)

Robert Bleiker

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
automatically show inherited associations
« on: November 24, 2012, 02:58:50 am »
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)?

Robert Sheridan

  • EA User
  • **
  • Posts: 105
  • Karma: +0/-0
    • View Profile
Re: automatically show inherited associations
« Reply #1 on: November 25, 2012, 05:47:38 pm »
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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: automatically show inherited associations
« Reply #2 on: November 26, 2012, 06:40:43 pm »
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

Robert Bleiker

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: automatically show inherited associations
« Reply #3 on: November 28, 2012, 12:41:04 am »
Thanks for both answers. Add elements is also useful to me and now I can stop searching what EA doesn't have.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: automatically show inherited associations
« Reply #4 on: November 28, 2012, 09:39:02 am »
Quote
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
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/