Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: Dieter Vekeman on February 05, 2011, 06:29:28 am

Title: Class Diagram: Show inherited operations
Post by: Dieter Vekeman on February 05, 2011, 06:29:28 am
In the UML Class Diagram
how can I show the inherited operations on a class (realize relationship) from the interface so that they are automatically updated if the interface is updated?

A diagram has an interface and an implementing class (realize).
Hence my question(s):

I'm using version EA 8.8.858



Update the only workaround I found was to
It looks the same on the diagram however there are some disadvantages such as
Title: Re: Class Diagram: Show inherited operations
Post by: Paolo F Cantoni on February 06, 2011, 08:00:08 pm
Hi Deiter,

You've raised the perennial question...

One problem is that the usual argument for NOT allowing Realization to behave similarly to Generalization is that the two are definitely not the same.  Generalization is about providing access to previously defined features and Realization is about creating a client instance of a supplier specification.

What is MISSED in this argument is that like "version control", you need to separate the generated code and the effect within the modelling paradigm.  That is, version control for code and version control for models is NOT the same (similar, but definitely NOT the same).

So it is with Generalization vs Realization, when the code executes, the two are NOT the same; but in the modelling sense they are FAR MORE alike than different.

I see allowing Generalization to automatically update the "effective" view in the client and NOT allowing Realization to do the same as (to me) inconsistent.

If you agree, then the easy way out is to take a Generalization link, stereotype it Realization and use a shape script to render the Generalization as a Realization.   I've often done that with no (or few) "ill effects" - certainly less than those brought about by forgetting to manually regenerate the Realization.

HTH,
Paolo
Title: Re: Class Diagram: Show inherited operations
Post by: Geert Bellekens on February 07, 2011, 06:51:00 pm
Oh no, that discussion again :(
Must be at least the 5th time this has been discussed here.

Geert
Title: Re: Class Diagram: Show inherited operations
Post by: sargasso on February 13, 2011, 09:19:36 pm
I never said a word!  ;)
b

Just passing through Adelaide again, back to the outback again later this week.  FWIW I got my black cert back in Nov. so I can now blow things up too!  (Well OK, blow holes up too).  56 years young and never had so much fun. Paolo, I "nearly" made it to Perth last month, 1600km NE. 'Twas quite warmish!
b