Library Management System
Library Management System
DATE:
AIM
To design an object oriented model for Library Management System using Rational Rose
software and to implement it using Java.
PROBLEM STATEMENT
The library management system is a software system that issues books and magazines to
registered students only. The student has to login after getting registered to the system. The
borrower of the book can perform various functions such as searching for desired book, get the
issued book and return the book.
CLASS DIAGRAM
A class diagram in the unified modeling language is a type of static structure diagram that
describes the structure of a system by showing the system’s classes, their attributes, operations
and the relationships among objects. The library management system makes use of the following
classes user, librarian, system and DBA.
USE CASE DIAGRAM
Use case is a list of actions or events. Steps typically defining the interactions between a
role and a system to achieve a goal. The use case diagram consists of various functionality
performed by actors like user, librarian, system and DBA.
login
display page
issue book
return book
DBA
maintain database
logout
DEPLOYMENT DIAGRAM
Deployment diagram is a structure diagram which shows architecture of the system as
deployment of software artifacts to deployment target. It is the graph of nodes connected by
communication association. It is represented by three dimensional box. The device node is
library management system and execution environment nodes are user, librarian, system and
DBA.
library management
system
DBA
user
librarian
COMPONENT DIAGRAM
Component diagram shows the dependencies and interactions between software
components. Component diagram carries the most important living actors of the system i.e, user,
librarian and DBA.
library management
system
user DBA
librarian
STATECHART DIAGRAM
State chart diagram is also called as state machine diagram. The state chart diagram
contains the states in the rectangular boxes and the states are indicated by the dot enclosed. The
state chart diagram describes the behavior of the system. The state chart diagram involves eight
stages such as login, enter details, requesting for book, display book details, search book, issue
book, return book and logout.
public Dba()
/**
@roseuid 59D07EC80314
*/
public Librarian()
{
/**
@roseuid 59D07E650105
*/
/**
@roseuid 59D07E6A029B
*/
public System()
}
/**
@roseuid 59D07E8B0328
*/
/**
@roseuid 59D07E90034C
*/
public User()
}
/**
@roseuid 59D07E0401D5
*/
/**
@roseuid 59D07E0A016F
*/
/**
@roseuid 59D07E240232
*/
/**
@roseuid 59D07E2B0185
*/
{
}
/**
@roseuid 59D07E310090
*/
}
COLLABORATION DIAGRAM
Like sequence diagram collaboration diagrams are also called as interaction diagram.
Collaboration diagram convey the same informations as sequence diagram but focus on the
object roles instead of the times that messages are sent. Here the actions between various classes
are represented by number format for the case of identification.
13: if valid
1: login
2: enter details
11: logout
12: requesting book
user system
5: display page
14: display page
6: requesting book 15: 3: check details
10: return book
9: issue book 7: search book
4: if valid
8: display details
librarian
dba
SEQUENCE DIAGRAM
A sequence diagram represent the sequence and interactions of a given use case or
scenario. Sequence diagram capture most of the information about the system. It is also represent
in order by which they occur and have the object in the system send message to one another.
Here the sequence starts with interaction between user and the system followed by database.
Once the book have been selected the next half of sequence starts between librarian and user
followed by database.
login
enter details
check details
if valid
display page
requesting book
search book
display details
issue book
return book
logout
ACTIVITY DIAGRAM
Activity diagram are graphical representation of workflows of stepwise activities and
actions with support for choice, iteration and concurrency. Here in the activity diagram the user
login to the system and perform some main activity which is the main key element to the system.
login
request book
search book
display book
details
issue book
logout
RESULT
Thus the various UML diagrams for library management system was drawn and the code
was generated successfully.