如何显示在UML活动图异步操作 [英] How to show asynchronous operations on UML Activity diagram
问题描述
我要绘制/文档一些客户端 - 服务器连接建立code,以便更好地理解它。有几个操作被异步在单独的线程进行(连接螺纹,数据接收线程,等等)。
I am about to draw/document for some client-server connection establishing code to better understand it. There are several operations that are done asynchronously in separate threads (connecting threads, data receiving threads, etc).
我应该让他们在不同的图表?我想preFER有一个单一的图上把握整体的看法,但不知道如何重新present其活动图上。
Should I show them on separate diagrams? I would prefer to have it on a single diagram to grasp overall view but don't know how to represent it on Activity diagram.
推荐答案
我不知道是否有这样做的正确的方式,我通过测试不同的策略,开发了我自己的方法,直到我想出了一些工作过我自己的心态。
I'm not sure if there's a correct way of doing this, I developed my own method by testing different strategies until I came up with something that worked for my own mindset.
这是我如何做到这一点:
This is how I do it:
- 主题==泳道
- 线程操作==动作/活动节点
- 临界区==对象节点
- 创建线程==叉节点
下面。一个例子形象
这篇关于如何显示在UML活动图异步操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!