Object-Oriented Analysis and Logical Design
CPST 320
Fall 2007
Assignment 4
Due 10/2/2007
System Sequence Diagrams and Contracts
Please refer to the Ticketing case study.
- Write a Use Case for a Customer Canceling a reservation and getting
a refund on their credit card.
- Just write the Main Success scenario.
- Make sure to include an extral credit card processing service.
- Create a corresponding System Sequence Diagram.
- Using your Domain Model from Homework #3 (adjusted as needed
for this new use case), add any Operational Contracts for each System Event.
Java Programming
In Homework #3, you used a Java Enumeration to describe different types of
Orders (Group, subscription, regular).
For this excercise, you should use Inheritance instead of the Enumeration to represent
the different types of orders. In other words, inside your "root" object when you create an order, you
should create a different kind of object based on the enumeration provided.
You will need to:
- Include an "addOrder" method on your "root" object taking an enum indicating what type of order to add
- Include a main method showing how your objects are used.
- Use inheritance to create different "sub-classes" of a parent "Order" class.
Return to the syllabus
Please email me if you have questions or comments.