UML 的类型

此文来源:

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

1、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用例图 建立功能性需求。在用例图中的每个用例通过可度量的业务结果来实现高水平业务目标。参与者用用例来表示函数中角色与功能的相互作用。

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类图 用来模拟系统结构中的类,包括 类的 属性、方法 。

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序列图通过表示要填充在方法体中的编程逻辑来完成类。

Sequence diagram

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.

 

Communication diagram

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.

Activity diagram

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.

State Machine diagram

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.

Component diagram

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.

Deployment diagram

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.

Package diagram

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类图中的分类器实例实例的快照。与类图相似,对象图从一个原型的角度展示了系统的静态设计

Object diagram

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复合结构图,从微观角度对系统进行建模。

Composite structure diagram

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工具。只需拖动一个时间单位来回移动。根据您的更改自动更新定时帧

Timing diagram

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.

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值