Socket (Required Interface)
Last updated
Last updated
A Socket, also known as a Required Interface in UML, is a relationship that shows that a class or component needs the services specified by an interface. In Modeldraw, you can use the Socket notation to represent this dependency in a compact and visually distinct manner, particularly useful in class and component diagrams.
The Socket notation for Required Interface represents the dependency of a component on an interface provided by another component. Key characteristics include:
It shows that a component requires an interface
It's represented by a half-circle or "socket" connected to the requiring component
The interface name is shown near the socket
It's often used in component diagrams to show required interfaces
To create a Socket (Required Interface) in Modeldraw:
Create the Class that requires the interface.
Select the Socket (Required Interface) tool from the toolbar.
Click on the requiring Class.
Move above and click the Ball of the Interface that the Class requires.
The Socket will be created, connecting the requiring Class to the Ball of the Class implementing the Interface.