7.3. Link Actions

Just as classes have actions that create and delete their objects, so associations have actions that create and delete their instances, called links.

Figure 7.7 lists a syntax for several link actions, and several examples are shown in Figure 7.8.

Figure 7.7. Syntax for Link Actions

Figure 7.8. Link Action Examples

As you would expect, the order of the two object references is immaterial, so the first two statements are equivalent. For clarity, the association end can be included, as illustrated by the third statement. The association ...

Get Executable UML: A Foundation for Model-Driven Architecture now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.