Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: f on March 27, 2019, 07:01:31 pm

Title: Show inherited connectors between classes
Post by: f on March 27, 2019, 07:01:31 pm
One C++ class has a <<uses>> connector to another C++ class indirectly, because its base class has a base class pointer to an object of the other C++ class.

For simplicity, I want to show that usage connection in my diagram without showing the base classes.

How do I do that?
Title: Re: Show inherited connectors between classes
Post by: Geert Bellekens on March 27, 2019, 07:12:12 pm
You can't.
The only thing you can do is create a new relation. You can set it to be derived to indicate that it is not a "real" connector.
Setting a relation derived will add a "/" in front of it's name in the diagram.

Geert
Title: Re: Show inherited connectors between classes
Post by: steen.jensen on March 28, 2019, 09:10:19 am
Hmm, How do set a connection to be Derived??
Title: Re: Show inherited connectors between classes
Post by: Richard Freggi on March 28, 2019, 02:00:22 pm
Hmmmm Hmmm, what's a connector between classes?  If we are talking about an association - I am under the impression that the UML tool should not recreate the parent association for all its children - for example of the parent is removed from the diagram the association should disappear from the diagram too.
Title: Re: Show inherited connectors between classes
Post by: Geert Bellekens on March 28, 2019, 03:26:05 pm
Hmm, How do set a connection to be Derived??
Thats a good question. I don't see the option anymore in v14.1 ???

Geert
Title: Re: Show inherited connectors between classes
Post by: RoyC on March 28, 2019, 04:59:35 pm
In the Connector's Properties dialog, look in the Advanced tag for the isDerived property.  But more obviously in the Properties window for the connector there are Derived properties for the connector and for the source and target roles; expand the Advanced segment.
Title: Re: Show inherited connectors between classes
Post by: Paolo F Cantoni on March 28, 2019, 05:03:01 pm
In the Connector's Properties dialog, look in the Advanced tag for the isDerived property.  But more obviously in the Properties window for the connector, there are Derived properties for the connector and for the source and target roles; expand the Advanced segment.
Hi Roy,

This used to be true only for Associations.  Is that still the case or has it been more generalized?

Paolo
Title: Re: Show inherited connectors between classes
Post by: Geert Bellekens on March 28, 2019, 05:48:16 pm
I see it now in the popup dialog, but still not in the docked properties window.
There is no Advanced section there.

Yes, it seems to only be present for Associations.

Geert
Title: Re: Show inherited connectors between classes
Post by: Eve on March 29, 2019, 09:20:09 am
UML defines the property isDerived for Associations.

Although I don't object to misusing things to meet you needs, I should at least point that that the usage discussed in this thread is a misuse.