Package Diagram

Package diagrams depict the organization of model elements into Packages and the dependencies amongst them, including Package imports and Package extensions. They also provide a visualization of the corresponding namespaces.

You generate Package diagram elements and connectors from the Class pages of the Toolbox.

Example Diagram

This example illustrates a basic Package diagram.

Connectors

Item

Description

See also

Nesting connector

The Nesting connector between ConnSeq and Controller reflects what the Package contents reveal.

Package contents can be listed by clicking on the diagram background to display the diagram's 'Properties' dialog, selecting the 'Elements' tab and selecting the 'Package Contents' checkbox.

The «import» connector indicates that the elements within the target Integer Package, which in this example is the single Class Integer, are imported into the Package Controller.

The Controller's namespace gains access to the Integer Class; the Integer namespace is not affected.

«merge» connector

The «merge» connector indicates that the Package Controller's elements are imported into GenApply, including Controller's nested and imported contents.

If an element already exists within GenApply, such as Loader and Time, these elements' definitions are expanded by those included in the Package Controller. All elements added or updated by the merge are noted by a generalization relationship back to that Package.

Package Diagram Connector Toolbox Items

Icon

Description

See also

An Association implies that two model elements have a relationship, usually implemented as an instance variable in one or both Classes.