Of course, this multiplicity must not be in confl ict with the multiplicity
of the pertaining association end. The multiplicity at the connector end
corresponds to the multiplicity of the role if none is stated at the connector end.
For example, multiplicities of 1 and 2 are explicitly stated at the connector between
e:Engine and front:Wheel in Figure 3.26 .
3.4.3 Port
Defi nition
A port describes an interaction point at which a class uses interfaces to provide
services to its environment, or to request services from its environment.
A class encapsulates structure and behavior. Encapsulation means that the inside
is separated from the outside. However, the class has to communicate with its
environment in order for the entire system to function. Ports describe the points
at which the class can communicate. They are properties of the class, similar to
attributes. A port has a name, a type, and a multiplicity.
The notation is a small square positioned on the edge of the class rectangle.
Next to it is further information in the following syntax:
name : Type [ multiplicity ]
The type and the multiplicity are often not represented.
Pages:
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340