Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

SEQUENCE DIAGRAM

Search Book : Use Case : Search Page : Search : Catalog : Search


Results Page Results

- 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()

The system validates the


Customer's search criteria.

If author is entered, the alt


System searches the Catalog [authorentered]
for books associated with 1.2: searchByAuthor(author)
the specified author.
1.2.1 : create()

When the search is complete,


the system displays the search 1.2.1.1 : display()
results on the Search Results
page.
[author not entered]
- Alternate path -

If the Customer did not enter


1.3: display
the name of an author before ErrorMessage()
pressing the Search button,
the System displays an error
message.
ACTIVITY DIAGRAM (STAFF EXPENSES SUBMISSION)

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>>

Create New Customer


Customer

<<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

Duncan : Manager C0023 : Cashier


name = Duncan Lee id = C3
address = 948 Belmont St terminateNo = 3

Shampoo : Product : Receipt


id = 12904323 amount = 16
name = EX Shampoo billDate = 03/05/2017
description = shampoo billNo = R816892
mfDate = 06/03/2016
price = 16

Hap Heng : Supplier


address = 486 Country Club Lane Brentwood
name = Hap Heng Int. Ltd
STATE DIAGRAM (BORROW BOOK SYSTEM)

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()

You might also like