Misplaced Pages

Package (UML)

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Examples of UML Packages

A package in the Unified Modeling Language is used "to group elements, and to provide a namespace for the grouped elements". A package may contain other packages, thus providing for a hierarchical organization of packages.

Pretty much all UML elements can be grouped into packages. Thus, classes, objects, use cases, components, nodes, node instances etc. can all be organized as packages, thus enabling a manageable organization of the myriad elements that a real-world UML model entails.

Usage

When organizing functional models (use case models, workflow models etc.), use packages to model the real-world modular structure of the system being modeled. When organizing source code, use packages to represent the different layers of the source code. For instance:

When organizing component models, use packages to group the components according to ownership and/or reuse possibilities. For instance:

When organizing deployment models, use packages to represent the different types of deployment environments that you will be modeling. For instance:

References

  1. OMG Unified Modeling Language (OMG UML), Infrastructure, V2.1.1 Archived 2017-01-09 at the Wayback Machine p.158.
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Package" UML – news · newspapers · books · scholar · JSTOR (February 2009) (Learn how and when to remove this message)
Unified Modeling Language
Actors
Concepts
Object oriented
Structure
Behavior
Relationships
Extensibility
Other
Diagrams
Structure
Behaviour
Interaction
Derived languages
Other topics


[REDACTED]

This Unified Modeling Language article is a stub. You can help Misplaced Pages by expanding it.

Categories:
Package (UML) Add topic