• 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

different between Association and Dircted Assocition

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read this article.

http://www.developer.com/design/article.php/2206791/The-UML-Class-Diagram-Part-1.htm

it seems like Association and Dircted Assocition has no different .is it?
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't read the article yet. But actually there is no "Directed Association" in strictly UML term.

From the metamodel, Association extends Relationship (not DirectedRelationship), but Association has navigableOwnedEnd to indicate that if the association is navigable from the opposite ends.

If you have any question about UML, I recommend to check UML Superstructure specification from OMG website.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The difference in the article's terminology is one of navigability--but as far as I know Kengkaj is correct, this isn't an official UML term.

Using the article's terminology an "association" is bi-directional, meaning you can get from one class to another. A "directed association", in the article's terminology, means that the association isn't "reversible". I've also seen navigability enforced with the addition of an "X" on the other (non-arrow) end of the connector.

One example might look like this (from UML 2.0 Distilled):This would mean that you couldn't get a cursor's window from the cursor instance.
reply
    Bookmark Topic Watch Topic
  • New Topic