Package (UML)

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".[1] 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:

* presentation layer
* controller layer
* data access layer
* integration layer
* business services layer

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

* commercial-off-the-shelf products
* open-source framework components
* custom-built framework components
* custom-built application components

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

* production environment
* pre-production environment
* integration test environment
* system test environment
* development environment

## References

1. ↑ OMG Unified Modeling Language (OMG UML), Infrastructure, V2.1.1 p.158.

* v
* t
* e

Unified Modeling Language

Actors|

* Organizations
* Object Management Group
* UML Partners
* Persons
* Grady Booch
* Ivar Jacobson
* James Rumbaugh

Concepts|

| Object oriented|

* Object-oriented programming
* Object-oriented analysis and design
* Object-oriented modeling

|

Structure|

* Actor
* Attribute
* Artifact
* Class
* Component
* Interface
* Object
* Package
* Profile diagram

Behavior|

* Activity
* Event
* Message
* Method
* State
* Use case

Relationships|

* Association
* Composition
* Dependency
* Generalization (or Inheritance)

Extensibility|

* Profile
* Stereotype

Other|

* Multiplicity

Diagrams|

| Structure|

* Class
* Component
* Composite structure
* Deployment
* Object
* Package

|

Behaviour|

* Activity
* State Machine
* Use case

Interaction|

* Communications
* Sequence
* Interaction overview
* Timing

Derived languages|

* Systems Modeling Language (SysML)
* UML eXchange Format (UXF)
* XML Metadata Interchange (XMI)
* Executable UML (xUML)

Other topics|

* Glossary of UML terms
* Rational Unified Process
* List of Unified Modeling Language tools
* Object Modeling in Color

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Package (UML). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Package_(UML)&oldid=248799"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template