Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Multiplicities and names in an Association
Multiplicities and names in an Association [message #474696] Mon, 21 July 2008 10:40 Go to next message
Raphael is currently offline Raphael
Messages: 47
Registered: July 2009
Member
Hello friends!

IŽm using UML2Tools and I didnŽt find where I should set some properties
of an association. This properties are:

-association name;
-association source;
-association multiplicity in the source;
-association target name;
-association multiplicity in the target;

Indeed, the UML2Tools let me set the association name, the source and
target names of an association, but theirs multiplicity I can just set on
of them.

Where should I set this properties?!

P.S.: It would be a great ideia if these properties could be changed as
the parameters in a method, like in a pop up window.

Thanks a lot,
Raphael
Re: Multiplicities and names in an Association [message #474928 is a reply to message #474696] Wed, 23 July 2008 13:16 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
Hi Raphael,

You can edit name, multiplicity, visibility and modifiers of an AssociationEnd
in the diagram editor. To do that:
-Select label for source or target name of an association.
-Press F2 to edit it.
-edited string will be parsed as Property did (UML 2.1, 7.3.44, Property):
<property> ::= [<visibility>] [‘/’] <name> [‘:’ <prop-type>] [‘[‘ <multiplicity>
‘]’] [‘=’ <default>][‘{‘ <prop-modifier > [‘,’ <prop-modifier >]* ’}’]

It means, if you print 'year [1..3]', an association end will get name 'year',
its lower value will be '1' and its upper value will be '3'.
Unfortunately, it's not possible now to see and edit other properties of
AssociationEnds in the diagram editor (bugzilla #174003 Impossible to edit
Association link source/destination properties in diagram editor). But you
can always use domain model editor(*.uml file) to do that.

Best wishes,
Tanya.

> Hello friends!
>
> IŽm using UML2Tools and I didnŽt find where I should set some
> properties of an association. This properties are:
>
> -association name;
> -association source;
> -association multiplicity in the source;
> -association target name;
> -association multiplicity in the target;
> Indeed, the UML2Tools let me set the association name, the source and
> target names of an association, but theirs multiplicity I can just set
> on of them.
>
> Where should I set this properties?!
>
> P.S.: It would be a great ideia if these properties could be changed
> as the parameters in a method, like in a pop up window.
>
> Thanks a lot,
> Raphael
Re: Multiplicities and names in an Association [message #621732 is a reply to message #474696] Wed, 23 July 2008 13:16 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
Hi Raphael,

You can edit name, multiplicity, visibility and modifiers of an AssociationEnd
in the diagram editor. To do that:
-Select label for source or target name of an association.
-Press F2 to edit it.
-edited string will be parsed as Property did (UML 2.1, 7.3.44, Property):
<property> ::= [<visibility>] [‘/’] <name> [‘:’ <prop-type>] [‘[‘ <multiplicity>
‘]’] [‘=’ <default>][‘{‘ <prop-modifier > [‘,’ <prop-modifier >]* ’}’]

It means, if you print 'year [1..3]', an association end will get name 'year',
its lower value will be '1' and its upper value will be '3'.
Unfortunately, it's not possible now to see and edit other properties of
AssociationEnds in the diagram editor (bugzilla #174003 Impossible to edit
Association link source/destination properties in diagram editor). But you
can always use domain model editor(*.uml file) to do that.

Best wishes,
Tanya.

> Hello friends!
>
> IŽm using UML2Tools and I didnŽt find where I should set some
> properties of an association. This properties are:
>
> -association name;
> -association source;
> -association multiplicity in the source;
> -association target name;
> -association multiplicity in the target;
> Indeed, the UML2Tools let me set the association name, the source and
> target names of an association, but theirs multiplicity I can just set
> on of them.
>
> Where should I set this properties?!
>
> P.S.: It would be a great ideia if these properties could be changed
> as the parameters in a method, like in a pop up window.
>
> Thanks a lot,
> Raphael
Previous Topic:Reuse UML New Diagram wizards
Next Topic:How declare a stereotype
Goto Forum:
  


Current Time: Thu Apr 17 08:40:30 EDT 2014

Powered by FUDForum. Page generated in 0.01718 seconds