Object model diagrams Dependencies A dependency exists when the implementation or functioning of one element (class or package) requires the presence of another element. For example, if class C has an attribute a that is of class D , there is a dependency from C to D . In the UML, a dependency is a directed relationship from a client (or clients) to a supplier stating that the client is dependent on, and affected by, the supplier. In other words, the client element requires the presence and knowledge of the supplier element. The supplier element is independent of, and unaffected by, the client element. Dependency arrows A dependency arrow is a dotted line with an arrow.
You can draw a dependency arrow between elements, or you can have one end attached and the other free. It can have a label, which you can move freely. If a dependency arrow is drawn to or from an element, it is attached to the element; the attached end moves with the attached border of the element. Dependency arrows show that one thing depends on something else: Љ An object that is a (logical) instantiation of another Љ An object that creates or deletes another Љ Constraints attached to an element Љ A class that uses another class or package Љ A package that uses another package or class You can create a dependency in a diagram or in the browser. 572 User Guide