software engineering

profilekmtyacb1j75
week_6.doc

Week 6 1

Week 6 2

Design Class Diagram

image1.emf

+updateName() : void

+updateAddress() : void

+updatePhone() : void

+processSale() : string

+requestHistory() : string

-accountNo : string

-name : string

-address : string

-phone : string

-email : string

-cookie : string

-verificationCode : string

Customer

+updateAfterSales() : void

+addItem() : int

+removeItem() : void

+requestReport() : void

-orderNo : int

-orderDate : Date

-accountNo : string

-notes : string

-tax : double

-discount : double

-afterSales : string

Order

+updateQuantity() : void

+updateSize() : void

+updateToppings() : void

+updateSides() : void

+updateBeverages() : void

-orderItemNo : int

-orderNo : int

-pizzaId : int

-quantity : int

-size : string

-toppings : string

-sides : string

-beverages : string

OrderItem

+updateName() : void

+updateDescription() : void

+updatePrice() : void

+updateCategory() : void

-pizzaId : int

-name : string

-description : string

-price : decimal

-categoryId : int

Pizza

+confirmCheckout() : void

+encryptPaymentInfo() : string

+storePaymentInfo() : void

+transferOrder() : void

+archiceOrder() : void

-checkoutId : int

-orderNo : int

-totalAmount : decimal

-paymentInfo : string

Checkout

+processPayment() : string

-paymentId : int

-checkoutId : int

-paymentInfo : string

Payment

«subsystem»

Credit Card

«subsystem»

Order Fulfillment

+verifyUser() : void

-userId : int

-username : string

-password : string

-logonStatus : string

User

+updateCatalog() : string

+accessReports() : void

+customReports() : void

-employeeId : int

-name : string

Employee

1

0..*

1

0..*

1

1..*

1

1..*

11..*

Berta's Pizzeria DCD

_1532128039.vsd

+updateName() : void +updateAddress() : void +updatePhone() : void +processSale() : string +requestHistory() : string

-accountNo : string -name : string -address : string -phone : string -email : string -cookie : string -verificationCode : string

Customer

Static Structure

+updateAfterSales() : void +addItem() : int +removeItem() : void +requestReport() : void

-orderNo : int -orderDate : Date -accountNo : string -notes : string -tax : double -discount : double -afterSales : string

Order

+updateQuantity() : void +updateSize() : void +updateToppings() : void +updateSides() : void +updateBeverages() : void

-orderItemNo : int -orderNo : int -pizzaId : int -quantity : int -size : string -toppings : string -sides : string -beverages : string

OrderItem

+updateName() : void +updateDescription() : void +updatePrice() : void +updateCategory() : void

-pizzaId : int -name : string -description : string -price : decimal -categoryId : int

Pizza

+confirmCheckout() : void +encryptPaymentInfo() : string +storePaymentInfo() : void +transferOrder() : void +archiceOrder() : void

-checkoutId : int -orderNo : int -totalAmount : decimal -paymentInfo : string

Checkout

+processPayment() : string

-paymentId : int -checkoutId : int -paymentInfo : string

Payment

«subsystem» Credit Card

«subsystem» Order Fulfillment

+verifyUser() : void

-userId : int -username : string -password : string -logonStatus : string

User

+updateCatalog() : string +accessReports() : void +customReports() : void

-employeeId : int -name : string

Employee

1

0..*

1

0..*

1

1..*

1

1..*

1

1..*

Berta's Pizzeria DCD