Borrowing Books and Journals from a Library

Total Page:16

File Type:pdf, Size:1020Kb

Borrowing Books and Journals from a Library

COMP 3513 M2 Example – Use Case Modeling

Borrowing Books and Journals from a Library

Description Books and journals – the library contains books and journals. It may have several copies of a given book. Some of the books are for short term loans only. All other books may be borrowed by any library member for three weeks. Only members of staff may borrow journals. Members of the library can normally borrow up to six items at a time, but members of staff can borrow up to 12 items at a time. New books and journals arrive regularly, and old ones are sometimes disposed of. The current year’s journals are sent away to be bound into volumes at the end of each year. Borrowing – it is essential that the system keeps track of when books and journals are borrowed and returned. The new system should also produce reminders when a book is overdue. There may in future be a requirement for uses to be able to extend the loan of a book if it is not reserved. Browsing – this system should allow users to search for a book on a particular topic, by a particular author, etc., to check whether a copy of the book is available for loan and, if not ,to reserve the book. Anybody can browse in the library.

Use Case Diagram COMP 3513 M2 Example – Use Case Modeling

Title: Borrow copy of book Brief Description: A potential borrower approaches the library for loan of book. Actors: Book Borrower Triggers: Book Borrower indicates that s/he wishes to borrow a book from the library Pre-conditions: The Book Borrower has preselected a book to be borrowed Post-conditions: The Book Borrower has the book, a date for return has been agreed on, a record of the loan as been recorded Normal Flow: 1.The BookBorrower requests a book to loan. 2. The system checks that the BookBorrower is a member of the library, and that s/he does not already have a maximum permitted number of books on loan. This maximum is six unless the member is a staff member in which case it is twelve. 3. If both checks succeed, this system records that this library member has this copy of the book on loan, communicates a return date , and gives the borrower a copy. [the above could be broken down in to finer details]

Alternate Flows: 2a. If the BookBorrower is not member of the library, then they are asked to register as a member before continuing. 2b. If the BookBorrower has exceed her/his limit, this is explained and they ar einfomed that they can return another book so as to access the new book. 3a. If either check fails, the system must refuse the loan.

Additional Examples

Online Purchase: http://tynerblain.com/blog/2007/04/09/sample-use-case-example/

Bank ATM: http://epf.eclipse.org/wikis/abrd/core.tech.common.extend_supp/guidances/exam ples/use_case_spec_CD5DD9B1.html

Recommended publications