Sybase 7.5 manual Defining realizations, Realization properties, 114

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 124
Image 124

Defining realizations

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

Name

Name of the realization

 

 

Code

Reference name for the realization

 

 

Comment

Descriptive comment for the realization

 

 

Interface

Name of the interface that carries out the realization

 

 

Class

Name of the class that for which the realization is

 

carried out

 

 

Stereotype

Pre-defined or user defined instance of the realization

 

 

Maximum length

254

254

254

254

114

Page 124
Image 124
Sybase 7.5 manual Defining realizations, Realization properties, Realization has the following properties, 114