Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 715
Jack BeNimble Avatar asked Jan 24 '23 17:01

Jack BeNimble


2 Answers

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?

like image 196
Manrico Corazzi Avatar answered Jan 29 '23 17:01

Manrico Corazzi


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.

like image 41
Justin Niessner Avatar answered Jan 29 '23 17:01

Justin Niessner