Báo cáo phân tích thiết kế hệ thống quản lý thư viện - Pdf 14

TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NÔI
VIỆN CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
BÁO CÁO MÔN HỌC:
PHÂN TÍCH VÀ THIẾT KẾ HỆ THỐNG THÔNG TIN
GIẢNG VIÊN: TRẦN ĐỨC KHÁNH
ĐỀ BÀI: PHÂN TÍCH THIẾT KẾ HỆ THỐNG QUẢN LÝ
THƯ VIỆN
Sinh viên thực hiện: Nguyễn Trí Quân.
SHSV : 20092135
Lớp : KTMT & TT 1.
1
I. Phân tích chức năng.
1. System Requirements of Library System
You are working on a new business system for S City Library. The library wants to
systematize book check-out, return, search and reservation as well as usage status
check. Assume that the library has multiple copies of the same books, each of
which is identified by its book number. The library also wants to offer book search,
reservation and usage status check services to the public over the Internet. S City
Library is available to the public from 9:00 to 18:00.
(1) User registration
- To borrow a book, users first create their “borrower’s cards”.
- They fill out the “borrower’s card application form”, and submit the filled form
with their identification (e.g. health insurance card or driver’s license) to the front
counter of the library.
- Internet users can access the library system using their accounts and tentative
passwords that are issued when they register as library users. The tentative
password can be changed at any time.
(2) Using the library system via the Internet
- Users can use the library system via the Internet by entering their accounts and
passwords.
- Library staff enter their employee numbers and passwords. They leverage the

