BookBorrower Borrow copy of book
Return copy of book
Extend loan Update catalog
Borrow journal Librarian
Use case diagram for the library.
Use case diagram for the ﬁrst iteration.Borrow journal Borrow copy of book Return journal
BookBorrower Return copy of book
find book on shelf
wait in queue [returning] [borrowing]
put book back on shelf
prepare for next member
Figure 11.7 Business level activity diagram of the library.
Figure 3. 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. enforcing the rules described above. Only members of staff may borrow journals. Borrowing The system must keep track of when books and journals are borrowed and returned. It may have several copies of a given book. Members of the library can normally borrow up to six items at a time. Some of the books are for short term loans only.3
Nouns and noun phrases in the library.Books and journals The library contains books and journals.
..* borrows/returns 1 0.*
Initial class model of the library.* 0.Book
1 is a copy of
...* borrows/returns 1 Copy
borrows/returns 1 0.
Revised library class model..* Copy
borrows/returns 1 0.*
1 is a copy of
1.* borrows/returns 1 0.
theLibraryMember : LibraryMember
theCopy : Copy
theBook : Book
aMember : BookBorrower borrow(theCopy) 1: okToBorrow okToBorrow
2: borrow 2.6 Interaction shown on a sequence diagram.
State diagram for class Book.returned()
returned() borrowed()[ last copy]
borrowed()[not last copy]
A simple waterfall process.Analysis
2 A simple spiral process.
.Engineer: design. implement test
Analyze requirements for this iteration
Analyze risks and plan