Book a Demo

Author Topic: Selection of inherited attributes  (Read 4069 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Selection of inherited attributes
« on: January 11, 2013, 08:08:02 am »
Is it possible to select which attributes are inherited?
eg in the image I do not wish to inherit the highlighted attributes.

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Selection of inherited attributes
« Reply #1 on: January 11, 2013, 09:04:07 am »
No, if you display inherited attributes in the current version you have to display all of them.

I'm not aware of any plans to change this.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Selection of inherited attributes
« Reply #2 on: January 11, 2013, 09:54:31 am »
thanks

not displaying attributes would be good,
but I was looking more for the functionality, namely to select which attributes are inherited,

see for an example of related functionality
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Selection of inherited attributes
« Reply #3 on: January 11, 2013, 11:09:06 am »
I'm not sure I understand what you mean.

If you create a generalization to a class then the attributes are inherited.

Of course if you don't want those attributes inherited then you would generalize directly from child event instead of child information event.

The other thing I notice is that you're obviously not producing a code model, but from what I see all of your attributes are private. Technically speaking that would mean that the child class doesn't have access to them and to a degree it would make sense not to display them or report on them in the inherited attributes section.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Selection of inherited attributes
« Reply #4 on: January 11, 2013, 02:00:07 pm »
Thanks again.

Correct I am not producing a code model, but thanks for your point about private.

That I want in fact to be able to do is select some (but not all) of the attributes to be inherited.

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: Selection of inherited attributes
« Reply #5 on: January 11, 2013, 06:43:03 pm »
Simon,

I don't think there's such a concept in OO. You either inherit everything or nothing.

What you could do is create a new entity that contains only the attributes you which to inherit, and create a generalization to this entity.

Geert