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 3.

Table 3 Graphic nodes included in structure diagrams

NODE TYPE NOTATION REFERENCE
Class
See "Class (from Kernel)".
Interface
See "Interface (from Interfaces)"
InstanceSpecification
See "InstanceSpecification (from Kernel)" . (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
See "Package (from Kernel)".

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

Table 4 - Graphic nodes included in structure diagrams

PATH TYPE NOTATION REFERENCE
Aggregation
See "AggregationKind (from Kernel)" .
Association
See "Association (from Kernel)".
Composition
See "AggregationKind (from Kernel)" .
Dependency
See "Dependency (from Dependencies)" .
Generalization
See "Generalization (from Kernel, PowerTypes)" .
Realization
See "Realization (from Dependencies)" .
Package Merge
See "PackageMerge (from Kernel)" .
PackageImport
See "PackageImport (from Kernel)" .
PackageImport
See "PackageImport (from Kernel)" .


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
· 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)