Phân tích & thiết kế hệ thống system analysis and design

93 682 1
Phân tích & thiết kế hệ thống system analysis and design

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Phân tích & thiết kế hệ thống system analysis and design

1 SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY ______ * ______ SYSTEM ANALYSIS AND DESIGN REPORT Author : Lê Hữu Thành Vũ Đan Hoài Vũ Vũ Văn Ước Trần Hải Sơn 20092416 20093332 20093224 20092277 Instructor : TS Trần Đức Khánh Hà nội, 14 tháng 5 năm 2012 2 Mục lục Mục lục …………………………………………………………………… 2 A. Analysis I. Business Document II. Business Analysis 1. Các nghiệp vụ ………………………………………………… 6 2. Active Datagram ………………………………………………… 6 III. Usecase Analysis 1. Actor ………………………………………………… 10 2. Usecase ………………………………………………… 10 3. Usercase Datagram ………………………………………… 10 4. Đặc tả usecase ……………………………………………… 11 IV. Conceptual data modeling ………………………………………… 17 B. Design I. High-level Design 1. Scenario Analysis …………… 18 2. Object Analysis ……………………………………………… 22 3. Screen Design 3.1 Log on ……………………………………………… 24 3.2 Reservation ……………………………………………… 37 3.3 Return ……………………………………………… 45 3.4 Book Search ……………………………………………… 50 3.5 Lending ……………………………………………… 54 3.6 Check User status ……………………………………… 66 3.7 Change password ……………………………………… 72 II. Detail Design 1. Scenario Design ……………………………………………… 84 2. Object Design ……………………………………………… 90 C. Testing ……………………………………………………………… 91 3 A. Analysis. I. Business Document (Tài liệu nghiệp vụ) 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. - The borrower’s card is for use in S City Library only. - 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 system to perform operations of S City Library. Specifically, they can perform book search, check- out, return, reservation, user registration and usage status check. - General users enter their borrower’s card numbers and passwords. They can perform book search, usage status check and reservation. 4 (3) Borrowing books - The system processes check-out in units of books. - The system assigns an administration number (check-out number) to each check-out. - A user can borrow up to 10 books for 15 days. - Users bring books they want to borrow, together with their “borrower’s cards”, to the front counter. (4) Returning books - The system processes books return in units books. - Users return books to the “return counter” of library before the due date - Users can return books to the “return post ” when the library is closed. - Library staff put the returnd books back on the shelves or hold them for users who have reserved books. (5) Searching a books - The system allows users to search for a book the live library own - User can search books using beywords such as “title”, “author” and “publisher”. (6) Reserveing books - The library system allows users to “reserve” book that cannot be found for some reason. Example, the book has been checked out. - Userss cannot reserve books that the librey does not own 5 - The system processes reservation in units of boook titles (a book number cannot be specified). - The system assigns an adminitration 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 books is held for the reneral 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 areneral user. (7) Checking usage status - The library system allows checking the status of the books that a reneral user has borrowed or reserved. Usage status check can also be performed over internet. System users can check the usage status on the usage status check screen after loggin on to the library system. 6 II. Business Analysis (Phân tích nghiệp vụ): Từ tài liệu nghiệp vụ, đưa ra những phân tích về quá trình thực hiện cho từng nghiệp vụ trong thự tế triển khai. Business analysis (phân tích nghiệp vụ) là bước đầu tiên trong quá trình thiết kế hệ thống. Business analysis cho phép hiểu rõ được từng hoạt động nghiệp vụ cụ thể của hệ thống, xác định được tương tác giữa người dùng và các thành phần của hệ thống. Sản phẩm của quá trình Business analysis là các activity diagram (biểu đồ hoạt động), miêu tả các hoạt động của người sử dụng và của hệ thống trong các nghiệp vụ cụ thể. 1. Các nghiệp vụ:  User registration  User log in  Librarian log in  Borrowing books  Searching book  Checking usage status  Returning books 2. Activity diagram  User Registration: 7  User log in  Librarian log in: 8  Borrowing book:  Book search: 9  Checking usage status:  Returning book: 10 III. Use case Analysis: Từ phân tích nghiệp vụ ta có: 1. Actor: - User - Librarian 2. Usecase: - Log on - Search books - Reserve books - Check usage status - Register account - Update information - return books - Borrow books 3. Usecase Datagram: [...]... người mượn 2 3 4 5 6 Hệ thống kiểm tra thông tin nhập vào Hệ thống kiểm tra xem người mượn có vi phạm hạn trả sách của lần mượn trước đó không Librarian nhập thông tin về sách người dùng mượn Hệ thống tìm kiếm thông tin sách Hệ thống kiểm tra xem sách có thể mượn được không Scenario 7 Hệ thống kiểm tra số lượng sách mượn 8 Hệ thống thay đổi trạng thái sách từ “rỗi” sang “check-out” 9 Hệ thống hiển thị thông... No Hành động 1 Tác nhân nhập thông tin cần cập nhật (thay đổi usename, mật khẩu, avatar, …) 2 Hệ thống kiểm tra thông tin cập nhật 3 Hệ thống lưu thông tin cập nhật vào CSDL 4 Hệ thống hiển thị kết quả cập nhật 2a Thông tin cập nhật không hợp lệ Mô tả U001 – S01 Yêu cầu nhập lại thông tin cập nhật U001 – S02 Kết quả thông tin cập nhật mới 15  Kiểm tra trạng thái Tên Tóm tắt ND Tác nhân Điều kiện cần... nhập user ID 2 Hệ thống kiểm tra 3 Hệ thống hiển thị trạng thái user 2a User ID không đúng Mô tả U001 – S01 Yêu cầu nhập lại User ID U001 – S02 Hiển thị thông tin về User 16 IV Conceptual data modeling: Các dữ liệu mô hình hóa:  Book  Book Item  User  Lending  Reservation  Returning Sơ đồ thực thể liên kết: I Biểu đồ luồng hoạt động 17 B I Design High – level Design 1 Scenario analysis 1.1 User... 3 Screen Design 3.1 Log on a) Transition  Screen Transition Scoop System name S City Library Date System UC001/Logon Screen for Citizen User 24 2012/12/21  Screen Transition Scoop System name S City Library Date System UC002/Logon Screen for Librarian 25 2012/12/21 b) Layout  Logon Screen for Citizen User Screen Layout System name Screen ID/name  Logon Screen for Librarian Screen Layout System name... “front counter” 2 3 Hệ thống kiểm tra các thông tin được nhập vào(đúng chuẩn, đủ các thông tin yêu cầu, …) 4 Nếu thỏa mãn, hệ thống lưu thông tin người dùng mới vào CSDL 5 Hiển thị thông tin tài khoản 3a Nhập thiếu hoặc sai một số thông tin 3b Ngoại lệ Librarian nhập thông tin user Thông tin “identication” không có thực Scenario Mô tả U001 – S01 Tạo tài khoản thành công U001 – S02 Hệ thống hiển thị các... tắt ND Tác nhân Điều kiện cần Mô tả Scenario Đặt sách Người dùng đặt sách User User đăng nhập thành công No Hành động 1 User nhập user ID và book IDs cần đặt 2 Hệ thống kiểm tra thông tin nhập vào 3 Hệ thống gán 1 “reservation number” 4 Hệ thống hiển thị thông tin đặt sách 2a Chưa điền đầy đủ thông tin 2b User ID không đúng 2c Book ID không đúng 2d Số lượng sách đặt vượt quá 10 Mô tả U001 – S01 Yêu... ID/name S City Library Date 2012/12/21 System SC00101/Logon Screen for Citizen User S City Library Date System SC00102/Logon Screen for Librarian 26 2012/12/21  Citizen User Menu Screen Screen Layout System name Screen ID/name S City Library Date System SC00103/Citizen User Menu Screen  Librarian User Menu Screen Screen Layout System name Screen ID/name S City Library System SC00104/Librarian User Menu... User Screen Screen Layout System name Screen ID/name S City Library Date System SC00105/Logon Error for Citizen User Screen  Logon Error for Librarian Screen Layout System name Screen ID/name S City Library System SC00106/Logon Error for Librarian 28 Date 2012/12/21 2012/12/21 c) Item  Logon Screen for Citizen User Screen Item System name Screen ID/Name S City Library System Date 2009/11/01 SC00101/Logon... cần Mô tả Đăng nhập Đăng nhập vào hệ thống User, Librarian ID và password đã được đăng kí No Hành động 1 2 Hệ thống kiểm tra thông tin đăng nhập 3 Nếu actor đăng nhập thành công,thì hiển thị “menu điều khiển của nhân viên thư viện” hoặc “menu điều khiển của người dùng” 1a Một vài thông tin còn trống 2a ID đã nhập không tìm thấy 2b Ngoại lệ Actor nhập các thông tin: ”ID” and “Password” Password đã nhập... COMMAND_I variable D - 2 Change Password BUTTON - onClick this.form.COMMAND_I D VALUE Change Password EVENT Memo variable value="10" this.form.submit() 3 Search Books BUTTON - Search Books onClick this.form.COMMAND_I D value="30" this.form.submit() 4 Check Usage status BUTTON - checkUse onClick this.form.COMMAND_I r D value="40" this.form.submit() 5 Reservatio n BUTTON - reserve onClick this.form.COMMAND_I . những phân tích về quá trình thực hiện cho từng nghiệp vụ trong thự tế triển khai. Business analysis (phân tích nghiệp vụ) là bước đầu tiên trong quá trình thiết kế hệ thống. Business analysis. thông tin sách 6 Hệ thống kiểm tra xem sách có thể mượn được không 7 Hệ thống kiểm tra số lượng sách mượn 8 Hệ thống thay đổi trạng thái sách từ “rỗi” sang “check-out” 9 Hệ thống hiển thị. (thay đổi usename, mật khẩu, avatar, …) 2 Hệ thống kiểm tra thông tin cập nhật 3 Hệ thống lưu thông tin cập nhật vào CSDL 4 Hệ thống hiển thị kết quả cập nhật Ngoại lệ 2a Thông tin cập

Ngày đăng: 01/06/2014, 17:25

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan