The UML class diagram is the basis for learning the design pattern. Through the UML class diagram, you can better communicate with everyone and easily express your own design ideas. It is like Mandarin, is a standard language.
Currently, there are two popular tools: Rational Rose and Microsoft Visio, both of which are
the dependent package.
Note: The package marked with {Global} is a universal package, indicating that all other packages in the system depend on this package.
Generalization: express the general and special relationships between things. If there is a general relationship between the two packages, it means that the special packages must follow the interface of the general package. {Abstract} indicates that it defines an Interface
10. Use the
2016-06-07 22:46:16The following is a brief introduction to UML Class Diagram: (figure is intercepted, you can use the UML tools to draw)1. Class diagram describing classClass: PersonProperty: Name Age SexAccess rights:-Private +: Indicates public protected: representsMethod: GetName (): String SetName (name:string) ge
1. IntroductionIt has been two years since I began to learn programming from a freshman year. From the initial study of the Html,js,javese, to Javaee,android, I can also write some toys. The learning process also unconsciously understood some of the so-called design Patterns , and now intends to learn the system. Learn to book the art of Design mode----------------------the software developer. The so-called design patterns, that is, the predecessors of a similar problem of the abstract solution
The UML activity diagram records the logic of a single operation or method, a single user case, or a single business flow. To create a UML activity diagram, you must perform the following steps repeatedly to modify the sixth chapter of the object entry level 2.
Step 1: define the range of the activity
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
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
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
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
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
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
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
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.