Package
Package
Select the "Package" option to build a package.
A window allows the package parametrisation.
The parameters are the following:
-
The name of the package.
UMLAUT gives a value by default. You can change it.
-
The generalizable properties of the package.
- abstract: This package is an abstract package
- root: This package is a root package. It has no ancestor.
- leaf: This package is a leaf package. It has no descendant.
-
The stereotype.
-
The visibility.
- public: Elements are available from importing packages and to descendants of the package.
- protected: Elements are available only from packages with generalizations to the containing package.
Generalizations can be : inheritance, friend association (not yet implemented).
- private: Elements are not available at all outside the containing package.
To create a class owned by the package, open the menu in the package picture area, and choose the Add Class option. You can also do it in the browser.
A package may contains class elements, but also other classifier elements :
Node, Component, Interface.
It is possible to link a package with an other package or class with an inheritance or a dependency relation.
A click on the "ok" button of the dialog box generates the following package element in the Class Diagram working window.