Author Topic: Stereotype Display  (Read 3489 times)

jcbutler

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • Any fool can write a rule...
    • View Profile
Stereotype Display
« on: June 05, 2006, 12:33:56 pm »
I'm trying to display an instance of an interface using the circle notation but can't figure out how to do that.  Anybody got any good ideas?

- jb

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Stereotype Display
« Reply #1 on: June 05, 2006, 02:34:33 pm »
JB,

Right-click on the interface rectangle. From the context menu choose Advanced Settings / Use Circle Notation. That should do it.

Note that recent builds (I don't think this happened back in the EA 4.x days, and have not checked since) this process can be a bit strange if you go back to rectangle notation. The context menu will still say Use Circle Notation when you try to go back. It will change back to a rectangle, but the rectangle will be sized the same as the circle. Strange...

HTH, David
No, you can't have it!

jcbutler

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • Any fool can write a rule...
    • View Profile
Re: Stereotype Display
« Reply #2 on: June 05, 2006, 08:06:10 pm »
I tried that.  It works when the element is a class.  But when you put an instance of that class on a diagram you don't get the "use circle notation" as an option for the instance.   Any other ideas?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Stereotype Display
« Reply #3 on: June 06, 2006, 03:15:38 am »
Interesting.

However, what are you trying to do here? If your objective is simply to state that some (other) class implements the interface you have another option.

You can drop the actual interface (versus an instance) onto the diagram. Then draw a <<realize>> relation to the interface. This is how you get the generators to work.

I'll try to remember how to create the "ball and socket" joint in EA - its been a while since I needed to worry about this - although I think that will apply more when you get to components.

David
No, you can't have it!

jcbutler

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • Any fool can write a rule...
    • View Profile
Re: Stereotype Display
« Reply #4 on: June 06, 2006, 04:27:22 am »
I was looking to use an interface to represent an abstract service and wanted to put a number of them on a diagram to illustrate a service layer without having to actually make different interface types.  What I will likely do is create a <<service>> stereotype for both a class and an object with a circle for the stereotype icon.  Then I can show it as a circle for both the class and the object.

- jb

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Stereotype Display
« Reply #5 on: June 06, 2006, 05:30:15 am »
Sounds like a plausible approach. This might help.

You can define a class and an interface, and use the <<realize>> relationship to show implementation. Note that this could be someplace where you are only talking about structure, rather than relationships between classes, etc.

On a different diagram (or the same one if you really want), drop the class (or an intance, I believe). You should see only the rectangle for the class.

Right-click the class, and from the context menu choose Add Embedded / Show Realized Interfaces. You should now the the 'ball' of the "ball and socket" notation for each interface. You can use Add Embedded / Show Dependent Interfaces to show the "sockets."

EDIT: Try creating a component diagram (for example) and doing something similar. You may be able to model your <<service>> this way.

HTH, David
« Last Edit: June 06, 2006, 05:31:16 am by Midnight »
No, you can't have it!

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Stereotype Display
« Reply #6 on: June 07, 2006, 02:40:54 pm »
Quote
....context menu will still say Use Circle Notation when you try to go back. It will change back to a rectangle, but the rectangle will be sized the same as the circle. Strange...


registertm
registertm everything to SparX