Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: anand.tripathi on July 24, 2013, 10:49:20 pm

Title: Implement a single interface with all the classes
Post by: anand.tripathi on July 24, 2013, 10:49:20 pm
Hi All,

I need to implement a single interface with all the classes of my package, is there a simple way to do it?

It looks clumsy when all the classes realize a single interface with multiple lines crossing each other on the diagram.

-Anand
Title: Re: Implement a single interface with all the clas
Post by: Helmut Ortmann on July 24, 2013, 10:58:18 pm
Hello,

if you don't want crossing lines just hide them. Delete and choose hide.

With Ctrl+I you can visualize the implmented interfaces of a class.

Anothe good way is to use a Relationship Matrix. Here you can easily see and change the realisation dependency in a matrix.

Helmut
Title: Re: Implement a single interface with all the clas
Post by: qwerty on July 24, 2013, 10:58:27 pm
Can you provide a sketch of what you're trying to achieve? I can't imagine.

q.
Title: Re: Implement a single interface with all the clas
Post by: anand.tripathi on July 24, 2013, 11:44:25 pm
Sorry, but I don't see any option to attach a file in the screen here.How to attach a picture into my post?
Title: Re: Implement a single interface with all the clas
Post by: qwerty on July 24, 2013, 11:48:06 pm
It's not straight, unfortunately. You need to upload the picture to some host (your own server or something like imageshack.us). Then you can use the picture link icon (3rd above in the edit toolbar).

q.
Title: Re: Implement a single interface with all the clas
Post by: anand.tripathi on July 24, 2013, 11:55:15 pm
Thanks,

I uploaded in "imageshack.us", here it is-

(http://imageshack.us/photo/my-images/43/xru6.png/)

http://imageshack.us/photo/my-images/43/xru6.png/

-Anand
Title: Re: Implement a single interface with all the clas
Post by: qwerty on July 25, 2013, 01:18:51 am
I see. Simply remove the interface from the diagram. Then activate Features/Show Realizes from the class context.

q.
Title: Re: Implement a single interface with all the clas
Post by: anand.tripathi on July 25, 2013, 06:42:10 pm
Thanks Qwerty, this helped.
-Anand
Title: Re: Implement a single interface with all the clas
Post by: anand.tripathi on July 25, 2013, 06:44:29 pm
Quote
Hello,

if you don't want crossing lines just hide them. Delete and choose hide.

With Ctrl+I you can visualize the implmented interfaces of a class.

Anothe good way is to use a Relationship Matrix. Here you can easily see and change the realisation dependency in a matrix.

Helmut

Thanks Helmut,

It helped, also Ctrl+I is useful.

But I am wondering, what is a relationship matrix?
-Anand
Title: Re: Implement a single interface with all the clas
Post by: qwerty on July 25, 2013, 07:00:59 pm
Choose View/Relationship Matrix. This opens a matrix where you can manage relations between elements in two different packages. It won't help with diagramming, though.

q.