Hi,
I’m trying to create a component diagram. Each component has several required and provided ports. I want to precise for each port if it is required or provided, before defining connectors, but I couldn’t find how to do this :?
When a port has never been connected to an interface, there are no possible ways to judge whether it is a required or a provided port. I suggest you use stereotype to distinguish between required and provideded port. Here are the steps:
Right-click on the target port and select Stereotypes | Stereotypes… from the popup menu
Click Edit Stereotype… from the Port Specification dialog box
Click Add… from the Configure Stereotype dialog box
Enter ‘Required Port’ as the name of the stereotype
Click OK to apply the change
Repeat 3 - 5 to create a ‘Provided Port’ stereotype
Click OK to apply the change
You can now assign the two stereotypes to different ports to specify whether they are required or provided ports.