What is the meaning of UML diagrams

Create class diagrams with UML

Ports are connections for encapsulated classifiers. They represent a point at which the classifier works with its The environment interacts. Apart from the ports, the encapsulated classifier is a self-contained system. Since its internal structural and behavioral elements remain unaffected by the rest of the system, you can also define this classifier independently. As long as a system meets the port's restrictions, you can use the encapsulated classifier in different environments reuse.

In addition, UML allows several docking points per classifier. You can define your own rules for each port. The port is one Property of the classifierSo you set its rules in the Properties area. This includes the services that the classifier offers its environment and the services that it needs. You differentiate between different information flows by identifying the port used for this.

Ports themselves also have properties. If the port carries out published functions of the classifier, this is shown by the property isService at. If isService = true is given, the port is an indispensable part of the externally visible functions of the encapsulated classifier. At isService = false the port is not one of the essential features and can therefore be changed or deleted just like other internal functions.

Ports interact with interfaces. There are provided and required interfaces (see below "Interfaces"). The interface connected to the port specifies the interactions that take place over the port. Since the docking site is a property, it has one Type. The value of isConjugated mediates between the type and the interface of the port. If the value is true, the required interface can be derived directly from the type of port or from the set of interfaces implemented by the type of port. In this case, a provided interface is derived from the set of interfaces. If isConjugated is true, the provided interface is derived from the type.

When an encapsulated classifier generates an instance, corresponding instances are created for each of its ports. A port keeps the respective instance in accordance with its type and its multiplicity (see below). The instances are called UML Interaction points. Each instance has unique references that are used to distinguish between the different behavioral function requests made to its ports.

Ports with the property isBehavior = true send a request to the instance of the encapsulated classifier. The request adopts the specified behavior of the instance. The so-called Behavior ports In other words, queries do not go inside your classifier. If no behavior is specified for this in the class diagram, messages on these ports are lost.

You model a port as small square on the frame of the classifierto which he belongs. Draw the required or provided interface on the port. If you do not specify any special characteristics for the port, draw the interface without a port.