Anda di halaman 1dari 31

Page No:

Class Diagram for unified library system

LibrarySystem
LibraryName : String
LibraryIncharge : Logical View : String
LibrarianName : String

+m_LibrarySystem

ViewLibraryDatabase()
ViewUsersList()
LibrarySystem()
1..*

+Need for

<<uses>>

+Works in

UsersDatabase
Name : String
Id : Number
Branch : String

Librarian
Qualification : String
LibrarianExperience : Integer
LibrarianID : Number
LibrarianPassword : String
UpdateBook() : Boolean
CheckDatabase()
AddBook()
DeleteBook()
Librarian()
Login()

Working()
NotWorking()
UsersDatabase()

AddBooks()
DeleteBook()
AddCDs()
DeleteCDS()
AddMagazines()
DeleteMagazines()
Database()

<<uses>>
+m_User
User
UserName : String
UserID : Name
UserPassword : String

VIPUser

Login()

RequestNewBook()
HomeDelivery()
BorrowCDs()
ReturnCDs()
VIPUser()

BookList
BookAuthor : String
BookId : Integer
UpdateBook()
VIewBookList()
BookList()
1..*

UpdateCDs()
ViewCDList()
CDList()
+Checks

BorrowBook

+Checks
Staff
Department : String
Designation : String

CDList
CDId : LogicalView : String
SoftwareName : String

1..*

NormalUser
Branch : String
NormalUser()

RequestForMoreBooks()
Staff()

Database

BookList()
CDList()

Student
Student()
1..*
+Borrows

Sri sai aditya institute of science & technology


10P31D5816

BorrowCD
CDName : String
StaffName : String
CDList()

Roll No:

Page No:

Use case Diagram for Unified Library System

LibraryDatabase

User

MaintainDatabase

BorrowBook

UserRegistration

ManageBook
Librarian
AddBook

NewUser

ReturnBook

FeedBack
DeleteBook

Staff

VIPUser

ReserveBook

UpdateBook

SearchBook
RequestForNewBook

Login

ReturnCD
HomeDelivery

ViewAllBooks
RenewalBook
Login
Student

BorrowCD

RequestForVIPUser

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

A Sequence Diagram Using Library System:


A ) User Registration :

Registration
Form

: user

Registration

DataBase

1:Request Registration Form

2 :Details For Registration

3 :Give Details

4 :Register

5 :Update Registration

6 :Confirm Registration

B) Add a Book:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

System
Interface

: user

Book List

User Account

Sign In
Check Valid or Not

Valid User ID

View Book List

Display Book List

Borrow Book With Title

Search Book

Check User Account


Verify Status

Recheck if Available
Book Not in Account

c)

Issue the Book

Borrow A

Book:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

System
Interface

: user

Book List

Library
DataBase

Request for Login


check Valid or not

Valid User

Add Book with title


Check valid or not

Invalid Book Already existed

Add Book With Title


Check valid or not

Valid Book Adder

Update the DataBase

DataBase Updated

A collaboration Diagram Using Library System:


a)User Registration:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

1: 1:Request Registration Form


: user

Registration
Form

4: 4 :Register
3: 3 :Give Details
6: 6 :Confirm Registration

2: 2 :Details For Registration

5: 5 :Update Registration

DataBase

Registration

B) Add a Book:
2: Check Valid or Not
1: Sign In
6: Borrow Book With Title

: user

System
Interface

3: Valid User ID

4: View Book List


5: Display Book List
12: Issue the Book

7: Search Book
9: Verify Status
10: Recheck if Available
8: Check User Account
Book
List

User
Account

11: Book Not in Account

c ) Borrow A Book:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:
2: check Valid or not
1: Request for Login

: user

3: Valid User
9: Valid Book Adder

System
Interface

11: DataBase Updated

10: Update the DataBase


4: Add Book with title
6: Invalid Book Already existed 7: Add Book With Title

5: Check valid or not


8: Check valid or not
Library
DataBase
Book
List

Activity diagram for Library Management System


Sri sai aditya institute of science & technology
10P31D5816

Roll No:

Page No:

Submit
Application

Issue
Membership
[ Reservation ]

BookBank

Issue
Books

Return
BooksinTime

[ Late Submission ]

CollectFine

[ else ]
Rearrange
Book

State Chart diagram For Library Management System

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Available Entry
entry/ No of Reservations

Remove Reservations / No of Reservations --

Title Reservations / No of Reservations ++

Title Resevation / No of reservations++

Reserverd

Remove Reservations / No of Reservations --

Component diagram for Library Management System


Sri sai aditya institute of science & technology
10P31D5816

Roll No:

Page No:

Library
System

DataBase

User

Librarian

User
DataBase

Normal User

VIP User

Book List

CD List

Student
Staff

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Deployment Diagram for Library Management System

Any Client
:MidrangeMachine

<<execution environment>>
:AppServer

<<artifact>>
Librarian.war

Library
DB:DBMachine

Class Diagram for Leave Management System:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Employee
empid : num
name : string
doj : date
dept : string

