Problem Analysis  «Prev  Next»

Modeling Generalization - Exercise Result

Course project: modeling generalization

You entered:

  1. Identify the properties of discount from the problem statement.
    We want the system to support different types of discounts. Volume discounts may be based on either the number of tickets purchased or the amount of money spent on the purchase. Group discounts are based on membership in a particular group, for example, a company or charity organization. All the discounts are stated as a percentage credit against the total purchase price for a group of tickets.
  2. Place all the properties into a class definition.
    Place properties
    1) Place properties
  3. Select a discriminator that describes the distinguishing characteristic(s) or classification criteria for the different types.
    Select a discriminator
    2) Select a discriminator
  4. Create a subclass for each value of the discriminator.
    Create a subclass
    3) Create a subclass
  5. Connect the subclasses to the superclass with a generalization association.
    Connect the subclasses
    4) Connect the subclasses
  6. Repeat the process until every distinguishing criteria has been documented. Select a discriminator that describes the distinguishing characteristic(s) or classification criteria for the different types:
    Repeat the process until every distinguishing criteria has been documented
    5) Repeat the process until every distinguishing criteria has been documented
  7. Create a subclass for each value of the discriminator.
    Create a subclass
    6) Create a subclass
  8. Connect the subclasses to the superclass with a generalization association.
    Connect the subclasses
    7) Connect the subclasses
  9. Identify the properties that are not common to all types of customers. Move the unique properties down to the subclasses that they describe.
    Identify the properties
    8) Identify the properties