CPlusOOP
SiteMap
OO Analysis
Problem Analysis
Problem Analysis
«Prev
Next»
OO-Design
Problem Analysis
Review PLC
Purpose Scope Analysis
Problem Domain Classes
Identify Classes Objects
Class Diagram Notation
Diagram Associations
Basic Object Modeling
Multiplicity OO Modeling
Define Constraints
Modeling Aggregation
Modeling Composition
Modeling Generalization
Advanced Associations
Qualifiers Reduce Multiplicity
Many to ManyAssociations
Problem Analysis Conclusion
Sequence Diagrams
Sequence Diagram Notation
Applying Sequence Diagram
Applying Sequence Diagram-Quiz
Modeling Sequences Scenarios
Mapping Events Objects
Interfaces, events ,operations
Discover Attribute Information
Sequence Diagram - Conclusion
Interaction Diagram - Quiz
Model Reconciliation
Reconcile Sequence Diagrams
Test Interfaces
Model Refinement
Refactoring Patterns
Encapsulation Principles
Cohesion Coupling Defined
Attribute Responsibility Allocation
Class Description Operations
Refining Object Conclusion
Object Modeling Constraints (Identify) - Exercise
Basic Object Modeling Constraints using Class Diagram
Course project: modeling basic associations
Objective:
Draw class diagrams based on excerpts from the course project problem statement.
Exercise scoring
This exercise is worth a total of 10 points.
Background/overview
This is the second exercise in the course project.
Instructions
Given the two excerpts below from the course project problem statement, create a class diagram for each of the two excerpts. Be sure to:
Identify the classes involved.
Identify the associations between the classes.
Draw and name the associations.
Assign multiplicity to each end of each association.
Add constraints where needed to account for all the rules documented in the problem statement.
Hints
It is valid for there to be more than one association between the same pair of classes.
Use a verb or verb phrase. Try to use the active form whenever possible.
Remember to watch for how the time frame can effect your multiplicity choices. Sometimes a combination of multiplicity and constraints is required to clarify the rules.
Problem statement
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.
(Focus on the event floor plan and the show seating chart for now. In later lessons, we will add the events and shows.)
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.
Submitting your exercise
Step 1
In the text area below, type Course project, part 2
In addition, you can include any questions or comments you have about the exercise.
When you are ready to submit the exercise, click the
Submit
button.