How to create a component diagram?

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 :?

Someone having the solution?


Hi Dalila,

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:

  1. Right-click on the target port and select Stereotypes | Stereotypes… from the popup menu
  2. Click Edit Stereotype… from the Port Specification dialog box
  3. Click Add… from the Configure Stereotype dialog box
  4. Enter ‘Required Port’ as the name of the stereotype
  5. Click OK to apply the change
  6. Repeat 3 - 5 to create a ‘Provided Port’ stereotype
  7. 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.

Hope the solution has helped.

Best Regards,