Book a Demo

Author Topic: Association name direction  (Read 9210 times)

jps

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Association name direction
« on: September 05, 2003, 11:29:21 am »
How can I show an arrow (small black solid triangle) that shows the direction in which to read an association name?

Thanks!

James

whyteg

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • Mr Evaluator
    • View Profile
Re: Association name direction
« Reply #1 on: September 05, 2003, 01:39:42 pm »
James,

To create a Collaboration  
· Open a class diagram  
· Add the required objects  
· Add an Association relationship between objects that will communicate  
· Right click on an Association to get the context menu: Select the option to add a message from one object to another  
· When the Message dialog appears, fill in a name and any other required details  
· Press OK  
 
The Message is added - linked to the association and object instances  as a small black triangle.

Hope this helps.

George
 

jps

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #2 on: September 05, 2003, 05:32:36 pm »
Thanks for replying George!  Actually what I’m looking for though is not to add messages between objects, i.e. a collaboration diagram, but rather to show the direction in which one should read the association (link) name between two classes.  

When you double-click an association between two classes, you can enter a "Link Name."  You can specify in the UML which direction this is to be read by showing an arrow beside the text label.  Scott Ambler’s The Elements of UML Style provides an example of what I’m trying to accomplish in EA.  Please see the section named "Indicate Directionality To Clarify An Association Name" at this site: http://www.modelingstyle.info/classDiagram.html#_Toc862318 .

Thanks!

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #3 on: September 08, 2003, 02:25:57 am »
Double-click the association and set 'direction'.  EA will draw the arrows as appropriate.

Regards

Sean

jps

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #4 on: September 10, 2003, 03:23:55 pm »
Thanks Sean, but that's not exactly what I want either.  This sets the navigability which may or may not correspond the direction in which to read the association name.  In fact, on a Domain Model I really don't want to specify navigability.

It looks like EA does not support this at this time.  :(

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #5 on: September 10, 2003, 07:56:25 pm »
Hi James,

Thanks for the feedback.

This optional marker beside the association name is not currently supported.   It's now our TODO list.

Regards,
Ben

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #6 on: September 10, 2003, 08:31:13 pm »
You can use the "<" and ">" characters in the mean time.

Boss               supervises >                Employee
       ---------------------------------------->

Jim

jps

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #7 on: September 11, 2003, 08:19:10 am »
Excellent, thanks Ben!

Jim, I guess that will do in the meantime, thanks.  =)

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Association name direction
« Reply #8 on: March 24, 2004, 04:28:36 pm »
Hi Guys,

I believe this feature was implemented in one of the 3.60 releases ...

1. Create a connector
2. Set the Link name field
3. On the diagram, select the connector name/label
4. Right-click the name
5. Choose the Direction option from the context menu

The same applies for EA 4.0

I hope this helps.

Regards,
Ben