Book a Demo

Author Topic: Composition and multiplicities  (Read 5653 times)

Katsuro Nakamura

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Composition and multiplicities
« on: September 02, 2008, 07:47:35 pm »
Hallo,
i am a newbie in uml and have a question to compositions in a classdiagram and there multiplicities. I want to design a model for a skatapplikation (a german card game). you have a session wich consists of 32 or 48 deals. the deals are so the parts of the session. how i can divide between a session with 32 deals and a session with 48 deal. how i can model the mutiplicities of theses composition?
hope that somebody understands my bad english  ;)
« Last Edit: September 02, 2008, 11:53:08 pm by SATB »
Wir warten unser Leben lang auf den außergewöhnlichen Menschen, statt die gewöhnlichen um uns her in solche zu verwandeln.
[Balthasar]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: composition an multiplicities
« Reply #1 on: September 02, 2008, 09:22:35 pm »
You can create your own multiplicities in UML. You are not limited to the 'standard' set. The standard group simply provide an unambiguous method of stating the common multiplicities that one would expect in most models.

Just type in your own multiplicity instead of choosing one from the drop-down. EA will add the enclosing square brackets ("[" and "]") when necessary, so don't include these.

So you'd just use the notation "32,48" (without quotes) to indicate that the multiplicity must be either 32 or 48, and not anything in between. If it were allowed to be any number in the range then you would use "32..48" instead. You could also use "0,32..48" if it were possible to have no deals. [I've made these situations up for illustration only.]

Hope this helps,
David
No, you can't have it!

Katsuro Nakamura

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: composition an multiplicities
« Reply #2 on: September 02, 2008, 09:48:16 pm »
thx,
a very helpful explanation :)
Wir warten unser Leben lang auf den außergewöhnlichen Menschen, statt die gewöhnlichen um uns her in solche zu verwandeln.
[Balthasar]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: composition an multiplicities
« Reply #3 on: September 02, 2008, 09:57:04 pm »
But did it work for you?
No, you can't have it!

Katsuro Nakamura

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: composition an multiplicities
« Reply #4 on: September 02, 2008, 10:36:27 pm »
yes thanks,
i was searching for the notation "32,48". These was the solution for my problem.
Wir warten unser Leben lang auf den außergewöhnlichen Menschen, statt die gewöhnlichen um uns her in solche zu verwandeln.
[Balthasar]