Book a Demo

Author Topic: Implement a single interface with all the classes  (Read 4928 times)

anand.tripathi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Implement a single interface with all the classes
« 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
« Last Edit: July 24, 2013, 10:49:41 pm by anand.tripathi »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Implement a single interface with all the clas
« Reply #1 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
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Implement a single interface with all the clas
« Reply #2 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.

anand.tripathi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Implement a single interface with all the clas
« Reply #3 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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Implement a single interface with all the clas
« Reply #4 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.

anand.tripathi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Implement a single interface with all the clas
« Reply #5 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/

-Anand
« Last Edit: July 24, 2013, 11:56:31 pm by anand.tripathi »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Implement a single interface with all the clas
« Reply #6 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.

anand.tripathi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Implement a single interface with all the clas
« Reply #7 on: July 25, 2013, 06:42:10 pm »
Thanks Qwerty, this helped.
-Anand

anand.tripathi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Implement a single interface with all the clas
« Reply #8 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Implement a single interface with all the clas
« Reply #9 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.