O'Reilly logo

Executable UML: A Foundation for Model-Driven Architecture by Marc J. Balcer, Stephen J. Mellor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.1. Dynamically Simple Associations

Links between objects are created and deleted over time. There are several approaches to modeling associations. We can

  • Create the objects and the link synchronously, and not build any statechart diagrams for the classes or the links.

  • Build a statechart diagram for one class or the other, endowing that class with the responsibility of managing creation and deletion of the objects and the link.

  • Build a statechart diagram for both classes, assigning the responsibilities for creating and deleting the link between the classes.

  • Abstract the association as an association class and use the association class to house the statechart diagram.

13.1.1. Associations without Explicit Lifecycles

Some associations simply exist. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required