Sei sulla pagina 1di 10

UML representation of

library SYSTEM

CLASS DIAGRAM

College name code

Library no.ofbooks() no.ofdept.s() 1 1 * Librarian name designation issuebook() renewbook() Student name id branch selectdept() selectbook() 1 1 * Books name author publications no.ofbooks() * Depts name code no.ofdepts()

OBJECT DIAGRAM

c:college

name:NEC code:47

l:library

ll:librarian

b:book

s:student

d:dept

name:Subba Rao designation:06-SS3

name:Introduction toUML Author:Gooch Publications:P ears on

name:Sameer branch:CSE id:06-5B4

name:CSE code:027C6

COMPONENT DIAGRAM

c ollege.e xe

c ontains details of c ollege

library.ex e

c ontains book s

librarian.e xe

dept.exe

book .ex e

s tudent.e xe

is s ues or renews book s

c ontains list of departm ents

c ontains list of book s

c ontains details of s tudents

DEPLOYMENT DIAGRAM

<<processor>> college

<<device>> raid

contains details of college

<<processor>> library

<<device>> terminal

contains details of library

<<processor>> student

<<device>> raid terminal

contains student details

<<processor>> books

<<device>> raid1

contains details of number of books

<<processor>> departments

<<device>> terminal1

contains details of number of departments

USECASE DIAGRAM

enter library <<include>>

select department <<include>>

list of departments

search books

list of books

student

select book

submit library card

receiv book e

check library card

librarian

enter details of book

issue book

renew book

SEQUENCE DIAGRAM

s :s tudent

l:library

c :c ollege

lb:librarian

b:book

d:departm ent

get adm is s ion enter library lis t of departm ents s elec t departm ent s earc h for book s s elec t book s ubm it library c ard c hec k details is s ue book

as k for renew al c hec k details renew book

COLLABORATION DIAGRAM

1 : get ad m is s ion s :s tu de n t c :c olle g e 2 : e nte r libra ry 4 : s ele c t de p art m en t

l:libra ry

3: lis t of d e pa rtm en ts d :de p artm e nt

5 : s e a rc h for b o ok s 6: s e lec t bo o k 7 : s u b m it libra ry c a rd 1 0: a s k fo r ren e w a l 8: c he c k de tails 9: is s ue b oo k 1 1 : c h e c k d e tails 1 2: re n ew b ook

b :b o ok

lb: libraria n

ACTIVITY DIAGRAM

Enter Library

Issue Select department

Renewal Check details

Search books

Get renewal

Select book

Submit library card

Valid Note details of book Receive the book invalid

STATECHART DIAGRAM

idle

enter library active select department

search book

select book invalid exit library submit library card

valid note the details of book

issue the book

Potrebbero piacerti anche