学习笔记之UML ( Unified Modeling Language )
Unified Modeling Language - Wikipedia
- https://en.wikipedia.org/wiki/Unified_Modeling_Language
- The Unified Modeling Language (UML) is a general-purpose, developmental, modeling language in the field of software engineering that is intended to provide a standard way to visualize the design of a system.[1]
- The creation of UML was originally motivated by the desire to standardize the disparate notational systems and approaches to software design. It was developed by Grady Booch, Ivar Jacobson and James Rumbaugh at Rational Software in 1994–1995, with further development led by them through 1996.[1]
- In 1997, UML was adopted as a standard by the Object Management Group (OMG), and has been managed by this organization ever since. In 2005, UML was also published by the International Organization for Standardization (ISO) as an approved ISO standard.[2] Since then the standard has been periodically revised to cover the latest revision of UML.[3]
OMG | Object Management Group
What is Unified Modeling Language (UML)?
- https://www.visual-paradigm.com/guide/uml-unified-modeling-language/what-is-uml/
- What is Class Diagram?
- https://www.visual-paradigm.com/guide/uml-unified-modeling-language/what-is-class-diagram/
- Class Diagram - Diagram Tool Example
- A class diagram may also have notes attached to classes or relationships. Notes are shown in grey.
- In the example above:
- We can interpret the meaning of the above class diagram by reading through the points as following.
- Shape is an abstract class. It is shown in Italics.
- Shape is a superclass. Circle, Rectangle and Polygon are derived from Shape. In other words, a Circle is-a Shape. This is a generalization / inheritance relationship.
- There is an association between DialogBox and DataController.
- Shape is part-of Window. This is an aggregation relationship. Shape can exist without Window.
- Point is part-of Circle. This is a composition relationship. Point cannot exist without a Circle.
- Window is dependent on Event. However, Event is not dependent on Window.
- The attributes of Circle are radius and center. This is an entity class.
- The method names of Circle are area(), circum(), setCenter() and setRadius().
- The parameter radius in Circle is an in parameter of type float.
- The method area() of class Circle returns a value of type double.
- The attributes and method names of Rectangle are hidden. Some other classes in the diagram also have their attributes and method names hidden.
-
What is a Use Case Diagram?
- https://www.visual-paradigm.com/guide/uml-unified-modeling-language/what-is-uml/#use-case-diagram
- A use-case model describes a system's functional requirements in terms of use cases. It is a model of the system's intended functionality (use cases) and its environment (actors). Use cases enable you to relate what you need from a system to how the system delivers on those needs.
看 25 张图学 UML