Author Topic: Show multiplicity of components on diagram?  (Read 609 times)

bknoth2

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Show multiplicity of components on diagram?
« on: October 30, 2007, 03:56:23 pm »
Is there a simple way to show multiplicity of components on component diagrams? I'd like to make it clear when a component symbol represents multiple instances of the component.

Maybe I'm overlooking something, but I haven't found a way to do it.

Thanks,

Bruce

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Show multiplicity of components on diagram?
« Reply #1 on: October 30, 2007, 03:58:22 pm »
You could always use a note.
No, you can't have it!

bknoth2

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Show multiplicity of components on diagram?
« Reply #2 on: October 30, 2007, 07:35:39 pm »
I could, but that isn't a very pleasing solution, and I already have a reasonably complex diagram. With object-icons in EA, you can show the multiplicity and have it show up in the upper right corner of the icon. It would be nice to have something concise like that.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Show multiplicity of components on diagram?
« Reply #3 on: October 31, 2007, 03:39:34 am »
I agree Bruce,

Perhaps you could drop a text element onto the diagram. This has severe limitations - it is semantically weak as well as being a disaster if you make a major change to the layout - but for presentation purposes it would likely do the trick.

David
No, you can't have it!

Gary W.

  • EA User
  • **
  • Posts: 139
  • Karma: +0/-0
    • View Profile
Re: Show multiplicity of components on diagram?
« Reply #4 on: October 31, 2007, 12:09:24 pm »
Hi,

Martin Fowler has an example where a Device Node has an attribute named 'number deployed', and it's set to '3' (i.e. number deployed = 3).

It's in his UML Distilled (3rd ed.) book, in Chapter 8 (page 98 ).  I know it's a node, but you could do something similar for a component, and it would definitely show the mutiplicity.

HTH
gary
« Last Edit: October 31, 2007, 12:10:53 pm by gwong »

bknoth2

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Show multiplicity of components on diagram?
« Reply #5 on: October 31, 2007, 12:32:02 pm »
Thanks - I'll look into that.

- Bruce

thomaskilian

  • Guest
Re: Show multiplicity of components on diagram?
« Reply #6 on: November 02, 2007, 03:07:40 am »
AFAIK you can simply use the Multiplicity from the element properties. They appear in curly brackets.

bknoth2

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Show multiplicity of components on diagram?
« Reply #7 on: November 02, 2007, 07:19:54 am »
I've tried that but I don't see the value show up. Is there a place to turn on the visibility for the multiplicity?

Thanks,

Bruce

thomaskilian

  • Guest
Re: Show multiplicity of components on diagram?
« Reply #8 on: November 03, 2007, 03:10:20 am »
I see. Once it was missing for Node elements and after a bug fix it appeared. So I would send a bug report. Also report that the Runstate can be set, but does also not appear.