Book a Demo

Author Topic: Association link name with little black arrow  (Read 10223 times)

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Association link name with little black arrow
« on: March 24, 2004, 09:17:43 am »
How do I make an association link name with those little black filled arrows showing direction, ie showing how

|child|-----becomes > ---- |adult|
« Last Edit: March 24, 2004, 09:19:10 am by fluxtah »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Association link name with little black arrow
« Reply #1 on: March 24, 2004, 11:57:37 am »
Right click on the label, then select "Direction".
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.

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Association link name with little black arrow
« Reply #2 on: March 24, 2004, 01:48:08 pm »
Hi sargasso

That just gives me the normal association arrow, i guess it represents the same thing?

regards

fluxtah

thomaskilian

  • Guest
Re: Association link name with little black arrow
« Reply #3 on: March 24, 2004, 02:02:20 pm »
Hi fluxtah,
this arrow is normally used with ERD to show the type of relation (is part of; builds; etc.). I have not seen a way to produce these arrows in EA, although it would be nice to have them. You can use directed asociations as Bruce suggested but in that case you can denote just one direction.

Thomas

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Association link name with little black arrow
« Reply #4 on: March 24, 2004, 02:26:49 pm »
Ah I see :( just reading UML 2.0 Toolkit book which refers to the type of association Bruce suggested as a 'navigable association' by adding an arrow at the end of the association though I wanted the one you described as those used with ERD.


I wanted to do something like this:

                                           Owns >
|Person|---------------------------------------|Car|
                                          < Owned By

would be nice to do this :D any suggestions on alternatives?

regards

fluxtah


« Last Edit: March 24, 2004, 02:27:21 pm by fluxtah »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Association link name with little black arrow
« Reply #5 on: March 24, 2004, 04:07:09 pm »
Are you sure you are right clicking on the label, not the link?

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.

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Association link name with little black arrow
« Reply #6 on: March 24, 2004, 04:34:53 pm »
Hi fluxtah,

the reading direction is a property of the link name/label as Sargasso noted.

I just updated a previous thread related (I think) to this issue.

Regards,
Ben

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Association link name with little black arrow
« Reply #7 on: March 25, 2004, 12:08:59 am »
Ah cheers :D I was clicking on the link  :-/ Cool I got my arrow now, though is it possible to add 2 labels to one link?

regards

Ian
« Last Edit: March 25, 2004, 12:19:35 am by fluxtah »

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: Association link name with little black arrow
« Reply #8 on: March 25, 2004, 02:44:32 am »
I think UML accept only one label to one link.

correct me if I'm wrong.
bye
Andreas

thomaskilian

  • Guest
Re: Association link name with little black arrow
« Reply #9 on: March 25, 2004, 04:13:19 am »
Could not find any restriction in the UML documentation (which does not mean that there is none  ;)). The examples shown make use of only one label. But with ERD one usually has two labels (forth and back).

Thomas

p.s.: this is what the spec says:
Note – There is no need for a name direction property on the association model; the ordering of the classifiers within the association is the name direction. This convention
works even with n-ary associations.
« Last Edit: March 25, 2004, 04:18:00 am by thomaskilian »

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Association link name with little black arrow
« Reply #10 on: March 25, 2004, 06:27:59 am »
According to the UML2.0 toolkit, they have 2 labels on many examples :(

regards

Ian

thomaskilian

  • Guest
Re: Association link name with little black arrow
« Reply #11 on: March 25, 2004, 07:38:23 am »
Actually I was looking in the 1.5 specification. But 2.0 also does not make use of 2 labels:

Quote
On a binary association drawn as a solid line, a solid triangular arrowhead next to or in place of the name of the
association and pointing along the line in the direction of one end indicates that end to be the last in the order of the ends
of the association. The arrow indicates that the association is to be read as associating the end away from the direction of
the arrow with the end to which the arrow is pointing (see Figure 31).


Figure 31 shows only one single arrow near a single label.

Thomas

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Association link name with little black arrow
« Reply #12 on: March 25, 2004, 08:16:23 am »
Hiya, this is actually very confusing, considering I am going by the UML2.0 Toolkit on OMG Press, tells me that they are showing me official standards, unless OMG themselves have got it wrong?  ???

They use this example as above

                                                 Owns >
|Person|---------------------------------------|Car|
                                             < Owned By

Which makes me wonder how they are able to do this if it is not part of UML2.0

regards

Fluxtah
« Last Edit: March 25, 2004, 08:16:46 am by fluxtah »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Association link name with little black arrow
« Reply #13 on: March 25, 2004, 02:33:09 pm »
Use rolenames!
"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.