The complete object oriented analysis for the Air Gourmet case study appears in Section 12.8 of Schach's textbook, Object-Oriented and Classical Software Engineering.
The example presented here is for online shopping. The diagrams below are similar, but not identical, to the diagrams in that section. It shows the steps that lead to the class model and the dynamic model.
First we develop the user-case diagram for online shopping.
Then we work out the extended scenario.
The example below is just a partial scenario.
1. The customer fills out credit application to establish credit. 2. The credit application is approved by the supervisor. 3. The customer places an order. 4. The shipping clerk fills an order. 5. The customer checks the status of an order.
Thirdly we develop the class diagram (the class model) in several iterations.
The diagram below is just a partial class diagram.
| Customer |
|
CustomerName CreditCardNumber |
|
AddCustomer() RemoveCustomer() |
| Order |
|
OrderNumber CustomerName MerchandiseNumber Quantity |
|
placeOrder() checkStatus() |
The state diagram (the dynamic model) is also worked out.
The diagram below is just an example and not the true diagram for online shopping.