object oriented analysis and design project: library management system (lms)

33
Object Oriented Analysis and Design Project: Library Management System (LMS) Submitted By: Memon Khurshed (Group Leader) - 2011194008 Hamed Abdollahpur 2011194006 Sherzod Rakhmatov 2011511001

Upload: malia

Post on 23-Jan-2016

208 views

Category:

Documents


13 download

DESCRIPTION

Object Oriented Analysis and Design Project: Library Management System (LMS). Submitted By: Memon Khurshed (Group Leader) - 2011194008 Hamed Abdollahpur2011194006 Sherzod Rakhmatov2011511001. Contents. Introduction Design Use Case Diagrams, Use Case Text Class Diagrams - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Object Oriented Analysis and Design Project: Library Management System (LMS)

Object Oriented Analysis and DesignProject: Library Management System (LMS)

Submitted By:Memon Khurshed (Group Leader) - 2011194008Hamed Abdollahpur 2011194006Sherzod Rakhmatov 2011511001

Page 2: Object Oriented Analysis and Design Project: Library Management System (LMS)

Contents• Introduction• Design– Use Case Diagrams, Use Case Text– Class Diagrams– Sequence Diagrams– State Chart Diagrams– Activity Diagrams

• Implementation– Desktop-based– Web-based

Page 3: Object Oriented Analysis and Design Project: Library Management System (LMS)

Introduction• Apply OOAD concepts on Library Management

System• Analysis emphasizes an investigation of the

problem rather than how a solution is defined (WHAT?)

• Design emphasizes a logical solution, how the system fulfills the requirements (HOW?)

Page 4: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case Diagrams - LMS

Page 5: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case Text - LMS• Use Case: UC0004 – Add new book• Scenario Name: Add new book• Main Actor: Librarian• Pre-condition: Logged in the system and have book to add• Post-condition: Book is entered in the system• Main Scenario: • Librarian: Click add new book• System: Show dialog to add new book • Librarian : Fill book name, author, isbn and other details• User: Click add button to save new book• System: saves new book information

Page 6: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case- Add New Book...

Alternative conditions and paths 4a. 1) System throws an error if any of compulsory field left empty

5a. 1) System unable to add new book due to database problem or Persistance

problem

Page 7: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case - Borrow BookScenario Name: Borrow bookMain Actor: LibrarianPre-condition: Logged in the system and have book to issue

to patronPost-condition: Book is removed from the sytemMain Scenario:

1. Librarian: clicks on borrow a book2. System shows borrow book page3. Librarian enters patron informatin4. System verifies patron information and return patron details5. Librarian enters book code to borrow and clicks submit6. System verifies book existance in the system7. System: updates book status and update patron information

Page 8: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case- Borrow Book...

Alternative conditions and paths

4a. 1) System could not verify patron informationSystem requests librarian to enter valid PatronId

4a. 2) System can not found patronIdSystem requests librarian to register patron first

5a. 1) Librarian clicks on submit without entering book codeSystem requests librarian to enter book code

6a. 2) System can not found bookSystem requests librarian to add book in the

system

Page 9: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case - Search BookScenario Name: Search bookMain Actor: LibrarianPre-condition: Logged in the systemPost-condition: Book exists in the systemMain Scenario:

1. Librarian: clicks on search book2. System shows search dialog box3. Librarian: Enter book name, author, or ISBN4. Librarian: Click search5. System: Shows founded books list

Page 10: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case- Search Book...

Alternative conditions and paths

4a. 1) System: if not found books by name, author or ISBN. System shows message ‘Not

found’

Page 11: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case – Return BookScenario Name: Return bookMain Actor: LibrarianPre-condition: Logged in the system and have book to

returnPost-condition: Book added in the systemMain Scenario:

1. Librarian: clicks on return book2. System shows return book dialog3. Librarian: Enter book code4. Librarian: Click on return book5. System: updates book status and Patron

information

Page 12: Object Oriented Analysis and Design Project: Library Management System (LMS)

Use Case- Return Book...

Alternative conditions and paths

4a. 1) System: if not found books by code. System shows message ‘Not found’.

4a. 2) System unable to update book or patron information due to database problem

Page 13: Object Oriented Analysis and Design Project: Library Management System (LMS)

• Use Case: UC0009 – Add New User• Scenario Name: Add New User• Main Actor: Administrator• Pre-condition: Logged-in the system• Post-condition: New user has been added• Main Scenario: • Administrator: clicks on add new user• System: shows add new user dialog• Administrator: enters user information • Administrator: clicks on submit• System: verifies user details and save new user in the system• Alternative conditions and paths • 4a. 1) Administrator clicks on submit without enter user

informationSystem requests administrator to provide valid user

information• 5a. 1) System shows “user already exists” message as provided

username already exists

Use Case – Add New User

Page 14: Object Oriented Analysis and Design Project: Library Management System (LMS)

Domain Model - LMS

• In the domain model only the noteworthy conceptual classes are included.

• A simplified representation of library management system’s domain model

Page 15: Object Oriented Analysis and Design Project: Library Management System (LMS)
Page 16: Object Oriented Analysis and Design Project: Library Management System (LMS)
Page 17: Object Oriented Analysis and Design Project: Library Management System (LMS)

Class Diagram - LMS

Page 18: Object Oriented Analysis and Design Project: Library Management System (LMS)

Sequence Diagram - LMS

• Collaboration diagrams illustrate object interaction in a graph or network format.

• Types:– Sequence diagrams – Communication Diagrams

Sequence Diagrams:Clearly shows sequence or time ordering of message;

Page 19: Object Oriented Analysis and Design Project: Library Management System (LMS)

Sequence Diagram – Add Book

Page 20: Object Oriented Analysis and Design Project: Library Management System (LMS)

Sequence Diagram – Borrow a Book

Page 21: Object Oriented Analysis and Design Project: Library Management System (LMS)

Sequence Diagram – Return Book

Page 22: Object Oriented Analysis and Design Project: Library Management System (LMS)

Sequence Diagram – Search Book

Page 23: Object Oriented Analysis and Design Project: Library Management System (LMS)

StateChart Diagrams - LMS• A state diagram describes how a certain entity

changes state as a result of various events.• Diagram showing how something changes from

one state to anothe• Good for finding missing or obscure functions.• Use only for complex life cycles.

Page 24: Object Oriented Analysis and Design Project: Library Management System (LMS)

Book State- LMS

Page 25: Object Oriented Analysis and Design Project: Library Management System (LMS)

Patron State- LMS

Page 26: Object Oriented Analysis and Design Project: Library Management System (LMS)

Activity Diagrams - LMS• A diagram showing the flow of control and the

flow of data (objects).• Handles concurrency and synchronization• Useful as requirements for workflow

applications.

Page 27: Object Oriented Analysis and Design Project: Library Management System (LMS)

Activity Diagrams – Add Book

Page 28: Object Oriented Analysis and Design Project: Library Management System (LMS)

Activity Diagrams – Borrow Book

Page 29: Object Oriented Analysis and Design Project: Library Management System (LMS)

Activity Diagrams – Return Book

Page 30: Object Oriented Analysis and Design Project: Library Management System (LMS)

Activity Diagrams – Search Book

Page 31: Object Oriented Analysis and Design Project: Library Management System (LMS)

Activity Diagrams – Add New User

Page 32: Object Oriented Analysis and Design Project: Library Management System (LMS)

Implementation

• We will go through our Project Implementation

Page 33: Object Oriented Analysis and Design Project: Library Management System (LMS)

Thanks