UML diagram and code representation of class-to-class relationships
Keywords:Oo uml, generalization, dependency, association, aggregation
The relationship between classes plays an important role in understanding object-oriented objects. I was often asked this question during interviews. Here I will introduce it.There is a relationship between the class a
inheritance relationships between classes and interfaces. Figure H
650) This. width = 650; "src =" http://pic002.cnblogs.com/images/2012/285763/2012061315050938.gif "style =" margin: 0px; padding: 0px; Border: 0px; "/>
1.1.6 implementation (realization): Expressed by hollow arrows and dotted lines
Instance (FigureI) Link specifies a contract between two entities. In other words, one entity defines a contract, and the other entity guarantees the performance of the contract. When modeling Java
that the sender passes a message to the recipient of the message, and then resumes its activity without waiting for the recipient to return the message or control. The recipient and sender of an asynchronous message are working concurrently. The return message means that the message is returned from the procedure call.Self-correlating messagesRepresents the method's own invocation and one method within an object that invokes another method, such as:Combined fragmentsRepresents a message sent wi
Most of the models in UML describe the logic and design information:
Use Case chart to understand expectations
Class diagrams can understand the Vocabulary (class and object) of the problem domain)
The status chart, InterAction diagram, and activity diagram can be used to understand how the words in the class diagram a
UML modeling in nine kinds of diagram Plus package diagram, if it is written in a blog, it is easy to write a trouble, read it is not convenient, so borrow this blog as a directory to jump to the relevant blog.
UML Modeling Detailed: Basic Concepts use case diagram Class
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 diagram is a model used to describe how object groups collaborate in certain behavior aspects over time. A sequence diagram captures the behavi
cases.The object graph shows the set of objects and the relationships between them. The object graph shows the static images of the instances, which are derived from the components established in the class diagram. The object graph deals with the static Design view or static process view of the system as if it were a class diagram. The difference is that it handles the view of a real or typical case.ACompo
Download Modelgoonjar Packagehttp://download.csdn.net/detail/u011070297/8366021After downloading the jar, copy it directly to the Dropins directory under the Eclipse installation directory and restart EclipseHow to useAfter successful installation, the File=>new=>other menu will have an extra modelgoon diagrams to create a class diagram in your existing Java project. Once created, you will find a file that generates a. MGC suffix, and now you can crea
In UML, the implementation of use cases is specified and described using an interactive diagram. The interaction diagram shows the relationship between objects and the messages processed between objects to model the dynamic characteristics of the system. There are two types of interaction diagrams: sequence diagram and
first, UML use case diagram basic conceptUML Use-case diagrams: Dynamic views that describe the functionality of a system, consisting of actors "actors", use cases, and their relationships. Use case diagrams consist of actors, use cases, arrows, and system boundaries.STARTUML, the UseCase bar displays the following: Top to bottom: package, use case, actor, association, direct, generalization, dependency, in
I. Purpose
It is used to describe the static structure of the system. In all UML diagrams, class diagrams are the most familiar to us. We may have seen them when we are not in contact with UML.
Class diagram, as early as in vs2005, there is a small icon "View class diagram" under "solution Resource Manager", and it
UML Class Diagram Relations Daquan1. AssociationBidirectional Association:C1-C2: Refers to both sides know each other's existence, can call each other's public properties and methods.This is described in the GOF design pattern book: Although this relationship is applicable in the analysis phase, we feel that it is too abstract to describe the class relationship within the design pattern, because the associa
In software systems, classes do not exist in isolation, there are various relationships between classes and classes, and UML provides different representations for different types of relationships.1. Related relationshipsAn Association (association) relationship is the most common relationship between a class and a class, and it is a structured relationship that is used to indicate that a class of objects is associated with another type of object, suc
Article Source: http://www.cnblogs.com/duanxz/archive/2012/06/13/2547801.htmlThe ways in which the relationships between objects and classes are described in UML include: Dependency (Dependency), Association (association), Aggregation (Aggregation), composition (composition), generalization (generalization), Implementation (realization) and so on.
Dependent ( Dependency ): The change of element a affects element B, but the other is not, so the rel
, the Association and the aggregation cannot distinguish syntactically, must examine the concrete logical relation.
"Code embodiment": member variable
"Arrows and points": solid lines with hollow diamonds, diamonds pointing to the whole
5. 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 departm
UML Use case diagram Summary author: tianhai110 Published: 2012-01-30 15:33 read: 100,263 recommendations: 57 Original link [Favorites]Use case diagrams are primarily used to describe the relationship between users, requirements, and system functional units. It shows a model diagram of a system function that an external user can observe."Purpose": helps the devel
UML defines the following 5 categories, 10 model diagrams.
The first class is the use case diagram, the use case diagram describes the function of the system from the user's point of view, and points out the operator of each function.
The second category is static diagrams, including class diagrams, Object diagrams, and package diagrams. The class
that emphasizes the organizational structure between objects that send and receive messages. The following image is a process of machine down.
Conclusion: The differences and connections between these graphs are very important.
Sequence Diagram Collaboration diagram
Same point:
(1) are interactive graphs that represent interactions between objects, describe an interaction, consist of a set of
Baidu, look at the review good I collected, study, really do not understand!!!The first is to review the UML in the understanding of nine kinds of diagrams: http://xhf123456789plain.blog.163.com/blog/static/172880482201192222144421/Picture use case diagram: http://xhf123456789plain.blog.163.com/blog/static/172880482201192221826110/The following is an example of a class
The first is to review the UML in the understanding of nine kinds of diagrams: http://xhf123456789plain.blog.163.com/blog/static/172880482201192222144421/Picture use case diagram: http://xhf123456789plain.blog.163.com/blog/static/172880482201192221826110/The following is an example of a class diagram (as if it were in a big talk design):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.