Question:
You are to answer a set of questions about material of the unit. Any diagrams required in response to questions must be drawn in Lucidchart. Textual responses will be written using Microsoft Word.
Description
The questions stated below require answers regarding:
• Use cases
• Sequence diagrams
• Class diagrams
• State Machine Diagram
This case is a simplified (initial draft) of a new system for the University Library. Of course, the library system must keep track of books. Information is maintained about both book titles and the individual book copies. Book titles maintain information about title, author, publisher, and catalog number. Individual copies maintain copy number, edition, publication year, ISBN, book status (whether it is on the shelf or loaned out), and date due back in.
The library also keeps track of patrons to the library. Since it is a university library, there are several types of patrons, each with different privileges. There are faculty patrons, graduate student patrons, and undergraduate student patrons. Basic information about all patrons is name, address, and telephone number. For faculty patrons, additional information is office address and telephone number. For graduate students, information such as graduate program and advisor information is maintained. For undergraduate student’s program and total credit hours are maintained.
The library also keeps information about library loans. A library loan is a somewhat abstract object. A loan occurs when a patron approaches the circulation desk with a stack of books to check out. Over time a patron can have many loans. A loan can have many physical books associated with it. (And a physical book can be on many loans over a period of time. Information about past loans is kept in the database.) So, in this case, it is recommended that an association class be created for loaned books.
If a book is checked out that a patron wants, he/she can put that title on reserve. This is another class that does not represent a concrete object. Each reservation is for only one title and one patron. Information such as date reserved, priority, and date fulfilled is maintained. When it is fulfilled, the system associates it with the loan on which it was checked out.
For this case, develop the following diagrams:
1. Use Case description for checking out books with one any exceptional case
2. A use case diagram for the whole case study
3. A class diagram for the whole case study
4. A sequence diagram for the given case – checking out books
5. Draw a SMD for the case study – Library Management System
Answer:
Use case description - Checking out book
Use case
|
University Library System
|
Scenario
|
Checking out books
|
Trigger Event
|
Reserve Book
|
Description
|
The patient can reserve a book after successfully completing the check-out step.
|
Actors
|
Admin and the Parton
|
Related use case
|
Reserve Books
|
Stakeholders
|
Admin, Library database and the patrons
|
Preconditions
|
The patrons need to pass the authentication mechanism for the using the information system and reserve a book available in the university library.
|
Post conditions
|
An unique username is required for the new accounts and a password of minimum 8 characters should be used for the account.
|
Flow of activities
|
Actor
|
System
|
The partron should register into the information system using their email id and fill the details for opening their new account
The admin manages the user account and groups them into different category of users for allowing different access to them to use the university library system.
|
A verification link is sent to the email address for opening the new account.
The administrator is responsible for the management of the user account and management of the loan limits depending on the type of user.
|
Exemption conditions
|
1. Loss of data cause due to failure of system
2. Network error can cause loss of data
|
Use case diagram – Library Management System
![]()
Class diagram
![]()
Sequence Diagram
State Machine Diagram
Bibliography
Kumar, A. (2012). UML Diagrams For The Case Studies Library Management System And Online Mobile Recharge. India Study Channel. Retrieved 21 May 2018, from https://www.indiastudychannel.com/resources/150271-UML-Diagrams-For-The-Case-Studies-Library-Management-System-And-Online-Mobile-Recharge.aspx
Maróti, M., Kereskényi, R., Kecskés, T., Völgyesi, P., & Lédeczi, A. (2014). Online collaborative environment for designing complex computational systems. Procedia Computer Science, 29, 2432-2441.
Souza, A. J., & Cavalcanti, A. L. O. (2016). Visual Language for Use Case Description. Software: Practice and Experience, 46(9), 1239-1261.