Solution for Drawing Use Case Diagrams
Essay by Thint Myat Soe • April 16, 2016 • Course Note • 2,970 Words (12 Pages) • 1,040 Views
Information Requirement Analysis Tutorial
Use Case Modelling Revisited Tutorial
Consider the following narrative:
The Highbrow University library system manages the loans of all staff and students on the campus. All borrowers are issued with a library card which is swiped when the borrower presents it at the counter together with the books that he/she wants to borrow. The library assistant will check that the potential borrower does not have any outstanding debts or overdue books before issuing any new books. The library assistant will then read the bar code of each book waiting to be borrowed and will stamp the book with the return date. The book and card will then be returned to the borrower.
When books are returned to the library, the borrower does not have to present his/her card. The librarian simply reads the bar code attached to the book and ‘books’ it back into the library. If there is a fine due on the book the borrower will be asked to clear the debt before borrowing any other books from the library.
All borrowers have access to the catalogue on an enquiry basis only. They may search for copies of a particular book stored at the campus library. Similarly, they may check their own status as a borrower - books currently on loan and debts accrued.
Now do the following:
a) Construct a use case diagram for the Highbrow University library system outlined above.
b) Write primary scenario
c) What questions may be asked to make clear
d) Write secondary scenarios and a complete scenario
Sample solution:
Solution for question (a)
- List all events
Action Actor/receiver
- Issue library card library assistant, borrower (staff, students)
- Swipe card library assistant
- Borrow books request borrower
- Check validity library assistant
- Read barcode of books to borrow library assistant
- Stamp return date library assistant
- Return card and books library assistant, borrower
- Loan return borrower
- Read barcode of returned books library assistant
- Asked to clear fine library assistant, borrower
- Access to the catalogue borrower
- Search book copy borrower
- Check own status borrower
- Sort the List by sequence
- Issue library card library assistant, borrower (staff, students)
k. Access to the catalogue borrower
- Search book copy borrower
- Check own status borrower
- Borrow books request borrower
- Swipe card library assistant
- Check validity library assistant
- Read barcode of books to borrow library assistant
- Stamp return date library assistant
- Return card and books library assistant, borrower
- Loan return library assistant
- Read barcode of returned books library assistant
- Asked to clear fine library assistant, borrower
- group the List by event nature
- give appropriate process name[pic 1]
[pic 2]
- Issue library card library assistant, borrower (staff,
students)
[pic 3]
[pic 4]
k. Access to the catalogue borrower
- Search book copy borrower
- Check own status borrower
- Borrow books request borrower
[pic 5]
[pic 6]
- Swipe card library assistant [pic 7]
- Check validity library assistant
- Read barcode of books to borrow library assistant
- Stamp return date library assistant
[pic 8]
[pic 9]
- Return card and books library assistant, borrower
[pic 10]
[pic 11]
- Loan return borrower
[pic 12]
- Read barcode of returned books library assistant
- Asked to clear fine library assistant, borrower
(v). Draw use case , give title
Highbrow University library, loan control system
[pic 13]
[pic 14]
[pic 15]
- Swipe card library assistant
- Check validity library assistant
- Read barcode of books to borrow library assistant
- Stamp return date library assistant
[pic 16][pic 17][pic 18][pic 19]
[pic 20]
Primary scenario
Pre condition Borrower presented books to borrow with card and requested loan
- Swipe card
- Check validity
- Read barcode of books to borrow
- Stamp return date
Post condition Return books and card to borrower
[pic 21]
To make clear we need to ask question like :
- If card cannot be read barcode what will you do , to ask to Library assistance
- If card is not valid for fines to pay what will you do , to ask to library assistance
- If barcode of books to borrow cannot be read by the barcode reader what action will you take, to library assistance
Secondary scenario :
- If card cannot be read then the barcode number under the barcode will be entered
- If card is not valid for fines to pay then the borrower need to pay fine else exit
- If barcode of books to borrow cannot be read by the barcode reader the barcode number under the barcode will be entered
Complete scenario
...
...