Finding Relationships
Scenarios are examined to determine if a relationship should exist between two classes. Messages between objects mean that the objects must communicate with each other. Associations and/or aggregations provide the pathway for communication.
Relationships may also be discovered based on the signature of an operation. This is discussed in Chapter 7.
Relationships in the ESU Course Registration Problem
In the Add a Course Offering scenario, the communicating objects along with the relationship-type decisions that have been made are shown in Table 6-1.
Sending Class | Receiving Class | Relationship Type |
---|---|---|
ProfessorCourseOptions | AddACourseOffering | Aggregation |
AddACourseOffering | ProfessorCourseManager | Association ... |
Get Visual Modeling with Rational Rose 2002 and UML 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.