Book a Demo

Author Topic: Inherit interface attributes  (Read 4531 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Inherit interface attributes
« on: March 07, 2013, 02:56:40 pm »


In a Domain Entity diagram is it possible to see Attributes on the Class directly, and not have to navigate the classes inheritances they implement.
 
In the above example of this  would be seeing on the Student class, the properties defined in IHasNSN, so that IHasNSN can be removed from the diagram.

Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Inherit interface attributes
« Reply #1 on: March 07, 2013, 06:39:29 pm »
It seems that the "Show inherited Features" only works for Generalization and not Realization.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Inherit interface attributes
« Reply #2 on: March 08, 2013, 09:14:21 am »
Which would make sense. A realization is not inheritance.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Inherit interface attributes
« Reply #3 on: March 08, 2013, 11:04:01 am »
Indeed, and making this connector a generalisation is not UML compliant.

None the less a feature such as this would improve the ability to model interfaces without having to duplicate information.

Thoughts anyone?
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Inherit interface attributes
« Reply #4 on: March 08, 2013, 12:26:22 pm »
Why an interface? How about an abstract class?

The only thing you'd lose would be the interfaces on the left of the child class.