Dependency (UML)

In the Unified Modeling Language (UML), a Dependency is a relationship that shows that an element, or set of elements, requires other model elements for their specification or implementation.[1] The element is dependent upon the independent element, called the supplier. Two or more elements in this relationship are called tuples.

In the UML, this is indicated by a dashed line pointing from the dependent (or client) to the independent (or supplier) element. The arrow representing a Dependency specifies the direction of a relationship, not the direction of a process.

Standard predefined dependencies

UML - defined dependencies include:

Differences with UML link

A UML link is run-time relationship between instances of classifiers, while a dependency is a model-time relationship between definitions.

A typical uni-directional link requires the one instance to know about, and thus depend, upon the other, but this is not required. A uni-directional link only requires the possibility of navigation not dependency.

Likewise, a bi-directional link requires that both instances may traverse to each other, but this also does not require dependency.

However, after the traversal of the association, if some property of the target instance's definition is accessed, such as an operation or attribute, a dependency is created.

See also

References

  1. OMG Unified Modeling Language, Superstructure, Version 2.4.1

Further reading

Weilkiens, Tim; Oestereich, Bernd (2007). UML 2 Certification Guide. Morgan Kaufman. ISBN 0-12-373585-8. 

OMG Unified Modeling Language Superstructure, Object Management Group, August 2011 

External links


This article is issued from Wikipedia - version of the Sunday, November 23, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.