Search code examples
architecturecomponentsumldiagramsoftware-design

Is this diagram a valid UML component diagram?


I am planning a new web application, therefore I want to create a component diagram which shows the architecture of the application. Now I am actually not a specialist in UML and wanted to know if the diagram I made is correct for UML standardization.

I already used google a lot for some examples but none of these could really helped me with showing the database, orm and webbrowser in it.

So here is my actual result, would be great if I could receive some feedback for what is wrong and how it should be made correctly.

image


Solution

  • Inside a component element, you may display either its internal structure or its packaged elements. It seems you are mixing these two up. If you want to display both, you have to use two separate compartments. Here is a figure 11.48 from the UML 2.5 specification:

    component

    I suggest you choose to show the internal structure. In that case, the elements inside the component symbol should be 'Parts', with a colon in front of the class name. The dashed arrows inside the component should be replaced by solid lines.

    For more information, see the answer to 'Component diagram dependency vs assembly'