Four Relationships in UML: dependency, association, generalization, and implementation

Source: Internet
Author: User
UML has four relationships: dependency, association, generalization, and implementation.
(1) dependency is the semantic relationship between two things. Changes in one thing (independent thing) will affect the semantics of the other thing (dependent thing. On the graph, draw a dependency into a dotted line that may have a direction.
(2) Association is a structural relationship that describes a group of links that are links between objects. Aggregation is a special type of association that describes the structural relationship between the whole and the part. Graphical representation of association and aggregation 1 O 1 3 and 1 O 1 4. In Association, you can mark the repeatability and role ).
(3) Generalization is a special/general relationship. Objects of special elements (child elements) can replace objects of general elements (parent elements). In this way, the child element shares the structure and behavior of the parent element. On the graph, draw a generalized relationship into a solid line with a hollow arrow, which points to the parent element, 1 O 1 5.
(4) realization is the semantic relationship between class elements. One Class element specifies the contract that is executed by another class element. There must be an implementation relationship between interfaces and the classes or components that implement them, and between use cases and collaboration that implement them. On the graph, draw an implementation relationship into a dotted line with a hollow arrow.

These four relationships are the basic relational things that can be included in the u ml Model. They also have variants. For example, dependency Variants include refinement, tracing, inclusion, and extension.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.