In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you the "sample analysis of UML composition rules and public mechanisms", the content is simple and clear, hoping to help you solve your doubts, let the editor lead you to study and study the "sample analysis of UML composition rules and public mechanisms" this article.
UML composition rules
Naming: that is, naming things, relationships, and diagrams. Like any language, a name is an identifier
Scope: similar to the scope of a class.
Visibility: Public,Protected,Private,Package
UML constitutes a public mechanism
1. Specification description
Each part of the graphical representation is followed by a specification (also known as a detailed description) that is used to literally describe the syntax and semantics of the building blocks. This idea separates visual views from text views:
2. UML modification and general division.
In order to better represent these details, UML components also provide some decorative symbols, such as symbols with different visibility, and abstract classes represented in italics.
General division of UML:
1) the division of classes and objects: a class is an abstraction and an object is a concrete instance.
2) the separation of interface and implementation: the interface is a declaration, a contract and the entrance to the service, while the implementation is responsible for implementing the contract provided by the interface.
3. Extension mechanism in the composition of UML
Stereotype: in the actual modeling process, it may be necessary to define some building blocks specific to a particular domain or system.
Tag values are used to add new features to things. The tag value is represented by a string in the form of "{tag information}"
Constraints are mechanisms used to add new semantics or change existing rules (free text and OCL representations). The representation of a constraint is similar to the tag value method, using a string enclosed in curly braces, but it cannot be placed in an element, but near the related element.
4. UML views and diagrams
Function remarks of figure name
Class diagram describes the class, the characteristics of the class and the relationship between the classes UML1 original
An informal UML1 diagram describing a snapshot of each object in a system at a point in time.
Composite structure diagram describes the run-time decomposition of classes UML2.0 added
Component diagram describes the structure and connection of components UML1 original
The deployment diagram describes the deployment UML1 original on each node
Package diagrams describe informal diagrams in UML, a hierarchical structure at compile time
The use case diagram describes how the user and the system interact with the original UML1
Activity diagrams describe process behavior and parallel behavior UML1 original
The state machine diagram describes how events change the lifecycle of an object UML1.
The sequence diagram describes the interaction between objects, focusing on the original sequence UML1.
Communication diagrams describe interactions between objects, with emphasis on connecting collaboration diagrams in UML1
Timing diagrams describe the interaction between objects, focusing on the addition of timing UML2.0
Interactive overview diagram is a hybrid UML2.0 of sequence diagram and activity diagram.
The above is all the contents of the article "sample Analysis of UML composition rules and Public mechanisms". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.