如何在 UML 活动图上显示异步操作
我即将绘制/记录一些客户端-服务器连接建立代码,以更好地理解它。 有几个操作是在单独的线程中异步完成的(连接线程、数据接收线程等)。
我应该在单独的图表上显示它们吗? 我更愿意将其放在单个图表上以掌握整体视图,但不知道如何在活动图上表示它。
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).
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定是否有正确的方法,我通过测试不同的策略开发了自己的方法,直到找到适合我自己心态的方法。
我是这样做的:
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:
您可以使用半箭头来显示异步消息调用,而不是使用全箭头。 如图
Instead of using full arrowheads you can use half arrowheads to show an asynchronous message call. As shown