Chapter 3 Building Structural Diagrams
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.
In a class diagram, you can create a dependency between:
For example:
In an object diagram, you can create a dependency between two objects as follows:
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:
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.
In a deployment diagram, a dependency can be created between nodes, and component instances as follows:
Copyright (C) 2006. Sybase Inc. All rights reserved. |