0% found this document useful (0 votes)
19 views4 pages

Task S.W2

usecase digram

Uploaded by

George Youssef
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

Task S.W2

usecase digram

Uploaded by

George Youssef
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Browse Phones

- Generate
- - Invoice
-
-

Customer

onlin

-
Login
«extend» -

pay -

«extend»
Manage
cash
Inventory
-

--

Admin

Search
-
Customer

-
Export Invoice
Invoice
- invoice_id
Customer
- customer - name
- phone_list - 1..* - phone_number
- total_cost - customer-id: Invoice

+ __init__(invoice_id, customer) () + __init__(name, phone_number, customer_id) ()


+ add_phone_to_invoice(phone) () + view_invoice(invoice) ()
+ calculate_total_cost() ()
+ generate_invoice() () -

1..*

1..* 1..*

Phone Admin
- name - username
- price - password
- 1..*
- category + __init__(username, password) ()
- stock_quantity
+ login() ()
+ __init__(name, price, category, stock_quantity) () + add_phone(phone) ()
+ check_stock() () + update_phone(phone) ()
+ update_stock(quantity) () + remove_phone(phone) ()
customer : Admin : PhoneStore : Invoice : Phone :

search_phone_by_category(category)

get_phones_in _category()
login (username, password)

return list of phones

add_phone_to_invoice(phone)

create_invoice(customer, phone)
add_phone(phone)

calculate_total_cost()

return total_cost

view_invoice()

display_invoice()

update_phone(phone), remove_phone(phone)
Login

Search product

Select product

Add to card

View Invoice

yas
no

Check out Continue Shopping

Make payment

Receive Order Confirmation

yas

Initiate Return/Refund Request

ActivityFinalNode

You might also like