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
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

Realization relationship -- dashed arrow or solid line?

Howie Woo

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:
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.
himanshu airon

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.
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:
subject: Realization relationship -- dashed arrow or solid line?
It's not a secret anymore!