Problem Analysis  «Prev  Next»

Modeling Advanced Associations - Exercise

Course project: modeling advanced associations

Objective: Model advanced associations from the course project.

Background/overview

This is the fifth exercise in the course project.

Download files

There are no downloadable files required to complete this exercise.

Instructions

Given the following class diagram based on the course project, evaluate the associations to determine how to capture the fact that you need to know when the purchase happened, the price type applied to the seat, and the amount of the applied discount. Follow the prescribed steps to document the association class and complete the conversion to a full class.

Initial class diagram
Initial class diagram

  1. Examine many-to-many associations. Ask "Is there information that we need about the links in this association?"
  2. Identify the information that you need to track. Sometimes it will be a single attribute. Sometimes it could be attributes and operations.
  3. Place the information in a class definition.
  4. Attach the new class to the association using a dashed line. This method shows how you arrived at the need for a new class, that is, it encapsulates everything you need to know about the relationship between objects in the association.
  5. Are there any new associations between the new class and existing classes in the model?
  6. To implement the class, you might later need to promote it to the status of a regular class. To do so, replace the original association and dashed lines with two new associations. Draw an association from the association class to one of the original classes.
  7. Name the new association and define the multiplicity.
  8. Repeat the process for the association between the association class and the other original class.
  9. Delete the original association that has now been completely replaced.

Submitting your exercise

Step 1

  1. Include your return email address if it is not already present.
  2. In the Subject field, type a) OOA 2 -Course project, part 5 b) Module 2
  3. Include your answers to the questions above in the Text field of your email.
  4. Attach your file. Make sure your file is named cp02p05.gif. Each email program has a slightly different way of attaching files. Please check your program's documentation for full instructions.

Step 2

In the text area below, type Course project, part 5 .
Include any questions or comments you have about the exercise.
When you are ready to submit the exercise, click the Submit button.