Model and Package stereotype elements are used to group SysML modelling elements (e.g. Blocks, Activities, other Packages etc.) and diagrams into a logical grouping.
In SysML, each stereotype model element is contained within (i.e. owned by) a single container (i.e. Model or Package). SysML models/packages are similar to file folders. The SysML Model and Package stereotype elements are displayed in the Modelling sidebar and in Package Diagrams (pkgs).
On a pkg the Package symbol is represented as a tabbed folder with the name in the tabbed body.
Packages can be organised into a hierarchy by nesting a Package within another Package (Packages within Packages) A Package hierarchy can include multiple levels of nested Packages, meaning that a model element can be contained within a Package that is contained in an arbitrarily number of higher-level Packages.
A Package is designed to group any modelling element (e.g. Blocks and Activities) into a logical grouping of some kind. The contained elements are owned by the Package using the «containment» relationship.
An example pkg is:
The symbols available in pkgs are:
Symbol | Name | Description |
---|---|---|
Comment | Makes a note anywhere in the diagram. Are always surrounded by * characters. Note: If you do not want Cradle to automatically add an * go to the Graphics Settings section of Project Setup and turn off the Automatically add asterisks to diagram's comment symbols option. | |
Picture | Allows you to choose the location of a GIF or JPEG image to be displayed as a diagram symbol. An image can also be embedded in the other diagram symbols. | |
Note Callout | Multi-purpose symbol which attaches to other symbols in order to show certain attributes of the model element. It can show frames, categories, tags, related items, or simply a piece of standalone text. The following figure shows a Callout that displays a relationship: | |
Tag | The Tag symbol is used to display a tag value contained in a symbol's stereotype frames, or cross reference link attributes, anchored to the selected symbol. In the following example, the Tag symbol displays the constraint tag value specified in the CONSTRAINT stereotype frame: | |
Package | Packages can be organised into a hierarchy by nesting a Package within another Package. The nested Packages are linked to the containing Package with the «containment» link. A Package symbol is represented as a tabbed folder symbol with the Package name in the tabbed body of the symbol: | |
Containment | The Containment path can be drawn between a containing Package and one or more nested Model elements. A «containment» relationship is created for each Containment path. If the modelling element is already linked to an owning Package, the element is linked to the other Package using the «containment reuse» relationship. The Containment path symbol is a solid line with a circle containing a + symbol. | |
Dependency | A Dependency between two modelling elements indicates that one element uses another element. | |
Model | A Model is a Package subtype. It is one of several specialised packages. It is a type of package that serves as the root of a containment hierarchy. | |
View | A View is a Package subtype. | |
Viewpoint | A Viewpoint is a specification of the purpose for constructing and using a View Package. | |
Requirement | This symbol identifies Cradle requirement items that are created outside the SysML model. These items can be the built-in requirement item type or a system note user-defined item type such as: STAKEHOLDER REQ, SYSTEM REQ or SOFTWARE REQ. When the Requirement symbol is placed on the Package Diagram you must choose which type of item and the item's name. The item type and the name of the item are specified using the Name Symbol dialog. You have the option to display additional symbol compartments using the checkboxes in the Control sidebar. | |
Test Case | The Test Case symbol represents a user-defined Cradle system note item type that is created outside of the SysML model. For example the following illustrates a Test Case system note item: When the Test Case symbol is placed on the pkg diagram you must choose the type of item and the name of the item to be displayed on the diagram using the Name Symbol dialog. The Test Case symbol has optional compartments that can be displayed. | |
Non-Package Element | Represents model elements that can be contained in Packages. | |
Reference Diagram | Allows referencing of an existing SysML diagram. Click the symbol to launch the diagram. |
The symbols along with their default stereotypes, referenced elements, stereotype frames and cross reference link attributes are:
Symbol | Name | Default Stereotype | Referenced Element | Stereotype Frames or Cross Reference Link Attributes |
---|---|---|---|---|
Comment | None | None | None | |
Picture | None | None | None | |
Note Callout | None | None | None | |
Tag | None | None | None | |
Package | «package» | None | None | |
Containment | None | None | None | |
Dependency | None | None | None | |
Model | «model» | None | None | |
View | «view» | None | None | |
Viewpoint | «viewPoint» | None | None | |
Requirement | Non-modelling Cradle item type | None | None | |
Test Case | Non-modelling Cradle item type | None | None | |
Non-Package Element | None | None | None | |
Reference Diagram | None | None | None |