: Item2: find reservation()5: update()1: identify borrower() : LendWindow : Librarian4: borrow() : Title6: borrow()3: find(Borrower,Title)7: check_if_max() : Loan : Reservation4. 图书管理员处理还书的协作图 1: findBorrower()3: returnBack() : ReturnWindow : Title : Librarian2: find(String)4: update()5: returnBack() : Item : Loan5. 借阅者预留书籍的协作图 : Title2: find(String)1: identifyBorrower() : ReservationWindow3: reserveTitle() : Borrower4: reserve() : Item5: create(Title,Borrower) : Reservation §3.5 系统的状态图
11
? 1. 书的状态图 ? 2. 借阅者帐户的状态图 1. 书的状态图 New bookBorrowTime outReserveAvailableReservedBorrowBorrowedCancleReturn backDelete2. 2. 借阅者帐户的状态图 the number of book is okNew BorrowerAccount Available书的数目超过限度Account unavailable还书Delete Account §3.6 系统的活动图 ? 1. 借阅者的活动图
12
? 2. 图书管理员的活动图 ? 3. 系统管理员的活动图 1. 借阅者的活动图 Self-help serviceSearch for booksLoginReserve the bookView book informationLogin?Exit the systemLeave the computer
2. 图书管理员的活动图 13
Login the systemGet bookLend bookAccept moneyOut of date?Is number limit?Update borrower's information 3. 1. 2. 3. 系统管理员的活动图 系统管理员维护借阅者帐户的活动图 系统管理员进行书目信息维护的活动图 系统管理员维护书籍信息的活动图 (1) 系统管理员维护借阅者帐户的活动图 14
Login the systemOperation on borrowerQuery borrower informationNew borrowerremove or update norrowerExit the system(2) 系统管理员进行书目信息维护的活动图 15