Full Analysis of UML-type drawing

Source: Internet
Author: User
Http://developer.51cto.com

    The UML class drawing method is the basis for learning design patterns. Through UML class diagrams, you can better communicate with everyone and easily express your own design ideas. It is like Mandarin, is a standard language.

This section introduces the UML class drawing method, which mainly includes UML class drawing elements and link painting. We hope that you will have a certain understanding of the UML class drawing method through the introduction in this article.

Software Design: UML-type Drawing Method

Learning the design pattern and drawing a UML class diagram is the foundation. Through a UML class diagram, you can better communicate with everyone and easily express your own design ideas. It is like Mandarin, is a standard language.
There are two popular tools: rationalrose and microsoftvisio, both of which are easy to use. You can choose which tool you like. I like Microsoft software, so Microsoft visio2003 is my first choice.

Common elements of UML diagrams.

Class:

A class is a complex data type that encapsulates different types of data and operations related to the data.

Cperson is an abstract class that cannot be instantiated, while cfamily can be instantiated.

Interface:

An interface is a set of operation methods called by the caller.

Cperson can also be used as an interface.

Common relationships in UML diagrams.

Generalization ):

In a word, it is an inherited representation. Is-.

Dependency ):

The dependency in the UML Graph Method is a usage relationship. It indicates that the change of one thing specification may affect another transaction that uses it, but the opposite is not true. The dependency representation is a dotted arrow. The element at the end of the arrow depends on the element in the header of the arrow, which is the relationship between use-.

Association ):

Describes the connection between a class and a class. It is the relationship between has-.

Aggregation ):

Aggregation is a special case of association. If the relationship between classes has the characteristics of "whole and local", such association is called aggregation. It often has "include", "...... Meaning.

I usually refer to several situations that are commonly used in UML-type diagrams. Of course, I still have a lot of knowledge about UML. For example, there are many types of association.

[Edit recommendations]

  1. Diagram of the relationship between classes and classes in a UML diagram
  2. Learning notes comprehensively understand the composition of UML class diagrams
  3. Brief Introduction to the creation steps of various UML diagrams in UML
  4. UML class diagram symbol Parsing
  5. UML User Guide-UML diagram Introduction

 

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.