Original: UML class diagram Knowledge collationUML Class DiagramUML, advanced necessary professional skills, can not understand the UML will not understand those excellent information.Here's a simple arrangementRelationship generalization relationship between classes (generalization)
Generalization (generalize): a line represented by a hollow arrow
I
(Dependency)
definition: for two relatively independent objects, when one object is responsible for constructing an instance of another object, or depending on the service of another object, the two objects are primarily dependencies.
performance: dependencies are expressed in
local variables ,
the parameters of methods , and calls to
static methods .
Example: If you're going to screw the screws, do you want to use (ie rely on) a screwdriver (screwdriver)
) operator to explain that the interactive box will think that this information is unimportant, so ignore them (directly do not draw it out), or you can use the consider (emphasis) operator to explain that the interactive box that only this information is important, and therefore will show them.
Ref (Reference)
Used to point to an interactive situation as defined in another diagram. We'll make it a box that covers the lifeline of th
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 stronger than the aggregation relationship, which requires that an
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 stronger than the aggregation relationship, which requires that
Reference: http://hi.baidu.com/1987raymond/blog/item/ae2030f35223d5c70b46e041.html
A component diagram, also known as a component diagram, shows the organization and dependencies between a group of parts for source code, executable release, physical database, and adjustable system modeling.
This article introducesVs2010Component diagram inUML component Divisor.
I
adduser () method can be defined as public Boolean adduser (userdto user). In the iuserdao method, adduser () the object of the userdto type is used as a parameter, so there is a dependency between iuserdao and userdto.
Through the above analysis, the instance reference Class 1 is shown in Figure 1:
Figure 1 Reference class diagram of the registration function
Note:When drawing a class diagram or other
In UML class diagrams, the following relationships are common:
Generalization (generalization)
Implementation (Realization)
Association (Association)
Aggregation (Aggregation)
Combination (composition)
Dependency (Dependency)
The order of strength of the various relationships:Generalization = implementation > Composition > Aggregation > Association > dependenciesFirst, generalization (generalization):The inheritance r
An old programmer of Pancake Hall 2017/10/12 9:40:59
Qingrun
Ask a question, please.
Green Run 2017/10/129:44:47
Said
Let's be polite about this. If you have any questions, just say that, as long as I have the time, I will reply directly.
An old programmer of Pancake Hall 2017/10/12 9:45:31
How can you do that, you're busy.
I know
It's about the UML sequence diagram.
General messages are left-to-right
Can y
Case modeling is a part of UML modeling and the most basic part of UML. The main function of case modeling is to express the functional requirements or behaviors of the system. To put it bluntly, it is to explain what the system is, so you don't have to worry about how to work. I think the use case chart is the best picture in the analysis phase, because the content is very macro.
Understand the elemen
The activity diagram is another common tool used by UML to model the dynamic behavior of the system. It describes the activity sequence and shows the control flow from one activity to another. An activity chart is essentially a flow chart. The activity diagram focuses on the control flow from one activity to another. It is an internal processing-driven process. T
Activity diagram, her English name is active Diagram, a workflow that describes the implementation of a business use case, which is one of the none of the diagrams used in the UML family to model dynamic aspects of the system.
To give a simple example, to build a work flow for example, first of all, we have to select an address, and then commissioned an architec
Object Class diagram: Class, attribute, connection (Association, generalization, aggregation, combination, dependency), interface, and constraint.
(Note: static attributes are underlined)
Interface ). The operation set used to describe a service of a class or component.
Data Type (datatype ). A type whose values are unchangeable, including simple built-in types (such as numbers and strings) and enumeration types (such as Boolean ).
Associ
I haven't studied UML for many days because of the exam, and I feel a little unfamiliar. So hurry up and make up for my inner emptiness. We have to take the test this afternoon, and there is still nearly two hours in the middle. Now I will share with you my understanding of the object diagrams in UML. Of course, I have concluded that I have never drawn any picture, in the future, we will add the picture in
composite relationships.
Generalization ):
Dependency: for example, logwapper depends on log,
The so-called dependency, the dependency program is relatively speaking, not necessarily because logwapper cannot "survive" without a log ".
In the specific business logic, logwapper needs logs to assist with the completion of a specific task, which is also dependent.
Class "recursion" relationship and "Triangle" Relationship
Recursive relationships are self-contained relatio
directly with each other, then these two classes should not have direct interaction, and if one of the classes needs to invoke a method of another class, the call can be forwarded through a third party.
The fundamental idea of this principle is to emphasize the loose coupling between classes, and the weaker the coupling between classes, the more beneficial the reuse, the more weakly coupled class is modified and does not affect the related classes. In the structure design of a class, each c
What is a simple Factory mode:By defining a class specifically, you are responsible for creating instances of other classes that typically have a common parent class. UML class diagram for simple Factory mode: The roles contained in the Simple factory model and the corresponding responsibilities are as follows: Factory class Creator: The core of the simple factory model, which is responsible for creating in
Overview
A deployment diagram (deployment divisor) is used to display the physical architecture of software and hardware in the system. From the deployment diagram, you can understand the physical relationship between software and hardware components and the component distribution of processing nodes. The deployment diagram shows the structure of the runtime syst
extension (Extension) use case, and then extends it from the extension point (Extension points) declared in the base use case to make the base case more concise and more focused. The extension use case adds new behavior to the base use case. An extension use case can access the properties of the base use case, so it can determine whether to execute itself based on the current state of the extension point in the base case. However, the extension use case is not visible to the base use case.Examp
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.