You can use component diagrams to model the software architecture of a system. Component diagrams provide a view of the physical software components in the system, their interfaces, and their dependencies.
Specifying relationships in modeling diagrams
In UML modeling, you use relationships to identify the semantic ties that exist between the elements in a model. When you add relationships to a model, you must work in the diagram editor and add relationships as connectors between the elements in your diagram. You cannot specify relationships in the Model Explorer view.Adding interfaces to modeling diagrams
In UML modeling, you can add interfaces to class diagrams and component diagrams to specify a contract between the interface and the classifier that realizes the interface.Showing or hiding the compartments in classifiers
In UML diagrams, you can specify whether or not to display the compartments in classifiers. You can choose to display all of the compartments in a classifier or display only selected compartments.
Related concepts
Component diagrams