简体   繁体   English

UML序列图中的问题

[英]Problem in UML Sequence Diagram

I'm required to draw a sequence diagram for a client server (Web app to TCP server) architectural application. 我需要为客户端服务器(Web应用程序到TCP服务器)体系结构应用程序绘制一个序列图。 I have few problems 我几乎没有问题

  1. Is it fine to draw diagram to Web browser -> Server scenario s ? 将图表绘制到Web browser -> Server scenario是否可以?
  2. Can i draw diagram for the socket connection ? 我可以为socket连接绘制图表吗?
  3. Can i draw sequence diagram for intermediate processes in the TCP server ? 我可以在TCP server绘制中间过程的序列图吗?

What are the rules that i should obey? 我应遵守的规则是什么?

Is it fine to draw diagram to Web browser -> Server scenarios ? 将图表绘制到Web浏览器 - >服务器场景是否可以?

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. 您可以在其中一个中描述如何创建套接字连接,因为“create”是一个动词。 The connection itself will be one of the participants. 连接本身将是参与者之一。

Can i draw sequence diagram for intermediate processes in the TCP server ? 我可以在TCP服务器中绘制中间过程的序列图吗?

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. 没有UML警察会让你违反想象规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM