In the process of learning UML class diagram, UML class diagram relation is a problem that must be mastered, and there are six kinds of relationships in UML definition: dependency, genus, association, implementation, aggregation and combination. The definitions and represent
, so AddUser () The function prototype of a method can be defined as: public boolean addUser (userdto user), in Iuserdao's Method AddUser () takes the Userdto type object as a parameter, so Iuserdao and userdto have dependencies.From the above analysis, the example reference class diagram is shown in Figure 1:Figure 1 Registration function Reference Class diagramNote: When you draw a class diagram or other
connection. The constraint is represented as {}.4. Typically in UML, the name of the specific instance is underlined, and the class, not the instance, is represented if there is no underscore. Note that the rule has an exception for instances in the interaction diagram, and the instance is represented by a lifeline diagram, with no underscore in its name.Typical
.
Constraints
Specifies one or more rules to satisfy for some classes and interfaces, using free-text identifiers enclosed in curly braces in UML.
Package
Packages in UML correspond directly to packages in Java to represent hierarchies and organizational content. Relationship of Class diagram There are four types of relat
Implement UML sequence diagram and uml Sequence
This article begins to discuss issues at the code level. It mainly refers to the design and implementation of the markdown function.
This article begins with the code outside markdown:UML sequence diagrams are obtained from https://github.com/bramp/js-sequence-diagrams copy.
For example, this
syntactically, must examine the concrete logical relation."Code embodiment": member variable"Arrows and points": solid lines with hollow diamonds, diamonds pointing to the whole5. Combination (composition)"Combinatorial relationship": the relationship between the whole and the part, but part cannot leave the whole and exist alone. If the company and the Department is a whole and part of the relationship, no company there is no department.A combinatorial relationship is a relationship that is st
ObjectiveMost of the UML describes the logic and design of the information. The implementation diagram is used to describe the realization of the narrative information. The implementation diagram contains a deployment diagram and a component diagram.Component diagram1. ConceptComponent
Various diagrams in UML are an important part of the UML model. In recent articles, I will introduce nine important diagrams in UML. The general content is shown in the following directory.
1. use case diagram, class diagram, and object
In the previous article "UML System Analysis and Design 02-use case diagram and activity diagram (I)", we mainly explained the use case analysis and drawing methods and techniques in requirement analysis, however, the use case diagram only tells us what the system wants to do. As for how to do it, there is no intuitive
Blog Park Flash Home new essay contact management subscribe Essays-295 Articles-111 reviews-6633 STARUML---Recommend a uml tool (very good very strong)
Last week a friend of mine, who is also a colleague of the company, recommended a UML tool for me to start using, but the more I used it, the more I felt good,
I even want to delete the rose on the machine, directly with this software, I heard that this soft
device or a software system running on a hardware device.
-UML Representation -node instance: the instance form of the node. The format is instance Name:node, similar to the class instance format, preceded by a colon with an instance name or without an instance name -node type : Depending on whether the node is capable of-Processor: A node with the ability to perform software operations such as calculation and execution-Devi
Uml-unified Model Language Unified Modeling Language, also known as standard modeling language. is a language used to visualize modeling software-intensive systems.There are three main models in UML system development:Functional Model: Display the function of the system from the user's point of view, including use case diagram.Object model: Using the concepts of object, attribute, operation and correlation
lower right corner of the class name will have an (abstract), if the person is an abstract class, then the UML class diagram is as followsProperty nameThe attribute names in UML are member variables in Java, and of course a class can have no attributes or any number of properties. modifiers, types, and default values for member variables in Java classes can be r
, and generalized, mainly involving components and components, between components and interfaces, and between interfaces and interfaces.
implementation : The relationship between a component and an interface
dependencies : The relationship between components and components
If there is a dependency on two classes in two components, the relationship between the two components can be expressed as a dependency relationship
generalization : between compon
Through the previous blog: the use case diagram of UML diagrams, we have completed the division of a software system use case and function module. Now we need to know how to further improve the static structure of the system.
With the UML tool, we can obtain the static diagram of the static structure of the software s
can be a signal, event, condition Change (a-in some condition) and time expression.Policing Conditions (Guard Condition): When the police condition is met, the event will not cause a transfer (Transition). result (Effect): The result of the object's state transition. Actionactions (Actions) in a UML state diagram are an executable atomic operation, which means that the action is non-interruptible and its e
Document directory
Add a self-called Message Element
Use the call Message Element
Use auto-extended message options
Use to create a message symbol
Add asynchronous Link
Use a combination of fragment Elements
Save Graph
A sequence diagram describes the interaction modes between objects in chronological order. It uses the "lifeline" of objects and the messages passed between them to show how objects participate in interaction.
A sequence
UML Construction Design Model A. Class diagram two. Package Diagram three. Assembly Diagram Four. Deployment Diagram I. Class Diagram 1. Classes: Classes are represented by dig: class names, class properties, operations of cla
PrefaceIn the summary of the UML state diagram, the activity diagram and the state diagram are closely related. It also has a lot in common with flowcharts.definitionAn activity diagram is a special form of a state diagram. All or
the relationships between classes
Inheritance Relationship
An inheritance relationship is the most understandable relationship. The picture is like this. The object-oriented argument is the is-a relationship. That is to say Class2 is a Class1. In C + + we say that Class2 is a derived class of Class1, or that Class1 is the base class for Class2.
Aggregation and Composition
Start with a relationship that is easy to understand. There is often a case where a class is a data member of another class.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.