UML的基本图(二)
Both sequence diagrams and communication diagrams are kinds of interaction diagrams. An interaction diagram shows an interaction, consisting of a set of objects or roles, including the messages that may be dispatched among them. Interaction diagrams address the dynamic view of a system. A sequence diagram is an interaction diagram that emphasizes the time-ordering of messages; a communication diagram is an interaction diagram that emphasizes the structural organization of the objects or roles that send and receive messages. Sequence diagrams and communication diagrams represent similar basic concepts, but each diagram emphasizes a different view of the concepts. Sequence diagrams emphasize temporal ordering, and communication diagrams emphasize the data structure through which messages flow. A timing diagram (not covered in this book) shows the actual times at which messages are exchanged.
序列图和通信图都属于交互图.交互图表达的是这样一个交互:由一组对象和角色组成。消息在它们之间传递.交互图处理系统的动态视图.序列图作为交互图。它更着重消息发送时的时间顺序;通信图作为交互图。则更着重对象或角色在发送和接收消息时的组织结构.序列图和通信图表达的基本概念非常相似,但每一个图注重的是不同的概念视图:序列图着重的是时间顺序,而通信图着重的是消息流的数据结构.时序图(超出了本书范围)表达的是消息交换时的实际时间.
A state diagram shows a state machine, consisting of states, transitions, events, and activities. A state diagrams shows the dynamic view of an object. They are especially important in modeling the behavior of an interface, class, or collaboration and emphasize the event-ordered behavior of an object, which is especially useful in modeling reactive systems.
状态图表达的是一个状态机,由状态,传输。事件和活动组成.一个状态图显示对象的动态视图.在构建接口,类或是交互的行为时它们尤其重要,它注重对象行为所发生的事件顺序。这在构建反应系统时特别实用.
An activity diagram shows the structure of a process or other computation as the flow of control and data from step to step within the computation. Activity diagrams address the dynamic view of a system. They are especially important in modeling the function of a system and emphasize the flow of control among objects.
活动图显示过程的结构,或是其他计算,如控制流和数据计算过程.活动图处理系统的动态视图.在构建系统的功能时尤其重要,重点是对象间的控制流.
A deployment diagram shows the configuration of run-time processing nodes and the components that live on them. Deployment diagrams address the static deployment view of an architecture. A node typically hosts one or more artifacts.
部署图显示执行时处理节点的配置和节点中的活动组件.部署图处理体系结构的静态部署视图.一个节点通常指包括有一个或很多其它个产品的主机.
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
· 从问题排查到源码分析:ActiveMQ消费端频繁日志刷屏的秘密
· 一次Java后端服务间歇性响应慢的问题排查记录
· dotnet 源代码生成器分析器入门
· ASP.NET Core 模型验证消息的本地化新姿势
· 开发的设计和重构,为开发效率服务
· 从零开始开发一个 MCP Server!
· Ai满嘴顺口溜,想考研?浪费我几个小时
· 从问题排查到源码分析:ActiveMQ消费端频繁日志刷屏的秘密
· .NET 原生驾驭 AI 新基建实战系列(一):向量数据库的应用与畅想