UML2.0 detailed tutorial (with examples)

insert image description here

1. Wikipedia definition

Unified Modeling Language (English: Unified Modeling Language, abbreviated as UML) is a non-proprietary third-generation modeling and specification language. UML is an open method for specifying, visualizing, constructing, and writing the artifacts of a developing, object-oriented, software-intensive system. UML presents a series of best engineering practices that have been proven effective in modeling large-scale, complex systems, especially at the software architecture level.

The language was developed at Rational Software Corporation between 1994 and 1995 by Grady Boucher, Ivar Jacobsen and James Rambo, and further developed in 1996. UML intends to be the standard modeling language for concurrent and distributed systems.

2. Model

  • Functional Model : Demonstrates the functionality of the system from the user's point of view, including use case diagrams.

  • Object model : uses concepts such as objects, attributes, operations, and associations to show the structure and foundation of the system, including class diagrams and object diagrams.

  • Dynamic Model : Shows the internal behavior of the system. Includes sequence diagrams, activity diagrams, and state diagrams.

It is very important to distinguish between UML models and UML diagrams. UML diagrams, including use case diagrams, collaboration diagrams, activity diagrams, sequence diagrams, deployment diagrams, component diagrams, class diagrams, state diagrams, etc., are the graphical representation of information in the model. But UML models exist independently of UML diagrams. The current version of UML only provides the exchange of model information, but not the exchange of diagram information.

3. Graphics

A total of 14 diagrams are defined in UML 2.2.
insert image description here

Structural diagrams ( Structure diagrams ) emphasize systematic modeling:

  • static diagram
  • implementation diagram
    • Component Diagram
    • deployment diagram
  • Sectional view
  • Composite Structure Diagram

Behavior diagrams emphasize events triggered in the system model:

Interaction diagrams ( Interaction diagrams ), a subset of behavioral diagrams, emphasize the flow of data in the system model:

  • communication diagram
  • Interaction Overview Diagram (UML 2.0)
  • Sequence diagrams (UML 2.0)
    emphasize the flow of data in a system model:

Continuously updating...

Guess you like

Origin blog.csdn.net/weixin_48627356/article/details/121383849