Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the seven basic UML components?

2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces to you what are the seven basic UML components, the content is very detailed, interested friends can refer to, hope to be helpful to you.

UML element

The explanation in the previous section is to classify UML graphics according to their functions. When drawing UML graphics, our view is not a function view, but a component view above the function view. Class diagrams and use case diagrams are functionally different, but from a SVG point of view, they are made up of boxes, lines, and text. Different types of UML diagrams have their own drawing elements. In the case of a high level of abstraction (box, line, text abstract level *), the collection of components belonging to the same class of UML graphics will be very small; the lower the level of abstraction, the larger the collection. But too low-level abstraction is meaningless (in the case of *, every UML diagram can be regarded as a UML element, which is * body). The key is how to find a compromise point that not only ensures a small set of components, but also facilitates drawing. The basic drawing function provided by SVG can also be used for UML drawing, but it will be less efficient to do so. The establishment of a basic UML graphic component library will greatly improve the drawing quality and speed. In the existing UML modeling tools, there are relatively clear classification of UML modeling components. Let's take VisioProfessional2002 as an example to take a look at the component classification of the UML model diagram.

In the Visio software mold, including data flow model diagram, program structure diagram, ROOM, Jackson diagram and UML model diagram and so on. There are two more functional categories of UML diagrams in Visio than those commonly used above, package diagrams and static structure diagrams. Package diagram is an effective mechanism to express system architecture. It can be used to divide the system into small, manageable subsets, and it can be composed of any kind of UML diagram. Static structure diagrams include concept diagrams and class diagrams, which represent real-world concepts and relationships between concepts, focusing on relationships and attributes rather than methods.

Figure 1 is the basic elements of the UML diagram divided by Visio according to the functional classification method. As you can see, this classification method has a lot of overlap. For example, packages are regarded as basic components in four UML diagrams, such as use case diagrams. However, on the basis of clear classification, users can improve the speed of accessing template components; ignoring the classification of UML functions, the full access set should contain about a hundred members, and the efficiency of accessing components may be low.

Alternatively, we can combine this method of classification by function, grouping UML basic components according to visual features, and then grouping according to functions under each visual feature. Using SVG to draw UML graphics may be a better method of classification and reuse. In this way, we can not only ensure that users can quickly access UML components, but also easy to manage within SVG-based modeling tools. For example, we can classify as follows:

A humanoid element that represents the protagonist in the use case diagram

An oval component, that is, a use case in a use case diagram

Corner components, including annotations and constraints

Package components (including packages and subsystems), node elements (cube shapes), and component elements

Drawer rectangular components, this group of components have many variants, the difference is that the top label default text and the number of grid layers will be different, including long and short format

Circular components, including "initial state", "final state", "detailed history" and "brief history"

Rounded rectangular elements and diamond elements

Straight lines with all kinds of arrowheads, including solid and dashed lines

A class of curves with various arrowheads, including real curves and virtual curves.

On the seven basic UML components are shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report