0
4.9kviews
Describe use of port and connector in component diagram with example.

Subject: Object Oriented Modeling and Design

Difficulty: Medium

Marks: 4 Marks

1 Answer
1
410views

Port: A port is used to specify an interaction point through which a component can communicate with its environment, other components or with its internal parts. Ports are represented using a square along the edge of a component. A port is often used to help expose required and provided interfaces of a component.

enter image description here

Connector: A connector is used to show a link that specifies communication between two or more classifiers. Connectors are of two types

1.Delegation connector: A component realizes or uses an interface. A component can have internal parts. A part of a component can realize or use an interface. To show a connection among internal parts of a component and interface, delegation connector is used.

2.Assembly connector: It is a connector between two or more parts or ports on parts that defines services provided by parts for other parts.

enter image description here

Please log in to add an answer.