online book shop conceptualization –bookshop: books, musiccds, software –customers: register,...
TRANSCRIPT
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
USE CASE DIAGRAM
Online Book Shop• 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...
ACTIVITY DIAGRAM
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
CLASSES WITH NAMES
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
CLASSES WITH INHERITANCE
Online Book Shop• 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
CLASSES WITH ATTRIBUTES
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)
CLASSES WITH AGGREGATION AND COMPOSITION
Online Book Shop
• Design: Identify Methods of Classes – Class methods (CRC cards)
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
CLASSES WITH METHODS
Online Book Shop• Analysis: Identify Objects
– Customer browses and orders items
• System welcome message • Customer login
Get customer object • System validates password
– Failure? » System error message » Exit
– SuccessCustomer object initializedShopping cart created for customer
• Loop – System displays item information
Get item from items listItem displays
– Customer selects number – System adds to shopping cart
Shopping cart object updated • Customer done
• System creates orderOrder object created from shopping cart
• System shows order and cost • Customer agrees to pay
Order object authorized • System sends invoice to customer
Order object passed to shipping module
• Bookshop staff ships to customer
ACTIVITY DIAGRAM WITH OBJECTS
Sequence Diagram
Collaboration Diagram
Online Book Shop• Design: Identify Packages
– BookshopInformation • Bookshop • BookshopStaff • Item • Book • MusicCD • Software
– Customers • Customer • Address • BillingAddress • ShippingAddress
– Online ordering • ItemOrder • ShoppingCart • Order
PACKAGES
Deployment Diagram
S y s t e m 1
S y s t e m 1 0
S y s t e m 1 0 0
N e t w o rkS e r ve r