Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Class cardinality on class diagram
Class cardinality on class diagram [message #724487] Mon, 12 September 2011 09:12 Go to next message
davidsanchez00 is currently offline davidsanchez00
Messages: 2
Registered: September 2011
Junior Member
Hi,

Anyone knows if is it possible to set class cardinality on a standard UML2Tools class diagram?

Thanks in advance,
David.

[Updated on: Mon, 12 September 2011 09:12]

Report message to a moderator

Re: Class cardinality on class diagram [message #724546 is a reply to message #724487] Mon, 12 September 2011 11:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25999
Registered: July 2009
Senior Member
David,

I'm not sure what that is, but if there isn't a way to do it in the
diagram, there's most likely a way in the properties view.


On 12/09/2011 6:12 AM, davidsanchez00 wrote:
> Hi,
>
> Anyone knows if it is possible to set class cardinality on a standard
> UML2Tools class diagram?
>
> Thanks in advance,
> David.
Re: Class cardinality on class diagram [message #724552 is a reply to message #724546] Mon, 12 September 2011 11:21 Go to previous messageGo to next message
davidsanchez00 is currently offline davidsanchez00
Messages: 2
Registered: September 2011
Junior Member
Hi Ed,

Class cardinality has to do with the maximum number of instances of one class that can exist on the system.
I have already checked the class properties and can't find anything that has to do with class cardinality.

Kind regards,
David.
Re: Class cardinality on class diagram [message #724586 is a reply to message #724552] Mon, 12 September 2011 11:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25999
Registered: July 2009
Senior Member
David,

Is this part of the UML specification? Can you see it in the UML2 API?


On 12/09/2011 8:21 AM, davidsanchez00 wrote:
> Hi Ed,
>
> Class cardinality has to do with the maximum number of instances of
> one class that can exist on the system.
> I have already checked the class properties and can't find anything
> that has to do with class cardinality.
>
> Kind regards,
> David.
Re: Class cardinality on class diagram [message #725147 is a reply to message #724586] Wed, 14 September 2011 01:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4026
Registered: July 2009
Senior Member
Hi

I can't see anything in the UML specification. It seems to be a rather
suspect concept. Cardinality only exists in the context of
MultiplicityElement and Profile Extension.

I think that your problem is that you treat your system as the global
universe rather than modeling it. As soon as you create a System class
you can then define that the A_system_class association has a bounded
multiplicity.

[It is amazing how often modeling the System rather than using
unconcontrolled globals enables you top do more; like have two systems
in a simulation, or tre-use the 'system' as a sub-component in a
simulation of the super-system or in a test harness.]

Regards

Ed Willink


On 12/09/2011 16:39, Ed Merks wrote:
> David,
>
> Is this part of the UML specification? Can you see it in the UML2 API?
>
>
> On 12/09/2011 8:21 AM, davidsanchez00 wrote:
>> Hi Ed,
>>
>> Class cardinality has to do with the maximum number of instances of
>> one class that can exist on the system.
>> I have already checked the class properties and can't find anything
>> that has to do with class cardinality.
>>
>> Kind regards,
>> David.
Re: Class cardinality on class diagram [message #726678 is a reply to message #724487] Mon, 19 September 2011 04:35 Go to previous message
Peter  is currently offline Peter
Messages: 85
Registered: July 2009
Member
Hi,
you can set it with a "[3..*]" String after the memberend name of the
association.
Peter

Am Mo 12.09.11 15:12, schrieb davidsanchez00:
> Hi,
>
> Anyone knows if it is possible to set class cardinality on a standard
> UML2Tools class diagram?
>
> Thanks in advance,
> David.
Previous Topic:UML2 vs UML2 Tools , what's diff??
Next Topic:Problem installing UML Tools on Eclipse Galileo
Goto Forum:
  


Current Time: Thu Aug 21 04:17:37 EDT 2014

Powered by FUDForum. Page generated in 0.01961 seconds