UML 序列图中的问题

发布于 2024-11-27 14:10:15 字数 240 浏览 5 评论 0原文

我需要为客户端服务器(Web 应用程序到 TCP 服务器)架构应用程序绘制序列图。我有一些问题

  1. 可以在 Web 浏览器 -> 上绘制图表吗?服务器场景?
  2. 我可以画socket连接图吗?
  3. 我可以绘制TCP服务器中的中间过程的序列图吗?

我应该遵守哪些规则?

I'm required to draw a sequence diagram for a client server (Web app to TCP server) architectural application. I have few problems

  1. Is it fine to draw diagram to Web browser -> Server scenarios ?
  2. Can i draw diagram for the socket connection ?
  3. Can i draw sequence diagram for intermediate processes in the TCP server ?

What are the rules that i should obey?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冧九 2024-12-04 14:10:15

可以在网络浏览器上绘制图表吗 ->服务器场景?

或许。

我可以画出套接字连接图吗?

你的意思是“套接字在我的序列图中可以有生命线吗”?是的,可以。序列图通过捕获对象的交互来描述动词。您可以在其中之一中描述如何创建套接字连接,因为“创建”是一个动词。连接本身将是参与者之一。

我可以画TCP中间过程的时序图吗
服务器?

或许。哪些?为什么?

你听起来好像一直在请求许可。你可以做任何你喜欢的事情。是否有用还有待确定。

我要遵守哪些规则?

除了图表中内置的规则外,没有任何规则。 UML 警察不会因为你违反想象中的规则而来抓你。

Is it fine to draw diagram to Web browser -> Server scenarios ?

Maybe.

Can i draw diagram for the socket connection ?

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.

Can i draw sequence diagram for intermediate processes in the TCP
server ?

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.

What are the rules that i obey on ?

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文