Author Topic: Multiplicity  (Read 7612 times)

thomaskilian

  • Guest
Multiplicity
« on: April 25, 2005, 07:59:08 am »
I remeber this has been asked by Bruce before but can't find the thread. In the Advanced Properties there is a field Multiplicity. I would like to make use of that in a deployment diagram in order to show how many nodes in the system are used for each. But I can't find a way of displaying this mulitplicity in the diagram.

Any help?

michael_rainwater

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Multiplicity
« Reply #1 on: April 25, 2005, 04:34:08 pm »
OK, maybe I don't understand the question.

But I thought multiplicity was an attribute of a relationship.  It shows how many of something exists in each side of the relationship (1 to many).

It displays on the relationship line near the element it is related to.

Are you asking something different?

I'm not sure what Advanced Properties you are looking at.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Multiplicity
« Reply #2 on: April 25, 2005, 06:41:04 pm »
Oh Thomas,

Not another example of a non-orthogonal UI?  ;D

You're absolutely right of course!

And while we're at it, how do I tell the advanced properties Thomas is describing from the advanced properties directly available on the context menu - since you end up in two different places... :( ::)

Paolo

« Last Edit: April 25, 2005, 06:41:47 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Multiplicity
« Reply #3 on: April 26, 2005, 12:44:36 am »
Quote
Are you asking something different?

Yes, Michael. If you open the Properties window (Alt+1) you will find  a section Advanced and thereunder a Multiplicity. This belongs somehow to the element itself and I think it could be usefull in deployment diagrams in order to show how many workstations, pcs etc. are used for a particular node. The RTF documentation does include this field, but unfortunately the diagram does not seem to reflect it - which is a pitty.

RonaldTrivera

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Multiplicity
« Reply #4 on: April 26, 2005, 02:17:53 am »
Multiplicity on the behalf of classifiers can be used to indicate the number of occurences this element may have. For example setting a multiplicity of 1 can be compared to an singleton class.

cheers

thomaskilian

  • Guest
Re: Multiplicity
« Reply #5 on: April 26, 2005, 03:22:57 am »
Do you also know how to show this in diagrams ???

RonaldTrivera

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Multiplicity
« Reply #6 on: April 26, 2005, 04:43:11 am »
I can not find any way to visualize it in a class diagram  :(
Lets hope class diagrams get some upgrades in the near future i would like to show much more that there is currently possible. Like constraints on attributes etc....

cheers

michael_rainwater

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Multiplicity
« Reply #7 on: April 26, 2005, 06:47:49 am »
OK -- I just tried this, and the multiplicity appeared in the upper right of the class.

I did this on one my my class diagrams.  First, I selected a class from my project, and I drug an instance into the diagram.  I then opened the properties and select 1..* as the multiplicity.  It shows up fine on the diagram.

In fact, when I change the type from an object to a class it still shows up (but the syntax is a little different).

So, I still don't see the issue.  The multiplicity is showing fine on my diagrams.  I am using the 741 build btw.

What element type are you using?

thomaskilian

  • Guest
Re: Multiplicity
« Reply #8 on: April 26, 2005, 01:38:49 pm »
I'm using nodes. Maybe I have to go through the UML bible in order to find whether I can use it for that type of element  :P

Thanks for the hint anyway :)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Multiplicity
« Reply #9 on: April 26, 2005, 06:24:19 pm »
Quote
I'm using nodes. Maybe I have to go through the UML bible in order to find whether I can use it for that type of element  :P

Thanks for the hint anyway :)


Whether its in UML or not, the Sparxians provide the metadata entry.  They should provide the visualisation.

Consistency! Consistency! Consistency! ;D

Paolo

Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Multiplicity
« Reply #10 on: April 27, 2005, 01:07:34 am »
Just gone through the relevant parts of Superstructures. Since Node is a generalization of Class it shall also show the multiplicity. Time for a bug report.