dependency (UML)

In the Unified Modeling Language (UML), a Dependency

{{cite book

|chapter=Dependency

|title=Unified Modeling Language 2.5.1

|series=OMG Document Number formal/2017-12-05

|date=December 2017

|publisher=Object Management Group Standards Development Organization (OMG SDO)

|page=42

|url=https://www.omg.org/spec/UML/2.5.1/PDF

}}

is "a Relationship that signifies that a single model Element or a set of model Elements requires other model Elements for their specification or implementation."

"This means that the complete semantics of the client Element(s) are either semantically or structurally dependent on the definition of the supplier Element(s)."

Two or more elements in this relationship are called tuples.

In 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:{{cite web |last1=Fakhroutdinov |first1=Kirill |title=Dependency in UML |url=https://www.uml-diagrams.org/dependency.html |website=uml-diagrams.org |access-date=2 April 2024}}

  • «call2» UML2: The client (an operation) may call the supplier (an operation){{Citation needed|reason=the cited source only names a <<call>> dependency no <<call2>>|date=April 2024}}
  • «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

See also

References

{{Reflist}}

Further reading

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

{{cite book

|chapter=Dependency

|title=Unified Modeling Language 2.5.1

|series=OMG Document Number formal/2017-12-05

|date=December 2017

|publisher=Object Management Group Standards Development Organization (OMG SDO)

|page=42

|url=https://www.omg.org/spec/UML/2.5.1/PDF

}}