Sunday, April 17, 2011

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

The title says it all. Repeated here: What's the best way to represent a networked connection in a UML class diagram?

From stackoverflow
  • 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?

    Jack BeNimble : Ok, they're gone :)
    Manrico Corazzi : :) Many design tools (like Microsoft Visio) have a separate "palette" of objects for networks, if that's what you are looking for. Read Justin Niessner answer, also, for a "pure" UML approach in depicting the communications between the components of your application.
  • 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.

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.