1.95k likes | 6.05k Views
Online Book Shop. Conceptualization Bookshop: Books, MusicCDs, Software Customers: Register, Browse, Order Bookshop: Charge, Ship. Online Book Shop. Analysis: Identify Function Points Actors Customer Bookshop staff Use-cases Customer registers details
E N D
Online Book Shop • Conceptualization • Bookshop: Books, MusicCDs, Software • Customers: Register, Browse, Order • Bookshop: Charge, Ship
Online Book Shop • Analysis: Identify Function Points • Actors • Customer • Bookshop staff • Use-cases • Customer registers details • Customer browses and orders items • Bookshop staff ships to customer • Customer updates details • Bookshop staff updates items
Analysis: Identify Scenarios Customer registers details... Customer browses and orders items System welcome message Customer login System validates password Failure? System error message Exit Loop Customer browses System displays item information Customer selects number System adds to shopping cart Customer done System creates order System shows order and cost Customer agrees to pay System sends invoice to customer Bookshop staff ships to customer... Customer updates details... Bookshop staff updates items... Online Book Shop
Design: Identify Classes From conceptualization Bookshop Book MusicCD Software Customer From analysis Login Password Item order ShoppingCart Order BillingAddress BookshopStaff ShippingAddress Initial guess Bookshop Book MusicCD Software Customer ItemOrder ShoppingCart Order BillingAddress BookshopStaff ShippingAddress Online Book Shop
Online Book Shop • Design: Identify Inheritance Relationships Among Classes • Inheritance • Book is-a Item • MusicCD is-a Item • Software is-a Item • BillingAddress is-a Address • ShippingAddress is-a Address
Design: Identify Attributes of Classes Isolated class design - attributes Bookshop name BookshopStaff name Item title publisher yearPublished price Book author edition isbn MusicCD artist Software version ItemOrder item quantity ShoppingCart Order salesTax shippingFee total Customer name customerID password Address streetNumber street city state country postCode BillingAddress ShippingAddress Online Book Shop
Online Book Shop • Attributes from Aggregation and Composition • Bookshop • Items • BookshopStaff • Customers • Orders • Customer • Shopping cart • Order • BillingAddress • ShippingAddress • Shopping cart • ItemOrders (composition) • Order • Customer • ItemOrders (composition)
Online Book Shop • Design: Identify Methods of Classes • Class methods (CRC cards)
Analysis: Identify Objects Customer browses and orders items System welcome message Customer loginGet customer object System validates password Failure? System error message Exit SuccessCustomer object initializedShopping cart created for customer Loop System displays item informationGet item from items listItem displays Customer selects number System adds to shopping cartShopping cart object updated Customer done System creates orderOrder object created from shopping cart System shows order and cost Customer agrees to payOrder object authorized System sends invoice to customerOrder object passed to shipping module Bookshop staff ships to customer Online Book Shop
Online Book Shop • Design: Identify Packages • BookshopInformation • Bookshop • BookshopStaff • Item • Book • MusicCD • Software • Customers • Customer • Address • BillingAddress • ShippingAddress • Online ordering • ItemOrder • ShoppingCart • Order