In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you the concept and function of the unified modeling language UML, which is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
I would like to introduce to you the unified modeling language UML, which mainly includes the basic concepts and functions of UML.
Overview of Unified Modeling language UML
1. Basic concept
UML (Unified Modeling language, UnifiedModelingLanguage) is an iconic software design language published by OMG (ObjectManagementGroup) in 1997. It is a graphical notation (notation) for drawing software concept maps. People can use it to draw graphs, to represent a problem domain of a planned software design, or to use these diagrams to represent a completed software implementation.
The unified modeling language UML integrates many object-oriented modeling languages, methods and processes that existed at that time, mainly including:
BoochMethod
Object-OrientedSoftwareEngineening
Schlaer-Mellor
Coad-Yourdon
ObjectModeingTechnique
UML can be divided into three different layers: concept layer (Conceptual), specification layer (Specification) and implementation layer (Implementation).
The graphics on the conceptual level are not strictly related to the source code, they are related to human natural language. They are used to describe concepts and abstract shorthand about pre-existing human problem areas. They do not have to follow strict semantic rules, so their meaning will be ambiguous and the topic can be explained.
The graphics of the specification layer and the implementation layer are obviously related to the source code. In fact, the diagram of the specification layer is intended to be converted into source code. Similarly, the diagram of the implementation layer is intended to describe the existing source code. At these levels of graphics, there are many rules and semantics to follow, these graphs are less ambiguous, basically have a strict format.
For example: a Dog is an animal (Animal).
A unified modeling language (UML) that represents a conceptual level of this sentence is shown below
This diagram depicts two entities called Animal (animal) and Dog (dog) connected by a generalization relationship. Animal is a generalization of Dog, and a Dog is a specific Animal. This is the meaning of all this picture, and there is no other meaning to be inferred from it. This conceptual model does not involve any computers, data processing or programs. We can claim that our pet dog is an animal, or we can talk about the biological classification that belongs to the animal kingdom. Therefore, this picture can be explained by the theme.
However, this diagram has a clearer meaning at the specification level and the implementation level:
This code defines Animal classes and Dog classes connected through inheritance relationships, and this specification model describes part of the program.
A diagram at a conceptual level does not define the source code and should not define the source code. A diagram that describes the specification level of a problem solution, and does not look for a description of any problem like the conceptual layer.
two。 The function of Unified Modeling language UML
For a software system, UML has the following main functions [BOOCH99]: visualization function, description function, construction function and documentation function.
Visualization (Visualizing) function
This is very valuable, and it is much easier to evaluate the dependency structure of a system from a visual diagram than from code.
Visualization can promote the understanding of problems and facilitate designers to communicate and communicate with each other.
It is relatively easy to find logic errors that may exist in the design drawings, and to avoid and reduce accidents.
Description (Specifying) function
Provides a general, precise, unambiguous mechanism to describe a software system.
Build (Costructing) function
UML provides its own standard syntax rules. You can use modeling tools to interpret a system design model and map the design model to a computer language such as Java. In other words, it can speed up the design and implementation of the system.
The general appearance of the system can be reflected by the unified modeling language UML. In this way, when the system design is completed first, it is easier to find the reusable parts, thus reducing the development cost.
Documentation (Documenting) function
Using the unified modeling language UML for design can generate system design documents at the same time. Documentation can help developers familiarize themselves with the system more quickly and save learning time.
The above is what the unified modeling language UML concepts and functions are, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.