Interacion Diagram(交互图) = (Sequence Diagram)顺序图 + (Collaboration Diagram)协作图

Interaction Diagram is used to describe some type of interactions amongthe different elements in the model.

This interactive behavior is represented in UML by two diagrams known as Sequence Diagram and Collaboration Diagram.

  1. ★ Sequence Diagram emphasizes on time sequence of messages
  2. ★ Collaboration Diagram emphasizes on the structural organization of the objects
Purpose of Interaction Diagrams

The aim: Visualize the interactive behavior of the system.

Hence, the solution is to use different types of models to capture the different aspects of the interaction.

The purpose of interaction diagram is -
* To capture the **dynamic behavior** of a system
* To describe the **message flow** in the system
* To describe the **structural organization** of the objects
* To describe the **interaction** among objects

How to Draw an Interaction Diagram?

the purpose of interaction diagrams is to capture the dynamic aspect of a system.

We need to understand what a dynamic aspect is and how it is visualized.

  • the time sequence of the message flow from one object to another =》 Sequence Diagram
  • the organization of objects in a system taking part in the message now =》 Collaboration Diagram
Following things are to be identified clearly before drawing the interaction diagram
* Objects taking part in the interaction
* Message flows among the objects
* The sequence in which the messages are flowing.
* Object organization

The Sequence Diagram

the sequence diagram has four objects(Customer, Order, SpecialOrder and NormalOrder)

The Collaboration Diagram

it shows the object organization as seen in the following diagram.
In the collaboration diagram, the method call sequence is indicated by some numbering technique.

posted @   Felix_Openmind  阅读(580)  评论(0编辑  收藏  举报
编辑推荐:
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}
点击右上角即可分享
微信分享提示