Book a Demo

Author Topic: Default multiplicity  (Read 5223 times)

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Default multiplicity
« on: August 26, 2005, 05:32:35 am »
What default multiplicity is in the UML2?
I though, that it's 1, but today in UML2 infrastructure (8.2.2 section) found this statement:

When directed associations are specified in lieu of attributes, the multiplicity on the undirected end is assumed to be ‘*’
(default in UML) and the role name should not be used.
registertm everything to SparX

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Default multiplicity
« Reply #1 on: August 26, 2005, 05:58:55 am »
Quote
What default multiplicity is in the UML2?
I though, that it's 1, but today in UML2 infrastructure (8.2.2 section) found this statement:

When directed associations are specified in lieu of attributes, the multiplicity on the undirected end is assumed to be ‘*’
(default in UML) and the role name should not be used.
SF,

It means what it says.  The association should be drawn from the client class to the supplier class.  The directed end is the navigable end - which is the supplier (or in EA terms, the target end)  The undirected end is therefore the client (or source) end.  The default multiplicity on the client end is "*".

If the association is bidirectional there is NO undirected end and thus the statement doesn't apply.

HTH,
Paolo
« Last Edit: August 26, 2005, 05:59:44 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Default multiplicity
« Reply #2 on: August 28, 2005, 04:04:13 pm »
Also, dont forget "*" means "any" not "lots".
b
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.