Click here to load reader
Author
remanaromana
View
1.044
Download
4
Embed Size (px)
Library management systemAnalysis and design using UML1/12/2009
Rabha said Mansur
ID 11091
Supervised by: Dr. Adal asmeda
Library Management System
2
Library Management System
Introduction.
00 1.1 Problem statement.1.2
System objectives
1.3 Project scope . 1.4 Project approach 1.5 Context Diagram Notation about DFD.
2.1Data flow diagrams. 2.2Decomposed DFDs. 2.2.1 Process Create bills [3]. 2.2.2 Process Create reports and queries [4] 2.2.3 Process Maintain Books Information [1] 2.2.4 Process Make book search [2] 3.1 State transaction diagram STD 3.2 Screen hierarchy. Appendix: A.1 Conclusion A.2 References
3
Library Management System
figuresFigure 2.1 Figure 3.1 Figure 3.2 Figure 3.3 Figure 3.4 Figure 3.5 Figure 3.6 Figure 3.7 Figure 3.8 Figure 3.9 Figure 3.10 Figure 4.1 Figure 4.2 figure figure Context diagram DFD level 0 DFD level 1 Maintain Books Information DFD level 2 Maintain author DFD level 2 Maintain subject DFD level 2 Maintain sub subject DFD level 2 Maintain publisher DFD level 2 Maintain book author DFD level 2 Maintain book DFD level 1 Make book search DFD level 1 Create bills use case diagram class diagram sequence diagram State transaction diagram (STD)
4
Library Management System
1.1 Introduction.The aim of this project is to design and implement an online library, which will enable users to search for books and browse information about these books as the abstract, publisher information, cost, table of contents, etc. The database of the library based on one of the standardized systems for cataloging and classifying the books. We follow the standardization rules to assign subjects and sub-subjects codes, and to classify books under subjects and sub-subjects.
5
Library Management System
1.2The curnt system it is manually system where librarian have to process every thing manually from organizing the books and place them in the right place write shelf to retrieve them for the library visitors and that is overwhelming consuming process 1.3 Problem for the current system.Retrieving books from a library is very important for many peoples. The main problem is to define whether this book is exactly what the user wants and where this book resides in the library (to go and pick). And that with be source of some of these hinders in books searching in library1-
Wasting a lot of time looking for the book in the wrong location in the library Use the wrong search item and ending up with the same title for more than author6
2-
Library Management System
3-
Misallocate books in the wrong section the wrong shelf Search process consume allot of the librarian time as well as the visitor and it could be overwhelming for the librarian specially if they have to deal with more than one visitor at the time
4-
There is a need for designing an advanced search engine that searches a library database and returns a complete book record, including the shelf number on which the book resides
1.3 System Objectives. Design and implement a library database based on a standard library classification system. Build an advanced search that can help for the best handling of user queries, this search should handle different search types like searching by author, title, subject, format or any combination of them, or searching by ISBN, or Publisher and Publication date. The search result should contain
7
Library Management System
information about the exact location of the book. Build the interface between the online screens and the library database system.
1.4 Project Scope.Project scope will be contains the following activities: Reception activities. Sales transactions. Accounting system. Book store follow up. Using internet facilities to connect all branches together.
Activities to be covered in our project The following is the activities that will be covered in our project scope: Maintain book information.8
Library Management System
Maintain publisher information. Maintain author information. Handel search request. Handel retrieval operations like:-. - List all books with specific title. - List all books with specific author name. - List all books classified under specific sub-subject. - List all books with any combination of title, subject and author. - List all books published by a certain publisher. - List all books published in a certain date. - Retrieve a book with a given ISBN. - List all books belong to a certain series.
1.5
Project approach.
To solve our problems in this system, we will use the following structured approach to achieve the system goals using the next steps in analysis and design phases:-
Analysis phase:
9
Library Management System
In this phase we want to analyses the system and tray to explain the moving data between different components of the system. * Prepare the context diagram, which it is the highest level view of the system, it contains only one process and a number of data flows and also a number of sources. It is an overview of an organizational system that shows the system boundaries, external entities that interact with the system, and the major information flows between the entities and the system. * Data flow diagram (DFD). It is a logical model of the system. These diagrams have a notification for each of the components of the system, they also have a notification for representing different level in a hierarchy of detail used to describe the system. *use case diagram use case in a use case diagram is a visual representation of a distinct business function in a system. For10
Library Management System
example, In a banking application, a deposit function represents a use case *Class diagram Its the conceptual model ; and its use conceptual ion to visuals the basic concept of the system in the analysis stage
Design phase: * Prepare the (ER) entity relationship diagram, which it is a data model that determines the relationships between several entities in the system. * ER to relational data model mapping. * Normalization. The normalization process takes a relation schema through a series of tests to certify weather it satisfies a certain normal form. *Sequences diagram It call interaction diagram too ;in it the transformation for the analysis requirements to the its final functionality in the destine stage11
Library Management System
2.3 Context Diagram:The context diagram is the highest level view of the system, it contains only one process, no data stores, and a number of data flows and also a number of source/sinks. The single process represents the entire system and its labeled o. The source/sinks represent its environmental boundaries. Since the data stores conceptually inside the one process, no data stores appear on a context diagram. It is an overview of an organizational system that shows the system boundaries, external entities that interact with the system, and the major information flows between the entities and the system. In the figure, the context diagram of the System is shown. It consists of the following entities and the following data flows. Reception: This source represents the first step to start functions of our system that this section meet the customer to give him the answers of different questions he needs. Administration: This source represents the main department in library which responsible12
Library Management System
for managing all the information which the system needs. Cashier: This section responsible for customers payment and issue the bills. Data flow: Customer request: this request from user to reception to inquiry about certain book with little information about this book, reception clerk will search and replay to customer about his needs in suitable time. Bill: prepared by cashier for all items purchased by customer using the information system which contains information about all items in the library like item description, quantity, item price and total value for bill. Statistical reports: prepared by computer department to help the mangers in the library to take a suitable decisions in the suitable time.
Process Library Management System
13
Library Management System
C o n te x t Connected viaBills issuing Maintain books information make searchR e c e p ti o n
D ia g rConnected p h a m G r a toCashier (External Entity) Administration (External Entity) Reception (External Entity)0
Src
Dst X X X
Queries and Reports e i re s a n d R e p o rt s(External Entity) Q u Reception Queries and Cashier (External gEntity) M ana em ent a p se S y st e m invoices Q u e ri e s a n dm re keo rts a rc h Queries and reports Administration (External Entity)Q u e ri e s a n d i n v o i c e s L i b ra ry
X X
B i l l s i ssu i n g
C a sh i e r
X
A d m i n i st ra t i o n M a i n ta i n b o o ks i n f o rm a ti o n
14
Library Management System
3.2 Notation about DFD.First, Data Flow Diagram is a logical model of the system, the model does not depend on hardware, software, data structure or file organization. It is a graphical picture of the logical system. It is an excellent tool for communication with user to explain the system for him. Data Flow diagram describes what happen not how is happens. Data Flow diagrams have a notation for each of the components of a system. They also have a notation for representing different level in a hierarchy of detail used to describe the system. This notation makes it possible to represent an overall view of a large complex system and a detailed view of a part of a system using the same notation. Parts of a system can be isolated into independent subsystems. These work together as a unit to perform a set of processes that must be done together at one time. There is a standard process that an analyst can follow to make sure that all components of a system are identified. Data Flow Diagrams are constructed from four basic building blocks: Terminators15
Library Management System
Data stores , Data Flows, and Process.
Connected via enter sub subject data Read author data Read book authors Read book information read publisher data read sub subject data read subject data Subject data updating Updating author data Write Book author data Write book data Write Publisher data Write sub subject data
Connected to Administration (External Entity) Author (Data Store) Book_author (Data Store) Book (Data Store) Publisher (Data Store) Sub_subject (Data Store) Subject (Data Store) Subject (Data Store) Author (Data Store) Book_author (Data Store) Book (Data Store) Publisher (Data Store) Sub_subject (Data Store)
Src
Dst X X X X X X X
X X X X X X
16
Library Management System
DFD level 0
D a t a F lo w D i a g r a m L e v e l 0D1
D4
P u b lis h e r
D5
B o o k _ a u th o r
A u th o rW ri te P u b lis h e r d a ta R e a d a u th o r d a ta r e a d p u b lis h e r d a ta R e a d b o o k a u th o rs U p d a tin g a u th o r d a ta p u b lis h e r d a ta re a d in g b o o k a u th o r_ d a ta _ r e a d in g W r ite B o o k a u th o r d a ta
A d m in is t r a tio n
1e n te r s u b s u b je c t d a ta
a u th o r re a d in g
M a in t a in B oo ks In f o r m a tio n +
2S u b je c t r e a d i n g
B o o k s Q u e ry
M ake boo k search
R e c e p tio n
S u b s u b je c t re a d in g r e a d s u b j e c t d a ta R e a d in g a u th o r d a ta re a d s u b s u b je c t d a ta S u b je c t d a ta u p d a tin g W r ite s u b s u b je c t d a ta R e a d b o o k in fo r m a tio n W r ite b o o k d a ta
+
B o o k s r e s u lt
b o o k s d a ta re a d in g
D2
S u b je c tD6
Bookd a ta r e a d in g o f b o o k s
D3
S u b _ s u b je c t
R e a d in g s u b s u b je c t d a ta
3 C rea te b ills +R e a d in g p u b lis h e r d a ta
c r e a te b ill
C a s h ie r
Q u e r ie s a n d in v o ic e s
4R e a d in g s u b je c t d a ta is s u e r e p o rts
C r e a te r e p o rts a n d q u e r ie s
W r ite b ill d a ta R e a d b ill d a ta
R e a d in g b o o k d a ta
D7
B illin g
17
Library Management System
Connected via Enter book data Read book information Readin book author Reading puplisher information Reading sub subject information Reading subject information Write book data
Connected to Administration (External Entity) Book (Data Store) Book_author (Data Store) Publisher (Data Store) Sub_subject (Data Store) Subject (Data Store) Book (Data Store)
Src
Dst X X X X X X
X
Sub process Maintain book
18
Library Management System
D F D L evel 1 fo r P ro cess #1E n te r a u th o r d a ta
1 .1 M a in ta in a u th o r
[R e a d a u th o r d a ta ] [U p d a ti n g a u th o r d a ta ] R e a d in g b o o k a u th o r
D1
A u th o r
+
E nte r s u b je c t d a ta
1 .2 M ia n ta in s u b je c t
[re a d su b j e c t d a ta ]
D 2
S u b je c t
b o o k re a d in g
+
[S u b j e c t d a ta u p d a ti n g ] R e a d in g s u b s ub je c t
A d m in is tr a tio n[e n te r su b su b j e c t d a ta ]
1 .3 M a in ta in sub s u b je c+ t 1 .4[re a d su b su b j e c t d a ta ] [W ri te su b su b j e c t d a ta ]
R e a d in g s u b je c t
D3
S u b _ s u b je c t
E n te r p u b lis h e r d a ta re a d b o o k
M a in t a in p u b lis h e r
[re a d p u b l i sh e r d a ta ] [W ri te P u b l i sh e r d a ta ]
+
D4
P u b lis h e r
1 .5E n te r b o o k a uth or
b o o k re a d
M a in t a in book a u t h o r+ 1 .6
R e a d in g a u th o r [R e a d b o o k a u th o rs] D 5 [W ri te B o o k a u th o r d a ta ]
B o o k _ a u th o r
E n te r b o o k d a ta
R e a d in b o o k a u th o r R e a d in g p u p lis h e r in fo rm a tio n R e a d in g s u b s u b je c t in fo rm a tio n R e a d in g s u b je c t in fo rm a tio n
D6
Book
[R e a d b o o k i n fo rm a ti o n ] [W ri te b o o k d a ta ]
M a in ta in book
+
Sub process Maintain book author
19
Library Management System
Connected via Enter author data Read author data Reading book author Updating author data
Connected to Administration (External Entity) Author (Data Store) Book_author (Data Store) Author (Data Store)
Src
Dst X X X
X
DFD Level 2 process 1.1
[En te r a utho r d ata ]
1.1.1 A dd new author no
Da ta a dding
A dm inistrationMa inte na nc e da ta
1.1.2 U pdate author data[Re a d a u tho r d a ta] da ta updating
D1
A u th o r
1.1.3author da ta
D elete author data[Up d a ting a u th o r d a ta ]
[Re ad in g b o o k a u th or]
D5
B o o k _ a u th o r
Sub process Miantain subject20
Library Management System
Connected via book reading Enter subject data read subject data Reading sub subject Subject data updatingDFD Level 2 for process 1.2[Enter subject data]
Connected to Book (Data Store) Administration (External Entity) Subject (Data Store) Sub_subject (Data Store) Subject (Data Store)
Src
Dst X X X X
X
1.2.1 Add new subject code
Adding new subject data
1.2.2 AdministrationFlow of subject data
Update specific subject
[read subject data] data subject updating
D2
Subject
[Reading sub subject]
D3
Sub_subjectReading sub subject
1.2.3 delete subject code
Enter subject code
[Subject data updating]
[book reading]
D6
Book
Sub process Maintain sub subject21
Library Management System
Connected via enter sub subject data read sub subject data Reading subject Write sub subject data
Connected to Administration (External Entity) Sub_subject (Data Store) Subject (Data Store) Sub_subject (Data Store)
Src
Dst X X X
X
D F D L e v e l 2 f o r p r o c e s s 1 .31 .3 .1[e n te r su b su b j e c t d a t a ]
A dd n ew su b s u b je c t
[W ri te su b su b j e c t d a ta ]
[R e a d i n g su b j e c t]
D2
S u b je c tR e a d in g s u b je c t
A d m in is tr a tio n
1 .3 .2D a ta e n te r
U p d a te s u b s u b je c t d a ta
[re a d su b su b j e c t d a t a ] d a ta s u b s u b je c t u p d a tin g
D3
S u b _ s u b je c t
1 .3 .3E n te r d a ta
D e le te s u b s u b je c t
u p d a tin g d a ta
R e a d in g b o o k d a ta
D6
Book
Sub process Maintain publisher
22
Library Management System
Connected via Enter publisher data read book read publisher data Write Publisher data
Connected to Administration (External Entity) Book (Data Store) Publisher (Data Store) Publisher (Data Store)
Src
Dst X X X
X
D F D L e v e l 2 f o r p r o c e s s 1 .4
[E n te r p u b l i sh e r d a ta ]
1 .4 .1 A d d n ew p u b lis h e r
[W ri te P u b l i sh e r d a ta ]
A d m in is tr a t io nM a inte n a n c e da ta
1 .4 .2 U p d ate p u b lis h e r d a ta[re a d p u b l i sh e r d a ta ] P u blis he r da ta u p da ting
D4
P u b lis h e r
1 .4 .3 D e le te p u b lis h e r d ataU pd a tin g p u blis he r da ta
P u b lis h e r d a ta
[re a d b o o k]
D6
Book
Sub process Make book search23
Library Management System
Sub process Search by authorConnected via author reading book author_data_reading books data reading Books Query Books result Connected to Author (Data Store) Book_author (Data Store) Book (Data Store) Reception (External Entity) Reception (External Entity) X Src Dst X X X X
Sub process Search by bookConnected via Book query Book result Reading book Connected to Reception (External Entity) Reception (External Entity) Book (Data Store) X X Src Dst X
Sub process Search by publisherConnected via publisher data reading Publisher query Puplisher result Reading book information Connected to Publisher (Data Store) Reception (External Entity) Reception (External Entity) Book (Data Store) X X Src Dst X X
Sub process Search by subject and sub subjectConnected via Book reading data Connected to Book (Data Store) Src Dst X
24
Library Management System
Sub subject reading Subject query Subject reading Subject result
Sub_subject (Data Store) Reception (External Entity) Subject (Data Store) Reception (External Entity) X
X X X
D V D L e ve l 1 fo r p ro c es s # 2
[B o o ks Q u e ry ] [ B o o ks re su l t]
2 .1 S earch b y a u th o r
[ a u t h o r re a d i n g ]
D1 D5
A u th o r B o o k _ a u th o r[b o o ks d a t a re a d i n g ]
[ b o o k a u th o r_ d a t a _ re a d i n g ]
B o o k r e a d i n g d a ta S u b je c t q u e r y S u b je c t re s u l t
2 .2 S earch b y s u b je c t a n d s u b s u b je c t[ S u b j e c t re a d i n g ] D 2 [ S u b su b j e c t re a d i nD 3 g]
S u b je c t S u b _ s u b je c t
R e c e p t io nR e a d i n g b o o k i n fo r m a ti o n
P u b lis h e r q u e ry
2 .3 S earch b y p u b lis h e rD4
P u p lis h e r re s u lt
[p u b l i sh e r d a t a re a d i n g ]
P u b lis h e r
2 .4B o ok que ry B o o k re s u lt
S earch b y book
R e a d in g b o o k
D6
Book
Sub process Create billsConnected via create bill Connected to Cashier (External Entity) Src Dst X
25
Library Management System
data reading of books Queries and invoices Read bill data Write bill data
Book (Data Store) Cashier (External Entity) Billing (Data Store) Billing (Data Store) X X
X
X
D FD Level 1 process #33 .1 A dd new b ill
[c re a te b i l l ]
[W ri te b i l l d a ta ]
[d a ta re a d i n g o f b o o ks] Re a ding book s
D6
Book
C a s h ie rbill da ta
3 .2 U p d a te b ill d a ta[Re a d b i l l d a ta ] Upda ting da ta
D7
B illin g
3 .3e nte r bill da ta
D ele te b ill d a ta
Upda ting bill da ta
3 .4[Q u e ri e s a n d i n vo i c e s]
Is s u e in v o ic e
inv oic e a nd re port
Use case diagram 1-In this use case diagram administrate the
26
Library Management System
2-requirement with simple symbols; easy for the use to understand 3-It covers the whole system and how it works and any thing out of the system borders that means its not in the system 4-It make it easier to communicant between the client and the system developers
27
Library Management System
Class diagram in this conceptual model we descript the basic concepts of the system and its relationships with each other ; in this point we do not pay much attention to the system behavior in this conceptual model we determent the basic concepts of the for the library system we analysis 1234Administrative Reception Cashier Book
28
Library Management System
Designe stage
29
Library Management System
Entity-Relationship Data Model (E-R Model): It is detailed Logical representation of the entities, association, and data elements for an organization or business area. * Entity-Relationship Diagram (E-R Diagram): It is graphical representation of ER Model. Entity Type: A collection of entities shared common properties or characteristics. Attribute: A named property or characteristic of an entity that is of interest to the organization. Relationship: it is association between the instances of one or more entity types that is of interest to the organization.
*
*
30
Library Management System
E R D ia g r a m fo r O n lin e lib r a r y
W r itte n b y
bookis b n ti tl e n u m b e ro fv o l u m e s p u b l i sh e r y e a r m o n th e d i ti o n p ri c e n o te fo rm a t n u m b e ro fp a g e d im e n ti o n c a lln u m b e r ta b le o fc o n ta n t
C O N T A IN E S
a u th o ra u th o r id a u t h _ f i rst a u t h _ l a st a u th _ fu l l n a m e a u th _ e m a i l a u t h _ c o u n try a u th _ p h o n e _ n o A u th e r i n fo r m a t i o n
BO O K_AUTHE R
b illin gb ill_ n o b o o ks_ c o u n t va lu e d i sc o u n t n o te s
SUBJECTs u b j e c ti d su b j e c tn a m e In c lu d e s
R e l a te d _ t o
P u b lis h e d b y
P U B L IS H E Rp u b lis h e r id p u b l i sh e r n a m e p u b l i sh e r p l a c e
SUB_SUBJECTs u b s u b j e c tid su b su b j e c t n a m e B e l o n g s to
31
Library Management System
3.5 State transaction diagram
STD
It is represent dynamic models of how objects change their states in response to events. It is a model of the states of an object and the events that cause the object to change from one state to another. A state is shown as a rectangle with rounded corners. In figure we have shown different states of Book order object such as user entrance, order form, database accessing , searching result and getting results. The state diagram shows how the object transactions from an initial state to other states, when certain events occur or when State Transition Diagram certain conditions are satisfied.User number, user password written Order clicked User entrance [if the form is fill] / go to db Order form [if not there ] /display message [if form not fill] / display form
Order searched Db accessing Search result
[if there ] / display result
Order booked
Book button is pressed Result pages
Confirmation message is displayed
32Getting confirmed message
Library Management System
Screen Hierarchy Chart
0 Online library sy s t e m m a i n m en u
1.0 System Codes
2.0 Ba s i c d a t a
3.0 Tr a ns a c t i o n data
4 .0 Q u e ri e s
5.0 Report
1.1 C ou n t r i e s codes
2.1 Author
3.1 Book
4.1 Search book b y n a me
5.1 Authors
1.2 P u bl i s h e r p l ac e c o d e
2.2 Main subject 3.2 Billing 2.3 s u b s ub j e c t 4.3 S e a r c h b oo k by p ub l i s h e r 4.4 S e a r c h b o ok b y s u b j ec t 5.5 B i l l i ng 4.2 Search book b y au t h o r
5.2 Subjects
5.3 Publishers
2.4 Pu b l i s h e r
5.6 d a i ly a n d m o n th l y sa l e s
5 .4 Books by m a n y m e t ho d
33
Library Management System
A.1 Conclusion.After prepared analysis and design for this system, we try to replace the manual system by automated one. In our analysis we used high techniques to prepare a good design to be easy for implementation phase, so we hope that this system will appear in a good case. This new system is required to match new fast technology age for helping libraries requirement. The new system can be integrated with other librarys systems to get full benefit.
A.2 References. 1- Elmasri, R. and Navathe, Fundamentals of Database Systems. Benjamin / Cummings publishing company, California, USA 2- Jeffrey A. Hoffer & Joey F. George & Joseph S. Valacich. Modern System Analysis & design.
34