Package (UML)

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

Examples of UML 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:

  • production environment
  • pre-production environment
  • integration test environment
  • system test environment
  • development environment
gollark: ReactOS, sinthorion? Ish?
gollark: In what way(s)?
gollark: I'm just trying to migrate them to use unix sockets and not TCP to improve performance.
gollark: SQLite is used for random embedded things, but the "big" osmarks.net applications are mostly now on postgres.
gollark: osmarks.net *always* slightly had postgres.

References


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.