Previous UML Classes Table of Contents UML Packages Next


7.4 Diagrams

*Structure diagram

   This section outlines the graphic elements that may be shown in structure diagrams, and provides cross references where detailed information about the semantics and concrete notation for each element can be found. It also furnishes examples that illustrate how the graphic elements can be assembled into diagrams.

   Graphical nodes

    The graphic nodes that can be included in structure diagrams are shown in Table 7.2 .

Table 7.2 - Graphic nodes included in structure diagrams

NODE TYPE Class NOTATION C lassN am e REFERENCE See Class (from Kernel ) on page 48.
Interface InterfaceName <<interface>> InterfaceName See Interface (from Interfaces ) on page 87.
InstanceSpecification Instancename : ClassName See InstanceSpecification (from Kernel ) on page 83. (Note that instances of any classifier can be shown by prefixing the classifier name by the instance name followed by a colon and underlining the complete name string.)
Package PackageName See Package (from Kernel ) on page 109.

   Graphical paths

    The graphic paths that can be included in structure diagrams are shown in Table 7.3.

   Table 7.3 - Graphic paths included in structure diagrams

   PATH TYPE

   NOTATION

   REFERENCE

   Aggregation

   See AggregationKind (from Kernel ) on page 36.


Table 7.3 - Graphic paths included in structure diagrams

PATH TYPE

NOTATION

REFERENCE

Association

See Association (from Kernel ) on page 37.
Composition

See AggregationKind (from Kernel ) on page 36.
Dependency

See Dependency (from Dependencies ) on page 61.
Generalization

See Generalization (from Kernel , PowerTypes ) on page 71.
InterfaceRealization

See InterfaceRealization (from Interfaces ) on page 90.
Realization

See Realization (from Dependencies ) on page 131.
Usage «use» See Usage (from Dependencies ) on page 139.
Package Merge «merge» See PackageMerge (from Kernel ) on page 113.
PackageImport (public) «import» See PackageImport (from Kernel ) on page 112.

Table 7.3 - Graphic paths included in structure diagrams

PATH TYPE

NOTATION

REFERENCE

PackageImport (private) «access» See PackageImport (from Kernel ) on page 112.

*Variations

   Variations of structure diagrams often focus on particular structural aspects, such as relationships between packages, showing instance specifications, or relationships between classes. There are no strict boundaries between different variations; it is possible to display any element you normally display in a structure diagram in any variation.

   Class diagram

   The following nodes and edges are typically drawn in a class diagram:

   

   Association

   

   Aggregation

   

   Class

   

   Composition

   

   Dependency

   

   Generalization

   

   Interface

   

   InterfaceRealization

   

   Realization

   Package diagram

   The following nodes and edges are typically drawn in a package diagram:

   

   Dependency

   

   Package

   

   PackageExtension

   

   PackageImport

   Object diagram

   The following nodes and edges are typically drawn in an object diagram:

   

   InstanceSpecification

   

   Link (i.e., Association)