天天看點

UML 的類型

此文來源:

https://www.visual-paradigm.com/features/uml-tool/

1、UML的種類

UML 的類型

2、每種種類的例子

2.1 用例圖:

Use Case Diagram

Capture functional requirements with UML use case diagram tool. Each use case in a use case diagram represents a high level business goal that yields a measurable result of business values. (UML) Actors are connected with use cases to represent the roles that interact with the functions.

用UML用例圖 建立功能性需求。在用例圖中的每個用例通過可度量的業務結果來實作高水準業務目标。參與者用用例來表示函數中角色與功能的互相作用。

UML 的類型

2.2  Class Diagram 類圖

Model the structure of system by modeling its classes, their attributes and operations in a UML class diagram. UML class diagram is a blueprint of the classes(code level) required to build a software system. Programmers implement a software system with the help of both the class diagram and the class specification.

UML類圖 用來模拟系統結構中的類,包括 類的 屬性、方法 。

UML 的類型

2.3、Sequence Diagram 序列圖

Visualize the interactions between users, systems and sub-systems over time through message passing between objects or roles. If class diagram represents the skeleton of classes by showing their attributes and methods, UML sequence diagram complete the classes by representing the programming logic to be filled in methods' body.

通過對象或角色之間的消息傳遞,可視化使用者、系統和子系統之間的互相作用。如果類圖通過顯示類的屬性和方法來表示類的骨架,那麼UML序列圖通過表示要填充在方法體中的程式設計邏輯來完成類。

UML 的類型

2.4、Communication Diagram 互動圖

Collaboration between objects in runtime can be modeled in the UML tool, with a UML communication diagram. In a communication diagram, objects, called lifelines, are connected to represent the need of communication during the execution of an interaction. Messages can be added on top of the connectors to list the calls made from and to those lifelines.

UML 的類型

2.5 Activity Diagram  行為圖

Use UML activity diagram, a flowchart-based diagram to model the flow of control. Partition actions according to the type of participant involved.

UML 的類型

2.6  State Machine Diagram 狀态圖

State machine diagram is a critical design model for event-driven systems. Well-designed state machine shows accurately the essential states of objects as well as the triggers of state change, which facilitates the development of error-free state machine.

UML 的類型

2.7 Component Diagram 元件圖

Components diagrams are used to model the structure of systems by showing how little parts of the system gear up in forming a bigger part, or forming the entire software systems.

UML 的類型

2.9 部署圖 Deployment Diagram

Models the physical deployment of software components with UML deployment diagram. In deployment diagram, hardware components (e.g. web server, mail server, application server) are presented as nodes, with the software components that run inside the hardware components presented as artifacts.

UML 的類型

2.10 檔案結構圖 Package Diagram

Arrange and organize model for large-scale project with package diagrams. Package diagram is also good in visualizing structure and dependency between sub-systems or modules.

UML 的類型

2.11 對象圖 Object Diagram

View a snapshot of instances of classifiers in UML class diagrams. Similar to class diagrams, object diagrams show the static design of a system from a prototypical perspective.

檢視UML類圖中的分類器執行個體執行個體的快照。與類圖相似,對象圖從一個原型的角度展示了系統的靜态設計

UML 的類型

2.12 Composite Structure Diagram 複合結構圖

Visualize the internal structure of a class or collaboration with UML composite structure diagram. Model a system from a micro point-of-view using UML composite structure diagram.

用UML複合結構圖可視化類或協作的内部結構。利用UML複合結構圖,從微觀角度對系統進行模組化。

UML 的類型

2.13 Timing Diagram

Timing diagrams model the behavior of objects throughout a given period of time. It is a commonly used UML tool for designing real-time and distributed systems. Just drag to move a time unit back and forth. Have a timing frame updated automatically according to your change.

時間圖在給定的時間段内模拟對象的行為。它是一種常用的用于設計實時和分布式系統的UML工具。隻需拖動一個時間機關來回移動。根據您的更改自動更新定時幀

UML 的類型

Interaction Overview Diagram

View the sequence of interactions with UML interaction overview diagram. Interaction overview diagram helps represent complex scenario that involve multiple interactions presented as multiple UML sequence diagrams.

繼續閱讀