在 UML 类图中表示网络连接的最佳方式是什么?

发布于 2024-07-15 15:37:18 字数 31 浏览 4 评论 0原文

在 UML 类图中表示网络连接的最佳方式是什么?

What's the best way to represent a networked connection in a UML class diagram?

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

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

发布评论

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

评论(5

放肆 2024-07-22 15:37:18

UML 类图不适合将拓扑概念描述为“网络”; 它们更适合对象之间的层次结构和相互依赖关系。 或者您在谈论 Connection 类?

UML class diagrams are not appropriate to describe a topological notion as a "network"; they are better suited for hierarchies and interdependencies between objects. Or are you talking about a Connection class?

心的憧憬 2024-07-22 15:37:18

类图不适合尝试显示网络连接。 类图将仅显示软件中的类以及它们之间的关系。 您应该使用部署图来显示软件元素如何跨网络部署。

您还可以包含一个通信图来显示软件的不同部分如何相互通信,而不考虑部署模型。

The Class Diagram is the wrong place to be trying to show network connections. A Class diagram will show only the classes in your software and how they relate to each other. You should use a Deployment Diagram to show how the elements of your software are going deployed across the network.

You could also include a Communication Diagram to show how the different parts of the software communicate with each other without regard to the deployment model.

何必那么矫情 2024-07-22 15:37:18

如上所述,除了表示网络或组件的物理基础设施之外,UML 还服务于其他目的。

网络图的一些示例可以在 creatley -> 上找到。 https://creately.com/diagram/example/hfgz8ekz/Network%20Architecture% 20Diagram

我个人喜欢使用https://www.draw.io/来生成图表- 它基于网络,非常直观,具有许多功能和大型图像集库。

As mentioned above already UML is serving other purposes than representing physical infrastructure of a network or components.

Some examples of network diagrams can be found on creatley -> https://creately.com/diagram/example/hfgz8ekz/Network%20Architecture%20Diagram

I personally like to use https://www.draw.io/ to generate diagrams - it's web-based, very intuitive and has many features and a large library of image-sets.

赤濁 2024-07-22 15:37:18

图或网络是一种结构,其中任何元素(UM 中的类或对象)都可以连接到任何其他元素。 “连接”可以是 UML 中除“is a”之外的任何关联。 因此,可以使用一组类和关联来表示图或网络的结构。

例如,考虑一类地点、一个“由……连接”的关联和一类道路。 有了这个,任何复杂的地点和道路网络都可以通过将地点实例与另一个地点实例和道路实例相关联来表示。 因此,RDF Tripples 代表了一个语义网络。

在 OOAD / UML 中是否有任何其他(特殊或特定)表示图或网络的约定?

Graph or a network is a structure in which any element (Class or object here in UM) may be connected to any other element. The "connection" can be any association other than "is a" in UML. As such, it is possible to represent the structure of graph or network using a set of classes and associations.

For example, consider a class of Places, an association "is connected by" and a class of Roads. With this any complex netwrok of Places and Roads can be represented by associating an instance of Place with another instance of Place and an instance of Road. RDF Tripples thus represent a semantic network.

Is there any other (special or specific) convention of representing a graph or network in OOAD / UML?

音盲 2024-07-22 15:37:18

You should use a Deployment Diagram to show how the elements of your software are going deployed across the network.
Deployment diagrams are used to visualize the topology of the physical components of a system where the software components are deployed.
Deployment diagram: describes the hardware used in system implementations and the execution environments and artifacts deployed on the hardware.
http://search.aol.com/aol/image?s_it=topsearchbox.imageDetails&v_t=client_searchbox&imgsz=&imgtype=&imgc=&q=deployment+diagrama+uml
And You use the tool Rational Rose for get that.
All is for documentation, when something is changing in the network, and every know that you used Rational Rose and Deployment Diagram.
Structure diagrams emphasize the things that must be present in the system being modeled, and every Diagram has a function.

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