UML 序列图中的问题
我需要为客户端服务器(Web 应用程序到 TCP 服务器)架构应用程序绘制序列图。我有一些问题
- 可以在
Web 浏览器 -> 上绘制图表吗?服务器场景?
- 我可以画
socket
连接图吗? - 我可以绘制
TCP服务器中的中间过程的序列图
吗?
我应该遵守哪些规则?
I'm required to draw a sequence diagram for a client server (Web app to TCP server) architectural application. I have few problems
- Is it fine to draw diagram to
Web browser -> Server scenario
s ? - Can i draw diagram for the
socket
connection ? - Can i draw sequence diagram for intermediate processes in the
TCP server
?
What are the rules that i should obey?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或许。
你的意思是“套接字在我的序列图中可以有生命线吗”?是的,可以。序列图通过捕获对象的交互来描述动词。您可以在其中之一中描述如何创建套接字连接,因为“创建”是一个动词。连接本身将是参与者之一。
或许。哪些?为什么?
你听起来好像一直在请求许可。你可以做任何你喜欢的事情。是否有用还有待确定。
除了图表中内置的规则外,没有任何规则。 UML 警察不会因为你违反想象中的规则而来抓你。
Maybe.
Do you mean "can the socket have a lifeline in my sequence diagram"? Yes, it can. Sequence diagrams describe verbs by capturing interactions by objects. You can describe how to create a socket connection in one of them, because "create" is a verb. The connection itself will be one of the participants.
Maybe. Which ones? Why?
You sound like you keep asking permission. You can do anything you like. Whether it's useful is still to be determined.
There are no rules, except those built into the diagram. There are no UML police that will come to get you for breaking imaginary rules.