Professional Documents
Culture Documents
Librarian
Librarian Lend item
Add Title <<uses>>
<<uses>>
Remove Reservation
Remove or Update Title
<<uses>> Maintenance
Borrower
Add Item
<<uses>>
Make reservation
<<uses>>
Remove Item <<uses>>
Add Borrower
n Mô tả UC
n UC Bổ sung tài liệu (Add Item)
1. Nhận biết tên của tài liệu
2. Kiểm tra xem tên tài liệu ñã ñược ñăng ký trong hệ thống? Nếu chưa cần ñăng
ký trước khi bổ sung tài liệu.
3. ðòi hỏi thông tin về tài liệu (gán id duy nhất cho tài liệu, thông thường là mã
vạch hay số dán sau bìa sách)
4. Bổ sung tài liệu vào hệ thống
n UC Huỷ bỏ tài liệu (Remove Item)
1. Nhận biết tên tài liệu
2. ðòi hỏi id của tài liệu
3. Nếu tìm thấy tài liệu thì huỷ bỏ khỏi hệ thống, sau ñó huỷ bỏ mọi ñăng ký về
mượn tài liệu này.
n Mô tả UC
n UC Bổ sung người mượn (Add Borrower)
1. ðòi hỏi thông tin về người mượn như tên, ñịa chỉ, mã zip...
2. Lưu trữ thông tin về người mượn vào máy.
n UC Cập nhật, huỷ bỏ người mượn (Update or Remove Borrower)
n Cập nhật người mượn
1. Xác ñịnh người mượn sẽ cập nhật
2. Hiển thị thông tin người mượn, thông tin có thể thay ñổi
3. Cập nhật thông tin người mượn
n Huỷ người mượn
1. Yêu cầu tên người mượn
2. Huỷ bỏ thông tin người mượn khỏi hệ thống, kèm theo huỷ bỏ ñặt trước, hủy bỏ
ñăng ký mượn của người mượn ñó.
n Lập UC mới:
n UC Bảo trì (Maintenance)
n Là UC tổng quát và sử dụng một số UC khác
n ðể tách các chức năng nghiệp vụ khỏi chức năng bảo trì hệ
thống
n Phân biệt hai khái niệm: Có nhiều tài liệu cùng tên
n Tiêu ñề (Title)
n Tài liệu (Item)
n Xây dựng biểu ñồ UC
Loaned Not
reserved
Reserved
Not loaned
removeReservation
addReservation
Lớp Item
Lớp Title
Trạng thái lớp
3: find Item( )
4: find on title()
5: identify borrower( )
6: find()
7: create()
Lend Item
ehamingway@gmail.com Phân tích thiết kế hướng ñối tượng Bài 10 - 18/39
Phân tích lĩnh vực vấn ñề
n Khi mô hình hóa biểu ñồ trình tự ta nhận thấy cần có cửa sổ và hộp
thoại ñể nhập liệu -> Bổ sung các lớp giao diện
<<Business Object>>
Item
<<GUI>> <<GUI>>
Return Window (from Business Package) Maintenance Window
return item() add item()
find title() <<Business Object>> remove item()
find borrower() Loan add title()
remove title()
(from Business Package) create borrower()
remove borrower()
<<Business Object>>
Title
(from Business Package)
<<GUI>>
Lend Window <<GUI>>
Reservation Window
find title() <<Business Object>>
identify borrower() find title()
find reservation() Borrower information reserve title()
find Item() (from Business Package) identify borrower()
create loan() remove reservation()
<<Business Object>>
Reservation
(from Business Package)
GUI Package
+ Lend Window
+ Return Window
+ Reservation Window
+ Maintenance Window
Database Package
+ Persistent
2: addButton_Clicked( )
Check 3: $findOnName (String)
if already
exist 4: $findOnISBN (String)
9: store ( )
1: TitleFrame ( )
2: addButton_Clicked ( )
$UNNAMED$230 :
TitleFrame
$UNNAMED$229 :
Librarian
3: $findOnName (String)
4: $findOnISBN (String)
$UNNAMED$231 : 5: Title (String, String, String, int)
$UNNAMED$232 :
Title 8: addItem (ObjId)
9: store ( ) Item
paint()
StartClass LendingItem_Action() paint()
ReturningItem_Action() okButton_Clicked()
$main() AboutDialog()
ReserveTitle_Action()
RemoveReservation_Action()
Title_Action()
Borrower_Action()
MessageBox BrowseAll_Action()
InsertTitle_Action()
UpdateTitleItems_Action() QuitDialog
okButton_Clicked()
InsertBorrower_Action()
MessageBox()
UpdateBorrower_Action()
yesButton_Clicked()
About_Action()
noButton_Clicked()
Exit_Action()
QuitDialog()
resultTitle()
resultBorrower()
MainWindow()
UpdateTitleFrame
title : Title FindTitleDialog UpdateBorrowerFrame
reswindow : ResultOfFindTitle borrower : BorrowerInformation
updateButton_Clicked()
current : Title
deleteButton_Clicked()
addItemButton_Clicked() updateButton_Clicked()
removeItemButton_Clicked() findButton_Clicked() deleteButton_Clicked()
cancelButton_Clicked() okButton_Clicked() cancelButton_Clicked()
UpdateFrame() cancelButton_Clicked() UpdateFrame()
FindTitleDialog() UpdateBorrowerFrame()
UpdateTitleFrame()