UML - Component Diagrams - Tutorialspoint PDF
UML - Component Diagrams - Tutorialspoint PDF
Component diagrams are different in terms of nature and behavior. Component diagrams are used
to model the physical aspects of a system. Now the question is, what are these physical aspects?
Physical aspects are the elements such as executables, libraries, files, documents, etc. which
reside in a node.
Component diagrams are used to visualize the organization and relationships among components
in a system. These diagrams are also used to make executable systems.
https://www.tutorialspoint.com/uml/uml_component_diagram.htm 1/3
10/31/2020 UML - Component Diagrams - Tutorialspoint
This diagram is very important as without it the application cannot be implemented efficiently. A
well-prepared component diagram is also important for other aspects such as application
performance, maintenance, etc.
Before drawing a component diagram, the following artifacts are to be identified clearly −
Files used in the system.
Use a meaningful name to identify the component for which the diagram is to be drawn.
Prepare a mental layout before producing the using tools.
Use notes for clarifying important points.
Following is a component diagram for order management system. Here, the artifacts are files. The
diagram shows the files in the application and their relationships. In actual, the component diagram
also contains dlls, libraries, folders, etc.
In the following diagram, four files are identified and their relationships are produced. Component
diagram cannot be matched directly with other UML diagrams discussed so far as it is drawn for
completely different purpose.
The following component diagram has been drawn considering all the points mentioned above.
https://www.tutorialspoint.com/uml/uml_component_diagram.htm 2/3
10/31/2020 UML - Component Diagrams - Tutorialspoint
We have already described that component diagrams are used to visualize the static
implementation view of a system. Component diagrams are special type of UML diagrams used for
different purposes.
These diagrams show the physical components of a system. To clarify it, we can say that
component diagrams describe the organization of the components in a system.
Organization can be further described as the location of the components in a system. These
components are organized in a special way to meet the system requirements.
As we have already discussed, those components are libraries, files, executables, etc. Before
implementing the application, these components are to be organized. This component organization
is also designed separately as a part of project execution.
Component diagrams are very important from implementation perspective. Thus, the
implementation team of an application should have a proper knowledge of the component details
Component diagrams can be used to −
https://www.tutorialspoint.com/uml/uml_component_diagram.htm 3/3