Book a Demo

Author Topic: Show stereotypes of interfaces  (Read 7695 times)

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Show stereotypes of interfaces
« on: November 22, 2006, 12:46:26 am »
I am new to EA and I just get started. I hope that this is an easy question to answer:
Within a component diagram I need to explcitly show the interfaces which the components expose. I also want to show the stereotypes of the interfaces in the diagram. How do I make the stereotypes visible? They only appear in the Project Browser, but not in the diagram. I figured out for all other elements (components, associations, etc.) how to show stereotypes but did not succeed for interfaces.
Any suggestions?  Thanks!

thomaskilian

  • Guest
Re: Show stereotypes of interfaces
« Reply #1 on: November 22, 2006, 09:37:10 am »
Have you checked the first 3 diagram properties? If they are set, please tell us which elements you use and what you expect.

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show stereotypes of interfaces
« Reply #2 on: January 10, 2007, 01:02:51 am »
Hi,
I set the following component diagram options:
Use Stereotype Icons: off
Show Element Stereotypes: On
Show Feature Stereotypes: On

In the Project Browser I see the name of the interface in the format <<stereotype>> Interface.
I would like to see the same in the diagram. Is this possible?

thomaskilian

  • Guest
Re: Show stereotypes of interfaces
« Reply #3 on: January 10, 2007, 11:13:14 am »
As I told the first three should be on. If you tell EA to not use stereotypes it will do as requested.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Show stereotypes of interfaces
« Reply #4 on: January 10, 2007, 01:23:36 pm »
I think you'll also need to 'Use rectangle notation' (you'll find that in the context menu for the interface when on a diagram) for the interface.

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show stereotypes of interfaces
« Reply #5 on: January 11, 2007, 02:00:44 am »
Hi, selecting the first option (Use Stereotype Icons) does not help. After all, I don't want a specific stereotype icon. I like the ball/socket notation.
All I want is to show a lollipop and next to it
"<<socket>> IP_Socket"
instead of simply
"IP_Socket".
The project browser shows the interface this way.

Thanks

thomaskilian

  • Guest
Re: Show stereotypes of interfaces
« Reply #6 on: January 11, 2007, 08:29:54 am »
Hmm. I guess this is double action: showing the icon and the <<stereotype>>. I haven't seen that notation. Only either/or. The project browser doesn't need to comply to any UML diagram conventions.

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show stereotypes of interfaces
« Reply #7 on: January 11, 2007, 08:48:16 am »
Maybe I am not thinking UML enough. How would one differentiate different types of interfaces: function call, socket, shared memory or whatever? I have a legacy diagram that I want to transform to UML. This diagram works with different colors. I definitely want to capture all the information that's in there.

thomaskilian

  • Guest
Re: Show stereotypes of interfaces
« Reply #8 on: January 11, 2007, 10:57:45 pm »
You can use colors in EA diagrams as well.

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show stereotypes of interfaces
« Reply #9 on: January 15, 2007, 04:35:13 am »
OK, but then again we have some kind of custom notation. Isn't this what UML is intended to overcome?
Apparently, we have the case of multiple stereotypes here. When the ball-and-socket notation is used then this replaces one stereotype: <<interface>>. Is it assumed that there can only be the <<interface>> stereotype and hence it does not make sense to show both lollipop and stereotype?

thomaskilian

  • Guest
Re: Show stereotypes of interfaces
« Reply #10 on: January 15, 2007, 08:24:51 am »
Actually I don't know why EA puts in a stereotype <<interface>> as its already a metaclass of type interface. If you use the circle notation an choose a meaningfull stereotype (like e.g. <<test>>) then you'll see the stereotype on the diagram.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Show stereotypes of interfaces
« Reply #11 on: January 15, 2007, 01:05:11 pm »
The stereotype <<interface>> is actually a keyword as all interfaces drawn in rectangle notation should show it to distinguish the element from a class.  It doesn't need to be shown with the interface in circle notation.

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show stereotypes of interfaces
« Reply #12 on: January 16, 2007, 12:56:52 am »
That is understood. I have a component called IP_Stack. It exposes a socket interface. Hence, I would like to show a lollipop with <<socket>> stereotype. That's all.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Show stereotypes of interfaces
« Reply #13 on: January 16, 2007, 01:31:07 am »

Is this, what you want?

(Just presentation work-around: write the stereotype in the name field.)
« Last Edit: January 16, 2007, 01:34:05 am by Bary »
Jan 'Bary' Glas

gweih

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show stereotypes of interfaces
« Reply #14 on: January 16, 2007, 01:34:01 am »
This is exactly what I need. I guess this workaround is what I have to go for.
Thanks a lot!