Jump to content

Dependency (UML): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
link to Element (UML)
m fixed header names + general fixes using AWB (8869)
Line 25: Line 25:


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

==References==
{{Reflist}}


==See also==
==See also==
*[[functional dependency]]
*[[functional dependency]]


==Further Reading==
==References==
{{Reflist}}

==Further reading==
{{cite book |title=UML 2 Certification Guide |last1=Weilkiens |first1=Tim |last2=Oestereich |first2=Bernd |year=2007 |publisher=Morgan Kaufman |isbn=0-12-373585-8}}
{{cite book |title=UML 2 Certification Guide |last1=Weilkiens |first1=Tim |last2=Oestereich |first2=Bernd |year=2007 |publisher=Morgan Kaufman |isbn=0-12-373585-8}}


Line 40: Line 40:
* [http://www.uml-diagrams.org/class-diagrams.html#dependency Dependency Relationship in UML 2]
* [http://www.uml-diagrams.org/class-diagrams.html#dependency Dependency Relationship in UML 2]
* [http://www.omg.org/spec/UML/2.4.1 Documents associated with Unified Modeling Language (UML), v2.4.1]
* [http://www.omg.org/spec/UML/2.4.1 Documents associated with Unified Modeling Language (UML), v2.4.1]



{{DEFAULTSORT:Dependency (Uml)}}
{{DEFAULTSORT:Dependency (Uml)}}
Line 46: Line 45:
[[Category:Data modeling]]
[[Category:Data modeling]]


[[de:Abhängigkeitsbeziehung (UML)]]


{{uml-stub}}
{{uml-stub}}

[[de:Abhängigkeitsbeziehung (UML)]]

Revision as of 21:24, 26 January 2013

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:

  • «call» UML2: The client (an operation) may call the supplier (an operation)
  • «create» UML2: The client (a classifier) may create instances of the supplier (a classifier)
  • «derive» UML2: The client (e.g., attribute value, link) may be computed from the supplier(s)
  • «instantiate» UML2: Operations of the client (a classifier) may create instances of the supplier (a classifier)
  • «permit» UML2: Obsolete
  • «realize» UML2: Obsolete
  • «refine» UML2: The client element(s) are at a "later" semantic level than the supplier(s)
  • «send» UML2: The client (an operation) sends the supplier (a signal)
  • «substitute» UML2: The client element can replace (under some circumstances) the supplier
  • «trace» UML2: The client elements "trace" to the suppliers. Typically used for levels of requirements
  • «use» UML2: The client element somehow "uses" the supplier

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