请输入您要查询的百科知识:

 

词条 Package (UML)
释义

  1. Usage

  2. References

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.
{{Refimprove|date=February 2009}}{{UML}}{{DEFAULTSORT:Package (Uml)}}{{uml-stub}}

1 : Unified Modeling Language

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 11:27:56