Professional Documents
Culture Documents
Uml Diagram Exercise
Uml Diagram Exercise
- Main scenario -
: Customer
The Customer specifies an
author on the Search Page 1: onSearch(author)
and then presses the
Search button. 1.1 : validate
SearchCriteria()
Fill-out Expenses
Form
: Expense : Expense
Form [Initial] Form [Error]
[invalid]
[valid] Enter
Validate Expenses
Expenses in Payroll
: Payroll Pay
File Employees
CLASS DIAGRAM (ORDER SYSTEM)
Multiplicity Aggregation
Class
Role
Order
OrderDetail Item
-date : date
Customer 1
-status : String
line item -quantity 0.. -shippingWeight
Attribute -name : String +calcSubTotal() -taxStatus : String -description : String
-address 0.. +calcTax() 1.. +calcSubTotal() 1 +getPriceForQuantity()
+calcTotal() +calcWeight() +getTax()
+calcTotalWeight() +calcTax() +inStock()
Association
Operation
1..
Abstract Class Payment
-amount : float
Generalization
Check
Cash Credit
-nam : String
-cashTendered : float -number : String
-bankID : String
-type : String
+authorized()
-expDate
+authorized()
USE CASE DIAGRAM (VEHICLE SALES SYSTEM)
vehicle Sales System
Make Offer
<<Extend>>
Make Payment extension points
Arrangements Make Payment Arrangements
Make Offer
Update Customer <<Extend>>
extension points Make New Customer
Information Update Customer Information Offer
<<Include>>
<<Include>>
Accept Offer
Management
Manage Offers
New Customer
Record Sales Contract
<<Include>>
Salesperson
Old Customer
OBJECT DIAGRAM (POS SYSTEM)
Mary : Staff
id = I221 189
name = Mary Jasso
BookCopy
value := 'true' // on the shelf
-onShelf : boolean value := 'false' // on loan
action / onShelf = 'true' +return()
action / onShelf = 'false' +borrow()
return()
on loan on the shelf
entry / myBkCopy.borrow() borrow() entry / myBkCopy.return()
return()
on loan on the shelf
exit / myBkCopy.returned() borrow() exit / myBkCopy.borrowed()