Professional Documents
Culture Documents
Uml Diagrams
Uml Diagrams
Deposit
Transfer Withdraw
Officer
Customer
APPLICATION USING SEQUENCE DIAGRAM –
INVENTORY SYSTEM
USE CASE DIAGRAM
<<extends>>
Administrator
<<extends>>
1: requests details
2: refers to details
3: details given
4: details displayed
if materials needed
6: calculates materials to be purchased
7: place order
8: requests confirmation
9: confirmation message
2: validates order
9: goods delivered
7: supplier notified
8: returns materials
9: requests receipt
10: receipt given
11: message for updation
17: notified
18: returns goods
19: request receipt
20: message for receipt
Press button
Sends signal
Request to move
floor reached
stop
open
selects destination
close
Exit
selects destination
request to move
floor reached
stop
open
close
Disaster Management
sends signal
Sales
Sales Returns
Employee
Customer
SEQUENCE DIAGRAM
Sales
1: Requests Product
4: Database searched
5: Results shown
6: Results interpreted
7: Customer notified
8: Requests confirmation
9: Confirmation of Customer
5: Database Updated
6: Results interpreted
Desktop
Machine Employee
Shop
Database Customer
Sales Returns
5: Database Updated
Shop Desktop
Database Machine
4: Message for updation issued
CLASS DIAGRAM
Product <<Interface>>
prod_code Desktop Machine
qty_available
price get_details()
update_db()
get_prod_info() Search_db()
show_prod_history()
cur_price()
update_prod_stock() Company_Employee
Emp_name
Emp_id
Password
Get_prod_info()
APPLICATION USING STATE DIAGRAM - LIBRARY
MANAGEMENT SYSTEM
USE CASE DIAGRAM
Registration of membership
Issue of books
cancellation of membership
Librarian
return of books
User
SEQUENCE DIAGRAM:
Registration of membership:
User Librarian Screen Bar Code Book Details User Details Database
Reader
If User is valid
5: Check if the book is available
If book is available
6: Check if the user is valid to issue books
If user is valid
for issue of book
7: Read book code
User screen Librarian barcode reader book details user details database
if user is valid
if book is returned
within due date
6: update book details
if book is not
returned within
due date
8: Collect fine
If the user is valid 5: check if the user has returned all the books
User
screen
Librarian database
COLLABORATION DIAGRAM:
Issue of book:
Screen
User Bar Code
Reader
User
6: Check if the user is valid to issue books
Details
8: Update user details
Book
Details
COLLABORATION DIAGRAM:
Return of book:
screen
User
barcode
reader
Librarian
7: Update user details
11: update user details
book
details
COLLABORATION DIAGRAM:
Cancellation of membership:
User Screen
Database
User
Details
CLASS DIAGRAM:
read memb_code()
read book_code()
user details
book details
memb_code : type = number
book_code : type = number user_name : type = character
book_name : type = character no of books allowed for issue : type = number
author_name : type = character
no of copies available : type = character get user_details()
add_user()
search_book() delete user()
add_book() update user()
update no. of copies() issue_updation()
check book available()
Database
memb_code : type = number
book_code : type = number
user_account : type: character
book_account : type = character
caution deposit : type = currency
user validation
user allowed for issue of book[ memb_code is valid ]
start
do/ check memb_code
issue of book
return of book
close do/ fine is calculated if book is returned beyond the due date
exit/ book is returned, database updated
exit/ exits the user account
stop
APPLICATION USING COMPONENT DIAGRAM –
PAYROLL SYSTEM
USE CASE DIAGRAM:
SEQUENCE DIAGRAM:
Registration of new employee:
5: Assigns employee id
6: Issues employee id
SEQUENCE DIAGRAM:
Payment of salary:
1: Gets employee id
2: Feeds id to screen
7: Sends request
Net salary=Basic
+allowance-
11: Calculate net salary deduction
Database
Employee
Employee
Database
Screen
CLASS DIAGRAM:
Database
Emp_Name
Emp_id
Emp_date_of_birth
Emp_ Address Controller 1
Emp_Contact_no
Emp_Designation Retrieve_employee_details()
Display_net_salary()
Get_employee_details()
Calculate_net_salary()
Assign_emp_id()
STATE DIAGRAM:
State diagram for database class:
Start
Allowance and deductions
[ if emp id is valid ]
[ if no allowance or deductions for employee ]
Check if valid
[ if any allowance or deductions for employee ]
employee
entry/ Check emp id
Salary provided
Stop
COMPONENT DIAGRAM:
Main program
Header files
Payroll.exe
Payroll.obj
APPLICATION USING DEPLOYMENT DIAGRAM –
RAILWAY RESERVATION SYSTEM
USE CASE DIAGRAM
SEQUENCE DIAGRAM
Reservation
Checking availability
Providing details
COLLABORATION DIAGRAM
Checking availability
Providing details
Reservation
CLASS DIAGRAM
STATE DIAGRAM
TICKET CLASS
COMPONENT DIAGRAM
railway system
railway sys.lib
railways.cpp
booking.cpp cancellation.cpp
reserve.exe cancel.exe
DEPLOYMENT DIAGRAM
APPLICATION USING DEPLOYMENT DIAGRAM
TELEPHONE SYSTEM
USE CASE DIAGRAM
User
SEQUENCE DIAGRAM
Make a Call
2: Ring tone
3: Dial Number
8: Picks Receiver
9: Call Connected
1: Dialled number
4: Picks phone
5: Call connected
6: Timer starts
7: Conversation
9: Call disconnected
8: Picks Receiver
12: Keeps Receiver Down
2: Ring tone Telephone
9: Call Connected
11: Conversation starts 4: Issues number to switch
13: Call disconnected
Telephone
Switch
7: Call is connected to destination
Receive a call
1: Dialled number
6: Timer starts
10: Timer stopped
7: Conversation
9: Call disconnected
5: Call connected
3: Phone rings
4: Picks phone
8: Keeps receiver down
User Telephon
e
CLASS DIAGRAM
Call
Caller start_time
Cust_id end_time
Cust_add +telephone duration
Phone_no
calc_duration()
make_a_call() calc_cost()
update_call_history()
STATE TRANSITION DIAGRAM
Ring Tone
Call Connecting
do: Wait for Call Connection
Connected
do: Talk
exit: Keep Receiver Down
COMPONENT DIAGRAM
Telephone.cpp Telephone.H
Telephone_sys
telephone.lib telephone.bak
telephone.obj
telephone.dll
telephone.exe
receive_a_call.exe make_a_call.exe
DEPLOYMENT DIAGRAM
Button pad
pulse/tone Telephone
Microphone
twisted cable
Receiver
Speaker