Defining realizations
114
Defining realizations
A realization is a relationship between a class and an interface. It shows that
the class realizes the operations offered by the interface. In this kind of
relationship, the interface is called the specification element and the class is
called the implementation element. The class implements the specification of
the interface.
You can also create a realization between a shortcut of an interface and a
class, or between a shortcut of a class and a interface. If the link is oriented,
only the parent object can be the shortcut.
Although you can create more than one realization link between a class and
an interface, you should create only one, because the interface can only
realize one action for the class. When you generate from an OOM, if more
than one realization exists between a class and an interface, a warning
message is generated.
The arrowhead at one end of the realization always points towards the
interface.
Realization properties
A realization has the following properties:
Property Description
Maximum
length
Name Name of the realization 254
Code Reference name for the realization 254
Comment Descriptive comment for the realization —
Interface Name of the interface that carries out the realization 254
Class Name of the class that for which the realization is
carried out
254
Stereotype Pre-defined or user defined instance of the realization —