• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

question on class diagram

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to UML and need small suggestion. I am working on small project and my class diagram got some complex relationships. I am using RSA(IBM product) for UML diagrams.

I am stuck at one place, i tired very hard not to show any relationship with cross over lines, here i mean one line cover over another line in relationship between classes, as i find there are few common classes used in most of all classes.

So in my question is will that be ok in class diagram showing relationship with cross over lines..I tired showing in the example. Imagine i dont have any option besides crossing association, So i just wanted to check, is it ok or it is aganist UML diagrams.

I already spent couple of hours to rearrange classes, but everytime one/two classes i need to cross lines.

In total of approx 28 classes, only 2 or 3 are like this.

Looking for expert opinion on this.
image001.gif
[Thumbnail for image001.gif]
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is ok if it can't be avoided.
Here are some styling tips from IBM.
Image 5 (http://www.ibm.com/developerworks/webservices/library/ws-tip-uml/clean-fig5.gif) shows crossing lines.


Still, the diagram is clear and clean.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Line crossing can't be avoided.
btw, You could try to customize the link by adding a color or changing link thickness in order to make a differentiation between crossing lines.
It could help to add more specific information inside the diagram.
 
deepak adlakha
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks it helps. I read the IBM link too.

But quick question, how do i draw this line-hop in class diagram. I dont see any option like that to do the same. Is there is any trick or special way of doing it ?
reply
    Bookmark Topic Watch Topic
  • New Topic