Chapter 3 Building Structural Diagrams


Dependencies (OOM)

A dependency is a semantic relationship between two objects, in which a change to one object (the influent object) may affect the semantics of the other object (the dependent object).

A dependency can be created in the following diagrams:

The dependency relationship indicates that one object in a diagram uses the services or facilities of another object. You can also define dependencies between a package and a modeling element.

Dependencies in a class or composite structure diagram

In a class diagram, you can create a dependency between:

For example:


Dependencies in an object diagram

In an object diagram, you can create a dependency between two objects as follows:


Dependencies in a use case diagram

In a use case diagram, you can create a dependency between:

Buying a computer from a web site involves the activity of finding the product page within the seller's web site:


Dependencies in a component diagram

In a component diagram, you can create a dependency between two components as shown below. You cannot create a dependency between a component and an interface.


When using a dependency, you can nest two components by using a stereotype.

Dependencies in a deployment diagram

In a deployment diagram, a dependency can be created between nodes, and component instances as follows:


 


Copyright (C) 2006. Sybase Inc. All rights reserved.