Dependency (UML)

Dependency (UML)

A dependency in the Unified Modeling Language exists between two defined elements if a change to the definition of one may result in a change to the other. In UML this is indicated by a dashed line pointing from the dependent (or client) to the independent (or supplier) element.

If more than one client or supplier participates in the dependency, arrows with their tails on the client elements are connected to the tails of one or more arrows with their heads on the supplier elements. Place a small dot on the junction point along with a note on the dependency.

Dependency is a model-level relationship and not a run-time relationship—describing the need to investigate the model definition of the client element for possible changes if the model definition of the supplier element is changed.

A dependency is a semantic relationship where a change to the influent or independent modeling element may affect the semantics of the dependent modeling element.

A dependency identifies a set of model elements that requires other model elements for their specification or implementation. The complete semantics of the depending elements is either semantically or structurally dependent upon the definition of the supplier element(s).

The arrow representing a dependency specifies the direction of a relationship, not the direction of a process.

Contents

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

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

External links

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Dependency — or dependent may refer to: Contents 1 Sciences 1.1 Computer science 1.2 Economics 1.3 Linguistics 1.4 …   Wikipedia

  • Стереотип (UML) — У этого термина существуют и другие значения, см. Стереотип (значения). Стереотипы являются одним из трех типов механизмов расширяемости в унифицированном языке моделирования (UML). Они позволяют проектировщикам расширять словарь UML для создания …   Википедия

  • Executable UML — Executable UML, often abbreviated to xtUML [Example usage: http://www.techonline.com/community/tech topic/37519] or xUML [Example usage: http://www.kc.com/xuml.php] , is the evolution of the Shlaer Mellor method to UML. Executable UML graphically …   Wikipedia

  • Diagramme uml — Unified Modeling Language Pour les articles homonymes, voir UML. Logo d UML UML (en anglais Unified Modeling Language, « langage de modélisation unifié ») est un langage graphique de mod …   Wikipédia en Français

  • Stereotype (UML) — Stereotypes are one of three extensibility mechanisms in Unified Modeling Language (UML). They allow designers to extend the vocabulary of UML in order to create new model elements, derived from existing ones, but that have specific properties… …   Wikipedia

  • Classifier (UML) — A classifier is a category of Unified Modeling Language (UML) elements that have some common features, such as attributes or methods. A classifier is an abstract metaclass classification concept that serves as a mechanism to show interfaces,… …   Wikipedia

  • Component (UML) — A UML Component with provided and required interfaces A component in the Unified Modeling Language represents a modular part of a system, that encapsulates its content and whose manifestation is replaceable within its environment. A component… …   Wikipedia

  • Node (UML) — Two execution environments instances nested in a device instance A node In the Unified Modeling Language (UML) is a computational resource upon which UML artifacts may be deployed for execution. [1] There are two types of nodes: device nodes and… …   Wikipedia

  • Paketimport (UML) — Ein Paketimport (package import) ist ein Modellelement in der Unified Modeling Language (UML), einer Sprache für die Modellierung der Strukturen und des Verhaltens von Software und anderen Systemen. Ein Paketimport ist eine gerichtete Beziehung… …   Deutsch Wikipedia

  • Powertype (UML) — In the Unified Modeling Language 1.x, powertype is a keyword for a specific UML stereotype, and applies to a class or dependency. Powertype shows a classifier whose instances (objects) are children of the given parent.In UML 2.x, the stereotype… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”