This action might not be possible to undo. Are you sure you want to continue?
BookBorrower Borrow copy of book
Return copy of book
Extend loan Update catalog
Borrow journal Librarian
Use case diagram for the library.
Borrow journal Borrow copy of book Return journal BookBorrower Return copy of book JournalBorrower Figure 3. .2 Use case diagram for the ﬁrst iteration.
.member librarian [borrower] find book on shelf [returner] wait in queue [returning] [borrowing] record return put book back on shelf record borrowing prepare for next member Figure 11.7 Business level activity diagram of the library.
Books and journals The library contains books and journals. All other books may be borrowed by any library member for three weeks. but members of staff may borrow up to 12 items at one time. Members of the library can normally borrow up to six items at a time. Borrowing The system must keep track of when books and journals are borrowed and returned. Figure 3.3 Nouns and noun phrases in the library. It may have several copies of a given book. Some of the books are for short term loans only. . enforcing the rules described above. Only members of staff may borrow journals.
* Journal Figure 3. .Book 1 is a copy of 1..* 0.4 Initial class model of the library.* borrows/returns 1 0...* borrows/returns 1 Copy LibraryMember MemberOfStaff borrows/returns 1 0..
Book 1 is a copy of 1.5 Revised library class model. .* Copy LibraryMember MemberOfStaff borrows/returns 1 0.* borrows/returns 1 0..* Journal Figure 3...
.1: borrowed Figure 3.6 Interaction shown on a sequence diagram.theLibraryMember : LibraryMember theCopy : Copy theBook : Book aMember : BookBorrower borrow(theCopy) 1: okToBorrow okToBorrow 2: borrow 2.
.returned() not borrowable returned() borrowed()[ last copy] borrowable borrowed()[not last copy] Figure 3.7 State diagram for class Book.
1 A simple waterfall process.Analysis Design Implementation Testing Maintenance Figure 4. .
implement test Evaluate Analyze requirements for this iteration Analyze risks and plan Figure 4.Engineer: design.2 A simple spiral process. .