8.4. Association Loops
When we build a model with many classes and associations, it is often possible to trace a path from a class, through other associations and classes, back to the class whence we came. This pattern in the graphic is referred to as an association loop.
Definition: An association loop is a set of associations that together make up a path from one class, through other classes, back to the same class.
An association loop sometimes has a meaning separate from the sum of its parts, and sometimes it doesn't. Proper analysis of loops enhances our understanding of the problem and the diverse constraints between the associations in the domain.
In this section, we will examine several types of association loops:
Unconstrained association ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access