Saturday, May 22, 2010

Exercise 12 - Modelling with UML or MVC?

Examine the Use Case(s) in Figure 9.2 and explain the MVC architecture of the online bookstore (the model, the view, and controllers) needed to Lookup Books and Add to Shopping Cart.

MVC architecture is a widely used approach to decouple an applications logic into separate objects. The parts of an MVC architecture include the model, view, and controller classes which have been discussed extensively in other workshops. For the online bookstore there will be a number of objects needed to complete the use case(s) "Lookup Books" and "Add to Shopping Cart" which are below:

Models

Orders
Books

Customers


Views
Search
Search_Results

Shopping_Cart
Book_Details
Customer
Order


Controllers

Books_Controller

ShoppingCart_Controller
Customer_Controller
Search_Controller

No comments:

Post a Comment