leaverequest
type : string
fromd : date
to : date
no.ofleaves : num

fill leavereq form


*

view numof leaves()


place leave request()
view leave reqstatus()

calnumleaves()
chekavail()
*

*
place leave request

view leavereq
view leavereq

*
hod
empid : num
name : string
doj : date
dept : string

1
principal
empid : num
name : string
doj : date
dept : string

forward leavereq

viewleavereq()
forwardreq()
rejectreq()

viewleavereq()
acceptLeave()
rejectleave()

Use case Diagram for Leave Management System:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

viewno.of leaves

employee
apply leave

view leave req form


Hod

view leave req

forward leave req

reject leave req

Principle
accept/reject leave

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Sequence Diagram for Leave Management System:

:leavemgt

employee

hod

principal

login

:database

verifydetails

authenticated
checknumof leaves

retrieve information

display information
fill leave req
save request
login

view leavereq
display req

forward req

view req
dispaly req

accept leave
update information
view leave req status
retrieve information

dispaly information
logout

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Collaboration Diagram for Leave Management System:

12: forward req


employee
hod

3: authenticated
6: display information
19: dispaly information

principal

14: dispaly req

11: display req

1: login
4: checknumof leaves
7: fill leave req
17: view leave req status
20: logout

9: login
10: view leavereq

13: view req


15: accept leave

:database

:leavemgt
2: verifydetails
5: retrieve information
8: save request
16: update information
18: retrieve information

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Activity Diagram for Leave Management System:


(a)

Employee:

login

check num of
leaves

if leaves
no

leave request
not allowed

yes
Fill leave req
form

place req to hod

view leave
status

logout

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

(b)

Hod:

hod login

view leave
requst form

check leave
details

forward leave
request

reject leave
request

Logout

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

(c)

Principal:

principal login

view leave
request

Accept leave

Reject Leave

LogOut

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

State chart Diagram for leave Management System:

(a)

Employee

entry state

idle state

employee id,pwd

login

verification
authenticated

check leaves
avilable

place leave
req

view leave
status

logout

exit

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

(b)

Hod

Entry state

Idle state

hod id,pwd

Login

Verification
Authenticated

view leave
Request

forward leave

logout

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

(c)

Principal

EntryState
Idle State

principal id,pwd

Login

VerIfication
AuthenTicated

View Leave
Request

Accept
Leave

LogOut

exit

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Component Diagram for Leave Management System:

place leave
req
leavereq.exe

update.exe
Accept/reject
leave

grant
leave.exe

database

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Deployment Diagram for Leave Management System:

grant.exe

Leaverequest.exe

submits

accpt/reject

update.exe

updatestatus

leavemgt.exe

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Class Diagram for Elevator System:

Button class
illuminated : boolean
buttonpress()

ElevatorButton
illuminated : boolean

FloorButton
illuminated : boolean

elebuttonpress()

floorbuttonpress()
*

*
controls

Controls

ElevatorController

*
Elevator
doorsopen : boolean

Use case Diagram for Elevator System:

Press an Elevator Button


USER

Press a Floor Button

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

Sequence Diagram for Elevator System:

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Page No:

: USER

:FloorButton

:ElevatorButton

:Elevator
Controller

:Elevator

press floor button


send request
move in floor direction

check request
illumination cancelled
open doors

enters into elevator

press elevator button


send request
move in specified floor direction

check request

open doors
comes out of elevator
doors closed

wait for next request

Collaboration diagram for Elevator System


Sri sai aditya institute of science & technology
10P31D5816

Roll No:

Page No:

1: press floor button

: USER

8: press elevator button

:FloorButt
on

:ElevatorBu
tton

7: enters into elevator


13: comes out of elevator
5: illumination cancelled
9: send request
2: send request
4: check request
11: check request
15: wait for next request

3: move in floor direction


6: open doors
10: move in specified floor direction
12: open doors
14: doors closed

:Elevator
Controller

:Elevator

Activity Diagram for Elevator System:


Sri sai aditya institute of science & technology
10P31D5816

Roll No:

Page No:

pending
requests?

no

going into
wait state

yes
processing new
request

update
request

move elevator in
floor direction

check req floor no


or not
yes

continue to move in
floor direction

stop at
floor

turn off elevator


button

State Chart Diagram for Elevator System:


Sri sai aditya institute of science & technology
10P31D5816

Roll No:

Page No:

no requests pending doors closed


Elevator Event Loop

button pushed
Processing
new request

move in floor
direction

determine if
stop requested
no request at floor
continue
moving

user request stop


Stop at
floor

Turn off elevator


button

Component diagram for Elevator System:


Sri sai aditya institute of science & technology
10P31D5816

Roll No:

Page No:

press elevator
button
eleButto.exe

elecontroller.
exe
press floor
button

floor button.exe

Deployment Diagram for Elevator System:

eleButtonpress.exe
Floorbutton.exe

requests

requests

Elecontroller.exe

Sri sai aditya institute of science & technology


10P31D5816

Roll No:

Anda mungkin juga menyukai