Socket (Required Interface)
Last updated
Last updated
A Socket, also known as Required Interface, in a Component Diagram represents an interface that a component requires or expects from other components. It indicates a dependency on a service or capability that must be provided by another part of the system for the component to function properly.
With Sockets in Modeldraw's Component Diagram, you can:
Show the services or capabilities that a component needs from other components
Illustrate the dependencies of a component on external functionalities
Demonstrate how components interact and rely on each other
Clearly define the expected contracts between components
Represent the modular and interconnected nature of your system architecture
Key points to understand about Sockets include:
Represents a service or capability needed by the component.
Shows that the component depends on an external service to function.
Connects to a Ball (Provided Interface) of another component that fulfills this requirement.
Defines a set of operations or functionalities that the component expects to be available.
A component can have multiple sockets, each representing a different required interface.
Each socket should be named to indicate the nature of the service it requires.
To create a Socket in Modeldraw's Component Diagram:
Ensure you have at least two components in your diagram, one with a Ball (Provided Interface) that you want to connect to.
Select the Socket (Required Interface) tool from the toolbox.
Click on the Ball (Provided Interface) of the component that provides the service.
Move your cursor to the component that requires the service.
Click on the edge of the requiring component where you want the Socket to appear.
The Socket will be created and automatically connected to the Ball you selected.