Finding Relationships

I l @ ve RuBoard

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.

Table 6-1. Class Relationships
Sending Class Receiving Class Relationship Type
ProfessorCourseOptions AddACourseOffering Aggregation
AddACourseOffering ProfessorCourseManager Association
ProfessorCourseManager Course Association
Course CourseOffering Aggregation

A class diagram with the added relationships is shown in Figure 6-9.

Figure 6-9. Relationships in the Add a Course Offering Scenario

graphics/06fig09.jpg

I l @ ve RuBoard


Visual Modeling with Rational Rose 2002 and UML
Visual Modeling with Rational Rose 2002 and UML (3rd Edition)
ISBN: 0201729326
EAN: 2147483647
Year: 2002
Pages: 134

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net