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

时间:2021-08-07 23:23:56

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

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

5 个解决方案

#1


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?

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

#2


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.

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

#3


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.

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

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.

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

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

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

#4


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.

您应该使用部署图来显示如何通过网络部署软件的元素。部署图用于可视化部署软件组件的系统的物理组件的拓扑。部署图:描述系统实现中使用的硬件以及部署在硬件上的执行环境和工件。 http://search.aol.com/aol/image?s_it=topsearchbox.imageDetails&v_t=client_searchbox&imgsz=&imgtype=&imgc=&q=deployment+diagrama+uml您可以使用Rational Rose工具来实现这一目标。所有这些都是用于文档,当网络中的某些内容发生变化时,每个人都知道您使用过Rational Rose和Deployment Diagram。结构图强调了被建模系统中必须存在的事物,每个图都有一个功能。

#5


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

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

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

网络图的一些示例可以在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.

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

#1


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?

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

#2


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.

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

#3


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.

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

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.

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

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

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

#4


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.

您应该使用部署图来显示如何通过网络部署软件的元素。部署图用于可视化部署软件组件的系统的物理组件的拓扑。部署图:描述系统实现中使用的硬件以及部署在硬件上的执行环境和工件。 http://search.aol.com/aol/image?s_it=topsearchbox.imageDetails&v_t=client_searchbox&imgsz=&imgtype=&imgc=&q=deployment+diagrama+uml您可以使用Rational Rose工具来实现这一目标。所有这些都是用于文档,当网络中的某些内容发生变化时,每个人都知道您使用过Rational Rose和Deployment Diagram。结构图强调了被建模系统中必须存在的事物,每个图都有一个功能。

#5


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

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

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

网络图的一些示例可以在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.

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