Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 782
MIstudent Avatar asked Oct 24 '25 17:10

MIstudent


1 Answers

Basically your diagram is fine (except for that filled arrow in the lower part). However, there's room for improvement.

enter image description here

You can show the required and provided interfaces on each port and delegate (see Edit below) functionality to the internal classes of the component. The above is very simplistic but it should make clear the use of delegate relations.

Also in a more coarse picture you could just leave away the inner part of Application and just show its ports/interfaces for an overview diagram:

enter image description here

Edit: One never stops learning. First, the arrow for required IF used to be the other way around in UML 2.1.1. But now (UML 2.5) they use just a straight line for delegation. No arrow nor keyword delegate.

like image 160
qwerty_so Avatar answered Oct 26 '25 18:10

qwerty_so



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!