reason. For example, the book has been checked out.
- Users cannot reserve books that the library does not own.
- The system processes reservation in units of book titles. (A book number cannot
be specified.)
- The system assigns an administration number (reservation number) to each
reservation.
- A user can reserve up to 10 books (excluding books that had been reserved and
has already been checked out 
- The system does not allow double reservations for the same book.
- When a reserved book is held for the general user, library staff notify the user of
it by phone or e-mail. Users can specify their contact method (phone or e-mail) at
the time of reservation.
- The system allows checking the information on reservation that is made by a
general user.
(7) Checking usage status.
- The library system allows checking the status of the books that a general user has
borrowed or reserved. Usage status check can also be performed over the Internet.
System users can check the usage status on the usage status check screen after
logging on to the library system.
2. Business Analysis.
2.a. Business Activities.
• Log on.
• Searching Book.
• Reserving Book.
• Check Usage Book.
• Register.
4
• Lending Book.
• Returning Book.
2.b. Business Process.

7
yes
no
available
• Lending book
User Librarian System
8
Request to borrow book
Take book to librarian
Book
Take book to user.
Enter borrower’s name
Enter BookID of lending books
Check lending condition
Inform to user
Check book’s status
Inform failure
Inform success
Change book status and
borrower profile
3. PHÂN TÍCH CA SỬ DỤNG
3.a.Xác định tác nhân và usecase
9
no
yes
Reserved?
yes
no
yes
no

password is correct.
3
If the actor is successfully logged on the “library staff
menu” or “citizen user menu” appears.
Exception
2a
The librarian or citizen user
corresponding to the entered
ID is no found.
2b The entered librarian or citizen users password is wrong.
1a There are some blank fields.
Scenarios Description
U001-#01 The citizen user is successfully logged on.
U001-#02 The librarian is successfully logged on.
U001-#03 The user information corresponding to the ID is not found.
U001-#04 The entered password is wrong.
U001-#05 There are some blank fields.
• Lend book.
UseCaseID U002
11
Name Lend book
Summary Thực hiện chức năng mượn sách của hệ thống
Actor A librarian
Preconditions The librarian đã đăng nhập vào hệ thống
Description
No Actor
1
Tác nhân nhập vào các thông tin “library card number”,
“bookid”, ”reservation number”.
2

6a
Người dùng đang mượn sách
quá hạn .
5b
Số lượng sách mượn lớn hơn 10 quyển.
4a
Lượng sách trong thư viện không còn đủ để cho mượn.
3a
“bookid” không đúng.
3b
“reservation” không đúng.
2a
“library card number” không đúng.
1a
Một số trường bỏ trống.
Scenarios Description
U002-#01
Người dùng mượn sách thành công
U002-#02
Người dùng vi phạm quy định mượn trả sách
U002-#03
Vượt quá số lượng sách mượn quy định
U002-#04
Thư viện không còn sách để cho mượn
U002-#05
Nhập thông tin “bookid” không chính xác
U002-#06
Nhập thông tin “reservation” không chính xác
U002-#07
Nhập thông tin “library card number” không chính xác

Summary Tìm kiếm các sách có trong hệ thống
14
Actor Người dùng và người quản lí thư viện
Preconditio
n
Người dùng đã đăng nhập thành công vào hệ thống
Description 1. Người dùng chọn từ khóa để tìm sách và nhập vào từ khóa cần
tìm kiếm
2. Hệ thống kiểm tra sự tồn tại của sách theo từ khóa
3. Khi hệ thống tìm thấy sách theo từ khóa, kiểm tra là từ khóa
được chọn là theo “tên sách”, “tác giả” hay “nhà xuất bản”. Và hiện
thị kết quả tìm kiếm lên màn hình.
Exception 1a. Ô nhập từ khóa tìm kiếm còn trống
2a. Sách theo từ khóa đã nhập vào không tồn tại trong hệ thống
Scenarios Mô tả
U004#01 Trên màn hình là danh sách các sách cùng tên
U004#02 Trên màn hình là danh sách các sách của cùng 1 tác giả
U004#03 Trên màn hình là danh sách các sách của cùng một nàh xuất bản
U004#04 Hệ thống không tồn tại sách theo yêu cầu của người dùng
U004#05 Người dùng chưa nhập từ khóa tìm kiếm
• Check usage status
Usecase ID U005
Name Kiểm tra trạng thái sử dụng
Summary Hệ thống kiểm tra trạng thái sách của thư viện khi người dùng mượn
hoặc trả sách
Actor Quản lý thư viện, người dùng
Precondition Quản lý thư viện, khách hàng đã đăng nhập thành công vào hệ thống
15
Description N
o

Logical Data Modeling
Screen/Slip Design
Object Analysis
Scenario Analysis
II. High Level Design.
High Level Design bao gồm các bước sau:
1.Scenario Analysis. (Phân tích kịch bản).
Ở bước phân tích kịch bản ta xác đinh các đối tượng mà ta sẽ sử dụng rồi
dùng chúng để vẽ biểu đồ tuần tự cho từng Use Case. Trong biểu đồ tuần tự thứ tự
từ trên xuống dưới là theo thứ tự thời gian. Chiều mũi tên từ A B tức là trong
một đoạn code nào đó của A phải gọi B, và phương thức trên mũi tên phải là một
phương thức có trong B.
17
1.1. Lending Book.
Object Boundary Entity Objects Control Object
• Lending Screen.
• Result lending
screen.
• Lending error
screen.
• User.
• Book.
• Librarian.
• Book Item.
• Reservation.
• Lending.
• Lending Controller.
• User Manager.
• Book Manager.
• Book Item

Item
Lending
lending(UserID, BookID, BookItemID)
Search(UserID)
Search(BookItemID)
CheckAvailable(BookItemID)
Check overdue(UserID)
GetNewLendingNumber()
CheckNumberofBook(UserID)
Lending(LendingNumber, User, BookItem, LendingDate)
Register(lending)
SetState(lending)
18
Lend()
1.2. Log on.
a. Các đối tượng.
Boundary Entity Objects Control Object
• Logon Screen.
• Result Log on
Screen.
• Logon Error
Screen.
• User.
• Librarian.
• User Manager.
• Logon Controller.
b. Biểu đồ tuần tự.
User Logon Screen Result Logon Logon Logon User User Librarian
Screen Error Screen Controller Manager
LogOn()

b. Biểu đồ tuần tự.
User Reservatio
n
Screen
Result
Reservation
Error
Reservatio
n
Reservatio
n
Controller
Reservatio
n
Manager
Book
Manager
User
Manager
Use
r
Boo
k
Reservation

Reserve()
Reserving( UserID, BookID)
CheckNumberofReservedBook(UserID)
GetNumberofReservedBook()
CheckBookAvailable(BookID)

• Result Searching
Screen.
• Error Searching
Screen.
• User.
• Book.
• Key.
• User Manager.
• Searching
Controller.
• Book Manager.
• Keyword Manager.
21
b. Biểu đồ tuần tự.
User Searching
Screen
Result
Searching
Screen
Error
Searching
Screen
Searching
Cotroller
User
Manager
Book
Manager
Keyword
Manager

Account: là một đối tượng có thuộc tính danh sách các UserID và password tương
ứng. Các phương thức của nó hỗ trợ việc quản lý account như: Thêm vào danh
sách, sửa password , xóa account, tìm kiếm một account.
b. Biểu đồ tuần tự.
User Register
Screen
Result Register
Screen
Register
Controller
Account
Manager
User
Manger
User Account
Register()
Register(UserID, Password, Class, Home, Tel)
CheckAvailable(UserID)
Search(UserID)
GetNewaccount(UserID, Password)
CreateNewAccount(UserID, Password)
GetNewUser(UserID, Password, Class, Home, Tel)
CreateNewUser(UserID, Password, Class, Home, Tel)
• Register(): Hàm này thực hiện khi người sử dụng chọn chức năng register
của hệ thống.
• Register(UserID, Password, Class, Home, Tel).
• CheckAvailble(UserID): Kiểm tra xem UserID này có khả dụng không.
• Search(UserID): Tìm kiểm xem trong đối tượng account có UserID không.
23
• GetNewAccount(UserID, Password): tạo một tài khoản mới.

Screen
Returning
Controlle
r
User
Manager
BookItem
Manager
Book
Manager
Lendin
g
Manger
Use
r
Book
Item
Lendin
g
Book
returning()
returning(UserID, BookItemID, BookID)
Search(UserID)
ChangeNumberofLending(UserID)
SetNumberofLendngBook(UserID)
ChangeState(BookItemID)
SetState(BookID)
ChangeNumberofBook(BookID)

SetNumberofBook(BookID)


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status