In UML class diagrams, the following relationships are common: generalization (generalization), implementation (realization), Association (association), Aggregation (Aggregation), composition (composition), dependency ( Dependency)1. generalization (generalization)Generalization relationship: An inheritance relationship that represents a general and special relationship that specifies how subclasses can cha
(Transferred from: http://www.open-open.com/lib/view/open1328059700311.html)In UML class diagrams, the following relationships are common: generalization (generalization), implementation (realization), Association (association), Aggregation (Aggregation), composition (composition), dependency ( Dependency)1. generalization (generalization)Generalization relationship: An inheritance relationship that represe
I found a free pluggin the can generate class diagrams with Android Studio. It ' s calledsimpleuml.On Mac:go toAndroid Studio-Preferences-PluginsOn Windows:go toAndroid Studio-File-Settings-Pluginsclick onbrowse repositories ... and search Forsimpleumlce (CE means Community Edition , this was what Android Studio was based on). Install it, restart, then you can do a right click on the folder containing the classes you want to visualize, and select A
between the whole and the part . , Without a company, there's no division. a combinatorial relationship is a relationship that is stronger than the aggregation relationship, which requires that an object representing the whole in an ordinary aggregation relationship be responsible for the life cycle of the object representing the part."Code embodiment": member variableArrows and points: solid lines with solid diamonds, diamonds pointing to the whole6. Dependency (Dependency)"dependency": a rel
is executed, and the extension use cases are not necessarily executed after the underlying use case is executed, and can be selected for execution or not. For example, when the information in the database is modified, the use case of saving the information is bound to be executed, and in this use case, the use case of retrieving the password is extended: The user's password cannot be forgotten and the password will not be retrieved. The contrast between the two can be understood. There is also
In the first section, we implemented 5 classes. In this section, we then show you how to use UML class diagrams to design the remaining classes. To reduce space, this section focuses on UML class diagrams and applications, the Java implementation code is no longer described in detail.
Six, Cgpoint class
The Cgpoint c
the interface of the component implementation. The introduction of interfaces is the interface used by the components. Six, the significance of the component diagram(1) The source code is modeled, it can be divided into several modules or subsystems to be processed.(2) Modeling the relationships between executables, which can clearly describe the dependencies between executables. Seventh, the drawing of component drawing(1) To determine the external interface of the subsystem, the process subsy
in constructor method Foot = new Foot () ;}}public class Foot {public Foot () {//TODO auto-generated constructor stub}}Explanation:The foot class is specifically instantiated in the constructor method of the person class, and once the person instance is generated, the foot instance is also generated, and when the instance of the person dies, its foot instance dies, just like in real life, generating a man, and will accompany the generation of the feet, But if that person hangs up, its feet will
variables
[Arrow and direction]: solid line with hollow diamond. The diamond points to the whole.
5.Combination(Composition)
[Composite relationship]: it is the relationship between the whole and the part, but the part cannot exist independently from the whole. If the relationship between a company and a department is a whole and a part, no department exists without the company.
A composite relationship is a type of association relationship, which is stronger than an aggregation relationship.
VB, we often use public and private when defining event methods, which is also useful in the course of class learning.
In VB, public indicates public, which is a global variable and can be applied to any form or module. Private is only used for the current form or module. However, in a class, we often define the visibility of attributes and operations, which is also needed, but slightly different. Attributes and Operations declared as public can be viewed, used, and updated outside the class. D
relationship]: it is the relationship between the whole and the part, but the part cannot exist independently from the whole. If the relationship between a company and a department is a whole and a part, no department exists without the company.
A composite relationship is a type of association relationship, which is stronger than an aggregation relationship. It requires that the object representing the whole in a general aggregation relationship represents the lifecycle of some objects.
[Code
Dragon is the first of ancient Chinese gods, the Legend of the Dragon has nine children, they have their own unique temperament, their respective roles, the benefit of the people. Like our UML, her nine children also have their own unique skills, first of all, today we are going to learn about, use case diagram--the core of nine children, her main function is to describe the user's needs, from the user's perspective to describe the function of the sys
1. Turn from: http://blog.sina.com.cn/s/blog_5bd6b4510101585x.htmlWhen drawing class diagrams in Visio, we generally need to draw interfaces and implementation classes and indicate their implementation relationships . But for a long while did not realize the relationship, only the generalization relationship (inheritance relationship), how to do? In fact, it is very simple, as follows:First step: Draw the interface. Step Two: Drag a class from the Vis
solid line with a hollow arrow representation;
Between the car and the engine is a combination of relations, using a solid line with the arrows to express;
Between the student and the class is the aggregation relation, uses the solid line with the hollow arrow to represent;
The relationship between the student and the ID card is related, and a solid line is used to express it;
The student needs to go to school to use the bicycle, is a kind of dependence with the bicycle, uses th
functions, and generally adopts the verb-object phrase. 4. Determine the relationship. It is more difficult to distinguish between extension and inclusion.Include a subordinate relationship, something that is bound to happen, a naming convention, and a similar one. Extensions, however, emphasize the addition of functions that do not necessarily occur. For example: For the doctor use case, the general situation will be taken medicine, only the case of serious illness only infusion, so the medici
logical relationship must be investigated.
[Code embodiment]: member variables
[Arrow and direction]: solid line with hollow diamond. The diamond points to the whole.
5.Combination(Composition)
[Composite relationship]: it is the relationship between the whole and the part, but the part cannot exist independently from the whole. If the relationship between a company and a department is a whole and a part, no department exists without the company.
A composite relationship is a type of associati
a global variable of the type being associated with the class;A directional Association (directedassociation):ClassA related to ClassBis a particular form of association, one-way, and at the level of the code, in the form of a class attribute of the associated class B in the Association class a or an association class a Refers to a global variable of type B that is associated with the class;Aggregation relationship (Aggregation):Computer has-a CPUAggregation is a special case of association r
actually the most detailed form of case split in the flowchart. It is also a basis for my subsequent proposal of a measurable performance management model.
Ziqi Donglai 10:21:46
Big! Sorry. I haven't bought your book yet.
Redeem
Fraud
The case description document is not the same as its name. Only use case, right ??
You can also have other UML diagrams.
Such as sequence and collaboration ??
Qingrun 10:22:3
In UML class diagrams, the following relationships are common: generalization (generalization), implementation (realization), Association (association), Aggregation (Aggregation), composition (composition), dependency ( Dependency)
1. Generalization (generalization)
Generalization relationship: An inheritance relationship that represents a general and special relationship that specifies how subclasses can c
company, there's no division. Combination A relationship is a relationship that is stronger than an aggregation relationship, and requires that an object representing the whole in an ordinary aggregation relationship be responsible for the life cycle of the object representing the part. "Code embodiment": member variable Arrows and points: solid lines with solid diamonds, diamonds pointing to the whole 6. Dependency (Dependency) "dependency": a relationship that is used , so try not to use t
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.