File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Realization relationship -- dashed arrow or solid line? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Realization relationship -- dashed arrow or solid line?" Watch "Realization relationship -- dashed arrow or solid line?" New topic
Author

Realization relationship -- dashed arrow or solid line?

Howie Woo
Greenhorn

Joined: Jan 26, 2002
Posts: 26
The UML User Guide clearly states that a realization relationship is depicted by a dashed arrow with an open arrow head. However, from the Rational Rose Help, I found the following:
"Definition
A realization is a relationship between classes, interfaces, components, and packages that connects a client element with a supplier element. A realization relationship between classes and interfaces and between components and interfaces shows that the class realizes the operations offered by the interface.
Graphical Depiction
When you draw a realize relationship to an interface from another model element, the realize relationship appears as a solid line. However, if you draw a realize relationship from a package to a class, the arrow appears as a dashed line with an open arrowhead:"
So which one should I use? I do not want to get any points deducted.
Thanks,
Howie
himanshu airon
Greenhorn

Joined: Dec 10, 2001
Posts: 13
Dear Howei
Realization is a semantic relationship between classifiers, wherein one classifier specifies a contract that another classifier guarantees to carry out. Graphically, a realization is rendered as across between a generalization and dependency relationship. Thus a dashed line with closed triangle. Realization is deliberately similar to generalization.It is permissible for one implementation class to realize another, this means that the realizing class must conform to the interface, but need not use inheritance.
Though in a specification model, there is no difference between realization and generalization, it is recommended to use the dashed line instead of solid line.
Himanshu
Sridhar Raman
Ranch Hand

Joined: Nov 30, 2001
Posts: 142
If in doubt about UML notations, follow UML User's guide by the 3 amigos. These were the guys who gave us the UML.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Realization relationship -- dashed arrow or solid line?