Book a Demo

Author Topic: Collaboration between classes  (Read 3333 times)

abulka

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Collaboration between classes
« on: June 17, 2011, 06:08:53 pm »
Is quite common to represent design patterns with a collaboration element pointing to the classes involved in the pattern.  I can't represent this perfectly with EA as a collaboration (dotted circle) won't give me a simple dotted line to a class.  

The closest I can do is a "role bind" which gives me an arrow (which I don't want).  

And... dragging out lines from the collaboration shape doesn't let me create classes - which I'd like and which I believe are valid.  

See http://www.holub.com/goodies/uml/ for examples of collaboration between classes being represented by simple dashed lines.

Also see http://www.state-machine.com/resources/UML_Reference.pdf for en example of design pattern as a collaboration of classes.

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Collaboration between classes
« Reply #1 on: June 27, 2011, 08:48:44 am »
Create a dependency (either direction)
Double click the dependency connection and set direction to "unspecified"

A more time efficient method (if you have a lot of these to do) is:
a) bulk update them via SQL to unspecified direction
b) create your own UML profile and your own stereotyped dependency connector which has direction=unspecified
« Last Edit: June 27, 2011, 08:49:50 am by Dave_Bullet »
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"