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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.