Book a Demo

Author Topic: Bug? Visibility of inherited features  (Read 4118 times)

angel-o-sphere

  • EA User
  • **
  • Posts: 112
  • Karma: +0/-0
    • View Profile
Bug? Visibility of inherited features
« on: August 23, 2006, 01:20:42 pm »
You can set the visibility of inherited features for classes.

That works fine if a class has a generalization relation to an other class, but it does not work if you have a realization realtion to an interface.

Angelo

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Bug? Visibility of inherited features
« Reply #1 on: August 23, 2006, 03:09:28 pm »
Interesting observation. I suggest you post this in Suggestions and Requests, and see if it gets any traction.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Bug? Visibility of inherited features
« Reply #2 on: August 23, 2006, 03:16:25 pm »
This is because an interface and realization doesn't actually mean that the methods are there, just that they need to be.

angel-o-sphere

  • EA User
  • **
  • Posts: 112
  • Karma: +0/-0
    • View Profile
Re: Bug? Visibility of inherited features
« Reply #3 on: August 24, 2006, 04:59:55 am »
Well,

your answer makes sense from a programming language compiler stand point. But not really for a modelling tool.
IMHO the two situations should be treated similar. Or another option: "show operations to be implemented" with the desired behavior would be fine.

A related problem: when I modell a realization EA askes for methods to introduce in the implementation. So far so good. But when I edit a method in the interface, e.g. add a parameter or change the name, or return type, the class implementing it is not updated.

Imho in such a case the classes operations and the interfaces operations should have a direct life link to each other.

Regards,

Angelo

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Bug? Visibility of inherited features
« Reply #4 on: August 24, 2006, 05:52:03 am »
Quote
But when I edit a method in the interface, e.g. add a parameter or change the name, or return type, the class implementing it is not updated.


AAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGGHHHHHHH!!!!!!!!!

Get me some prozac somebody quickly.






Sorry angelo - please search the forum for info on this topic.  IMO never never never, over my dead body etc etc


bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

thomaskilian

  • Guest
Re: Bug? Visibility of inherited features
« Reply #5 on: August 24, 2006, 12:18:15 pm »
"Interface Contract" would be a good start for your search

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Bug? Visibility of inherited features
« Reply #6 on: August 24, 2006, 03:58:29 pm »
As I remember, it was Paolo thread - interface change should updated in all realized classifiers
registertm everything to SparX

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.