OOPortal OOPortal


Problem Analysis  «Prev  Next»

Object Modeling Constraints - Exercise Result

Course project: Modeling Basic Associations


You entered:

Excerpt 1

The event floor plan defines the layout for all the shows for the same event. All the show seating charts for the same event must refer to the same event floor plan.
  1. Identify the classes involved (in bold).
The event floor plan defines the layout for all the shows for the same event. All the show seating charts for the same event must refer to the same event floor plan.
(Note: Normally, the shows and events would also be included, but the exercise instructions explicitly say to leave them out for now.)
Identify classes
  1. Identify the associations between the classes (in bold).
    The event floor plan defines the layout for all the shows for the same event. All the show seating charts for the same event must refer to the same event floor plan.
  2. Draw and name the associations.
Draw and name the Associations

  1. Assign multiplicity to each end of each association.
Assign multiplicity
  1. Add constraints where needed to account for all the rules documented in the problem statement.
Add constraints

Excerpt 2

Customers may hold seats while they try to figure out which ones they want to purchase. This prevents more than one customer from attempting to purchase a seat at the same time. Customers may also return the seats and get their money back.
  1. Identify the classes involved (in bold).
Customers may hold seats while they try to figure out which ones they want to purchase. This prevents more than one customer from attempting to purchase a seat at the same time. Customers may also return the seats and get their money back.
Identify the Classes

  1. Identify the associations between the classes (in bold).

Customers may hold seats while they try to figure out which ones they want to purchase. This prevents more than one customer from attempting to purchase a seat at the same time. Customers purchase seats using a credit card. Customers may also return the seats and get their money back.
  1. Draw and name the associations.
Draw and name the associations
  1. Assign multiplicity to each end of each association.
Associations
  1. Add constraints where needed to account for all the rules documented in the problem statement.

Add Constraints