class Waypoint
coordinates
Waypoint
{abstract}
name
Location Attraction
160 CHAPTER 3 UML??”Unifi ed Modeling Language
be mixed between different model elements. For example, it is not permitted to
use a generalization between a class and a use case.
3.3.9 Interface
FIGURE 3-19
Example for an interface.
class Interface CarKey
?«signal?» Key(removed:Boolean)
?«interface?»
CarKey
Defi nition
An interface specifies structure and behavior. It does not include any implementation,
and no object can be created based on its building plan.
We know the separation of specification and implementation very well in our
daily lives. Think of a socket, for example. It specifies the structure of the plug as
well as textually the intensity of current and voltage. The implementation??”electric
power or mains supply??”is not visible to the user. For the user, only the specification
is important.
We use the same principle in modeling, too. The interface specifi es a behavior
without stating how exactly it is implemented. Similarly to classes, the notation is
written with the additional keyword ?«interface?» above the name.
Pages:
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329