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.
Specifying a required interface
In UML modeling, you can specify the services that a component needs to perform its functions and to fulfill its own obligations to its clients.
Specifying a provided interface
In UML modeling, you can specify the services that instances of a component offers to their clients.