In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what is the purpose and guidelines of the UML package map, I hope you will gain something after reading this article, let's discuss it together!
UML package diagram
The UML package diagram depicts two or more packages and the dependencies between these packages. A package is a structure in UML that is used to group various modeling elements, such as use cases or classes. The symbol of the package is what the folder looks like and can be applied to any UML diagram. Any diagram that contains only packages (and dependencies between packages) can be thought of as a UML package diagram. UML package diagram is actually a new concept in UML2, and it has always been an informal part of UML1. What used to be called UML package diagram is usually a UML class diagram or UML use case diagram that contains only packages. The purpose of creating a UML package diagram is to:
◆ gives a high-level overview view of the requirements.
◆ gives a high-level overview of the design.
◆ organizes a complex graph logically and modularly.
◆ organizes the source code.
◆ models the framework (Evitts2000).
UML package graph criterion of class
◆ organizes the design logically using the UML package diagram of the class
Figure 28 shows a UMLUML package diagram that organizes a collection of related classes. For the various guidelines that will be given later in this chapter, you can now use the following heuristic guidelines to organize classes into packages.
A class within a framework belongs to a package.
Classes that are generally on the same inheritance level also belong to the same package.
Classes associated through aggregation or composition relationships often belong to the same package.
Classes that collaborate a lot with each other usually belong to the same package.
◆ uses UML component diagrams to physically organize the design
If you want to use a component-based approach to design, like the development approach advocated by EJB and VisualBasic, * use UML component diagrams to organize your design instead of UMLUML package diagrams. A version of the UML component diagram corresponding to figure 28 is given in Chapter 11, which is more suitable for the organization of physical designs.
Always keep in mind the practice of agile modeling (see Chapter 17): using the right artifacts.
Figure 28 UML package diagram of an organization class
◆ puts the inheritance package under the base package
The inheritance between packages is depicted in figure 28, and you can see that the inherited package is placed below the base package. This is consistent with other inheritance criteria.
◆ hierarchically organizes the UML package diagram of classes vertically
Dependencies between packages indicate that these dependent packages are interdependent in content, or that one package needs to know the structure of other packages. As shown in figure 28, the packages in the figure reflect the logical hierarchy of the system architecture. User interface classes interact with domain classes; domain classes use infrastructure classes; and some infrastructure classes access the database. Typically, this situation is organized in a hierarchical manner from the top down.
After reading this article, I believe you have a certain understanding of "what are the purposes and criteria of UML package". If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.