You are on page 1of 23

Library Management System:

Use Case Diagram

So following the above diagram there are following uses cases of my systems.

System Use Cases Main Screen (UC1)


Scope Level Library Management System User Goal Goal in Context Present a main menu form which one can access the various functions of the library management system. Primary Actor Stakeholders User and Admin User: Wants to get a specific book for certain period of time Admin: Wants to keep the record of all books (issued or returned) and also maintains the record. Run Library Management Software and entered password is correct. A previous command completes successfully. The Library Management System waits for user input when main menu is on the screen

Preconditions Triggers Success Guarantee

Main Success Scenario: 1. Library Management System: There are following seven options to chose from: a. Students Membership Record (UC2) b. Book Catalogue (UC3) c. Reference books Catalogue (UC4) d. Book Issued record (UC5) e. Book returned record (UC6) f. Fine records (UC7) g. Reservation for books (UC8) 2. Library Management System: Waits for user input Extensions: 1a. if the Password is incorrect than a message is printed on the screen and ask for another attempt but after the third attempt, if the password is incorrect than the systems does not ask for reenter the password but it quits to windows.

Students Membership Record (UC2)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Success Guarantee Library Management System User Goal Present a menu from which one can access the various functions of the Student Membership Record. Admin Admin: Wants to enter and maintain the Student Membership Record. None Admin selects Student Membership record option from the main menu. Library Management System Waits for user input

Main Success Scenario: 1. Admin: Selects the menu option to Enter in the Student Membership Record. 2. Library Management System: Presents a Menu for maintaining student Membership record. That contains the following Four options to choose from. a. Add Students Record (UC2-1) b. Edit Students Record (UC2-2) c. View Students Record (UC2-3) d. Search for Student Record (UC2-4) 3. Library Management System: Waits for user input Extensions: 2a. to enter in the option Add Student Record and Edit Student Record, the system waits for the Password.

Add Students Record (UC2-1)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Library Management System User Goal Present a form to the admin to allow him to add record of the students. Admin Admin: Wants to add membership record of the different Students The Entered password is correct.

Triggers

Admin selects Add Student Record option from the Student Membership Record menu.

Success Guarantee The record of the student Membership is added to the Library Management Software and it assigns a Library Number to Each student. Main Success Scenario: 1. Admin: Selects the menu option to add membership record of the different Students. 2. Library Management System: presents a form 3. Admin: Enters the name, Fathers Name, Registration Number 2-1c, Date of Birth 2-1d, Date of joining 2-1d, Email Address, Phone Number and Residential Address of the students. 4. Library Management System: Add the Membership record of the Students, updates the previous record and issue the student a Library number. Extensions: 2-1a: if the Password is incorrect than a message is printed on the screen and admin is returned to the Student Membership record menu. 2-1b: if the name of the record of the students is already in the library management systems, a message is printed on the screen and admin is returned to Student Membership record menu. 2-1c: The Registration must be in the form year of joining of institution institution name department name registration number (that must not be greater than 4 digits). 2-1d: The Date of the Birth and Joining date must be in the format of MM/DD/YYYY if Month is greater than 12 or Days is greater than 31, a message is printed on the screen and asks for reenter.

Edit Students Record (UC2-2)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Library Management System User Goal Present a form to the admin to allow him to Change the record of the students. Admin Admin: Wants to Change membership record of the Specific Student. The Entered password is correct.

Triggers

Admin selects Edit Student Record option from the Student Membership Record menu.

Success Guarantee The record of the student Membership is Changed in the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu to Change membership record of the Specific Student. 2. Library Management System: presents a form 3. Admin: Enters the Name of the Categories 2-2b and The correct data of that student 2-2c, 2-2d 4. Library Management System: Save the changes in the Membership record of the Students and updates the previous record. Extensions: 2-2a: if the Password is incorrect than a message is printed on the screen and admin is returned to the Student Membership record menu. 2-2b: if the name of the categories not among the existing categories, a message is printed on the screen and admin is returned to Student Membership record menu. 2-2c: The Registration must be in the form year of joining of institution institution name department name registration number (that must not be greater than 4 digits). 2-2d: The Date of the Birth and Joining date must be in the format of MM/DD/YYYY if Month is greater than 12 or Days is greater than 31, a message is printed on the screen and asks for reenter.

View Students Record (UC2-3)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present the record of all students in tabular form. Admin Admin: Wants to view membership record of all Students that are member of the library. None Admin selects View Student Record option from the Student Membership Record menu.

Success Guarantee Library Management Software shows the table that contains the record of all students that are member of the

library. Main Success Scenario: 1. Admin: Selects the menu option to view membership record of all Students. 2. Library Management System: presents membership record of all Students that are member of the library in the tabular form. Extensions: None

Search Students Record (UC2-4)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to search the record of the students. Admin Admin: Wants to Search membership record of the Required Students None Admin selects Search Student Record option from the Student Membership Record menu.

Success Guarantee Library Management Software Presents the record of the required student in tabular form. Main Success Scenario: 1. Admin: Selects the menu option to Search membership record of the Required Students. 2. Library Management System: presents a form 3. Admin: Enters the name, Fathers Name, Registration Number 2-4a, 4. Library Management System: Presents the record of the required student. Extensions: 2-4a: The Registration must be in the form year of joining of institution institution name department name registration number (that must not be greater than 4 digits).

Books Catalogue (UC3)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Success Guarantee Library Management System User Goal Present a menu from which one can access the various functions of the Books Catalogue. Admin Admin: Wants to enter and maintain the Books Record. None Admin selects Books Catalogue option from the main menu. Library Management System Waits for user input

Main Success Scenario: 1. Admin: Selects the menu option to Enter in the Books Catalogue 2. Library Management System: Presents a Menu for maintaining Books Record. That contains the following Four options to choose from. a. Add Books Record (UC3-1) b. Edit Books Record (UC3-2) c. View Books Record (UC3-3) d. Search for Books (UC3-4) 3. Library Management System: Waits for user input Extensions: 3a. to enter in the option Add books Record and Edit books Record, the system waits for the Password. 3b User can only entered in the View Books record and Search for books from where he can checks the available books.

Add Books Record (UC3-1)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to add record of the Books. Admin Admin: Wants to add record of the different Books The Entered password is correct. Admin selects Add Books Record option from the Books

Catalogue menu. Success Guarantee The record of the Books is added to the Library Management Software and it assigns a number to each book. Main Success Scenario: 1. Admin: Selects the menu option to add record of the different Books 2. Library Management System: presents a form 3. Admin: Enters the name, Authors Name and Edition 4. Library Management System: Add the Record of the books, update the previous record and assign a number to each book. Extensions: 3-1a: if the Password is incorrect than a message is printed on the screen and admin is returned to the Books record menu.

Edit Books Record (UC3-2)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to Change the record of the Books. Admin Admin: Wants to Change record of the Specific book. The Entered password is correct. Admin selects Edit Books Record option from the Books Catalogue menu.

Success Guarantee The record of the Books is Changed in the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to Change record of the Specific Books. 2. Library Management System: presents a form 3. Admin: Enters the Name of the Categories 3-2b and The correct data of that student 4. Library Management System: Save the changes in the record of the books and updates the previous record. Extensions: 3-2a: if the Password is incorrect than a message is printed on the screen and

admin is returned to the books record menu. 3-2b: if the name of the categories not among the existing categories, a message is printed on the screen and admin is returned to Books record menu.

View Books Record (UC3-3)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin /user to view the record of all Books in tabular form. Admin and User Admin/User: Wants to view record of all Books that are in the library. None Admin/User selects View Books Record option from the Books Catalogue Record menu.

Success Guarantee Library Management Software shows the table that contains the record of all Books that are in the library. Main Success Scenario: 1. Admin/User: Selects the menu option to view record of all Books. 2. Library Management System: presents record of all Books that are in the library, in the tabular form. Extensions: None

Search Books Record (UC3-4)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin/user to allow him to search the record of the Books. Admin and User Admin/User: Wants to search the record of the Required Book. None Admin/User selects Search Books Record option from the Books Catalogue menu.

Success Guarantee Library Management Software Presents the record of the required Book in tabular form. Main Success Scenario: 1. Admin/User: Selects the menu option to Search record of the Required Books. 2. Library Management System: presents a form 3. Admin/User: Enters the name, Authors Name and Edition 4. Library Management System: Presents the record of the required Book. Extensions: None

Reference Books Record (UC4)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Success Guarantee Library Management System User Goal Present a menu from which one can access the various functions of the Reference Book Record. Admin Admin: Wants to enter and maintain the Reference Books Record. None Admin selects Reference Book Record option from the main menu. Library Management System Waits for user input

Main Success Scenario: 1. Admin: Selects the menu option to Enter in the Reference Books Record. 2. Library Management System: Presents a Menu for maintaining Reference Books Record. That contains the following Four options to choose from. a. Add Reference Books Record (UC4-1) b. Edit Reference Books Record (UC4-2) c. View Reference Books Record (UC4-3) d. Search for Reference Books (UC4-4) 3. Library Management System: Waits for user input Extensions: 4a. to enter in the option Add books Record and Edit books Record, the system

waits for the Password. 4b User can only entered in the View Reference Books record and Search for books from where he can checks the available books

Add Reference Books Record (UC4-1)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to add record of the Reference Books. Admin Admin: Wants to add record of the different Reference Books The Entered password is correct. Admin selects Add Books Record option from the Reference Books Record menu.

Success Guarantee The record of the Reference Books is added to the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to add record of the different Reference Books 2. Library Management System: presents a form 3. Admin: Enters the name, Authors Name, Edition, Course Name and teacher name 4. Library Management System: Add the Record of the books, update the previous record. Extensions: 4-1a: if the Password is incorrect than a message is printed on the screen and admin is returned to the Reference Books record menu.

Edit Reference Books Record (UC4-2)


Scope Level Goal in Context Primary Actor Library Management System User Goal Present a form to the admin to allow him to Change the record of the Reference Books. Admin

Stakeholders Preconditions Triggers

Admin: Wants to Change record of the Specific Reference book. The Entered password is correct. Admin selects Edit Reference Books Record option from the Reference Books Record menu.

Success Guarantee The record of the Reference Books is Changed in the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to Change record of the Specific Reference Books. 2. Library Management System: presents a form 3. Admin: Enters the Name of the Categories 3-2b and The correct data of that student 4. Library Management System: Save the changes in the record of the Reference books and updates the previous record. Extensions: 4-2a: if the Password is incorrect than a message is printed on the screen and admin is returned to the Reference Book record menu. 4-2b: if the name of the categories not among the existing categories, a message is printed on the screen and admin is returned to Reference book record menu.

View Reference Books Record (UC4-3)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin /user to view the record of all Reference Books in tabular form. Admin and User Admin/user: Wants to view record of all Reference Books that are in the library. None Admin/User selects View Reference Books Record option from the Reference Books Record menu.

Success Guarantee Library Management Software shows the table that contains the record of all Reference Books that are in the library. Main Success Scenario:

1. Admin/User: Selects the menu option to view record of all Reference Books. 2. Library Management System: presents record of all Reference Books that are in the library, in the tabular form. Extensions: None

Search Reference Books Record (UC4-4)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin/user to allow him to search the record of the Reference Books. Admin and User Admin/User: Wants to search the record of the Required Reference Book. None Admin/User selects Search Reference Books Record option from the Reference Books Record menu.

Success Guarantee Library Management Software Presents the record of the required Reference Book in tabular form. Main Success Scenario: 1. Admin/User: Selects the menu option to Search record of the Required Reference Books. 2. Library Management System: presents a form 3. Admin/User: Enters the name, Authors Name, Edition, Course Name and teacher name 4. Library Management System: Presents the record of the required Reference Book. Extensions: None

Issued Books Record (UC5)


Scope Level Goal in Context Library Management System User Goal Present a menu from which one can access the various

functions of the issued Book Record. Primary Actor Stakeholders Preconditions Triggers Success Guarantee Admin Admin: Wants to enter and maintain the issued Books Record. None Admin selects issued Book Record option from the main menu. Library Management System Waits for user input

Main Success Scenario: 1. Admin: Selects the menu option to Enter in the issued Books record. 2. Library Management System: Presents a Menu for maintaining issued Books Record. That contains the following Two options to choose from. a. Add issued Books Record (UC5-1) b. Edit issued Books Record (UC5-2) 3. Library Management System: Waits for user input Extensions: 5a. To enter in the option Add issued books Record and Edit issued books Record, the system waits for the Password. 5b If the required book is not available in the library, a message is printed on the screen

Add Issued Books Record (UC5-1)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to add record of the issued Books. Admin Admin: Wants to add record of the different issued Books The Entered password is correct. Admin selects Add issued Books Record option from the issued Books Record menu.

Success Guarantee The record of the issued Books is added to the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to add record of the different issued Books

2. Library Management System: presents a form 3. Admin: Enters the Name of book, Name of the student, Authors Name, Edition, issuing date and due date. 4. Library Management System: Add the Record of the issued books, update the previous record. Extensions: 5-1a: if the Password is incorrect than a message is printed on the screen and admin is returned to the issued Books record menu. 5-1b: The Issuing date and Due date must be in the format of MM/DD/YYYY if Month is greater than 12 or Days is greater than 31, a message is printed on the screen and asks for reenter.

Edit Issued Books Record (UC5-2)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to Change the record of the issued Books. Admin Admin: Wants to Change record of the Specific issued book. The Entered password is correct. Admin selects Edit issued Books Record option from the Reference Books Record menu.

Success Guarantee The record of the Issued Books is Changed in the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to Change record of the Specific Issued Books. 2. Library Management System: presents a form 3. Admin: Enters the Name of the Categories 3-2b and The correct data of that student 4. Library Management System: Save the changes in the record of the Issued books and updates the previous record. Extensions: 5-2a: if the Password is incorrect than a message is printed on the screen and admin is returned to the issued Books record menu.

5-2b: if the name of the categories not among the existing categories, a message is printed on the screen and admin is returned to issued Books record menu.

Returned Books Record (UC6)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Success Guarantee Library Management System User Goal Present a menu from which one can access the various functions of the returned Book Record. Admin Admin: Wants to enter and maintain the returned Books Record. None Admin selects returned Book Record option from the main menu. Library Management System Waits for user input

Main Success Scenario: 1. Admin: Selects the menu option to Enter in the returned Books record. 2. Library Management System: Presents a Menu for maintaining returned Books Record. That contains the following two options to choose from. a. Add returned Books Record (UC6-1) b. Edit returned Books Record (UC6-2) 3. Library Management System: Waits for user input Extensions: 6a. To enter in the option Add returned books Record and Edit returned books Record, the system waits for the Password.

Add Returned Books Record (UC6-1)


Scope Level Goal in Context Primary Actor Stakeholders Library Management System User Goal Present a form to the admin to allow him to add record of the returned Books. Admin Admin: Wants to add record of the different returned

Books Preconditions Triggers The Entered password is correct. Admin selects Add returned Books Record option from the issued Books Record menu.

Success Guarantee The record of the returned Books is added to the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to add record of the different returned Books 2. Library Management System: presents a form 3. Admin: Enters the Name of book, Name of the student, Authors Name, Edition, Returning date. 4. Library Management System: Add the Record of the returned books, update the previous record. Extensions: 4-1a: if the Password is incorrect than a message is printed on the screen and admin is returned to the returned Books record menu. 5-1b: The Returning date must be in the format of MM/DD/YYYY if Month is greater than 12 or Days is greater than 31, a message is printed on the screen and asks for reenter.

Edit Returned Books Record (UC6-2)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin to allow him to Change the record of the issued Books. Admin Admin: Wants to Change record of the Specific issued book. The Entered password is correct. Admin selects Edit issued Books Record option from the Reference Books Record menu.

Success Guarantee The record of the returned Books is Changed in the Library Management Software. Main Success Scenario: 1. Admin: Selects the menu option to Change record of the Specific returned Books.

2. Library Management System: presents a form 3. Admin: Enters the Name of the Categories 3-2b and The correct data of that student 4. Library Management System: Save the changes in the record of the returned books and updates the previous record. Extensions: 6-2a: if the Password is incorrect than a message is printed on the screen and admin is returned to the returned Books record menu. 6-2b: if the name of the categories not among the existing categories, a message is printed on the screen and admin is returned to returned Books record menu.

Fines Record (UC7)


Scope Level Goal in Context Primary Actor Stakeholders Library Management System User Goal Present a menu from which one can access the various functions of the Fine Record. Admin and User User: Wants to view the name of the students that have to pay the fine. Admin: Wants to enter and maintain the Record of the Fine None Admin selects Fine Records option from the main menu. Library Management System Waits for user input

Preconditions Triggers Success Guarantee

Main Success Scenario: 1. Admin/User: Selects the menu option to Enter in the Fine record 2. Library Management System: Presents a Menu for fine Record That contains the following two options to choose from. a. List of students (UC7-1) b. Check the status (Pending/Paid) (UC7-2) 3. Library Management System: Waits for user input. Extensions: 8a To enter in the option Fine Record and Edit returned books Record, the system waits for the Password 8b User can only enter in the List of the students from where he can check the name of the student that has to pay the fine.

List of the Students (UC4-3)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present the Record of the students that have to pay the fine. Admin and User Admin: Wants to view record of the students that have to pay the fine. None Admin/User selects List of the Students option from the Fine Record menu.

Success Guarantee Library Management Software shows the table that contains the Record of the students that have to pay the fine. Main Success Scenario: 1. Admin/User: Selects the menu option to view Record of the students that have to pay the fine. 2. Library Management System: presents Record of the students that have to pay the fine, in the tabular form. Extensions: None

Check the Status (UC4-3)


Scope Level Goal in Context Library Management System User Goal Present the Checks the status of the students that have to pay the fine, whether they have paid the fine or still pending. Admin Admin: Wants to Check the status of the students that have to pay the fine, whether they have paid the fine or still pending. The Entered Password is correct Admin selects List of the Students option from the Fine Record menu.

Primary Actor Stakeholders

Preconditions Triggers

Success Guarantee Library Management Software shows the table that

contains the status of the students that have to pay the fine, whether they have paid the fine or still pending. Main Success Scenario: 1. Admin/User: Selects the menu option to Check the status of the students that have to pay the fine, whether they have paid the fine or still pending. 2. Library Management System: presents the status of the students that have to pay the fine, whether they have paid the fine or still pending, in the tabular form. Extensions: None

Reservation of Books (UC8)


Scope Level Goal in Context Primary Actor Stakeholders Library Management System User Goal Present a menu from which one can access the various functions of the Reservation of books. Admin and User User: Wants to reserve the required among the available books. Admin: Wants to enter and maintain the Record of the reservation of books None Admin/User selects Reservation of books option from the main menu. Library Management System Waits for user input

Preconditions Triggers Success Guarantee

Main Success Scenario: 1. Admin/User: Selects the menu option to Enter in the record of the reservation of books. 2. Library Management System: Presents a Menu for Record Reservation of Books. That contains the following Two options to choose from. a. Check the record of books (UC8-1) b. Set the priority (UC8-2) 3. Library Management System: Waits for user input Extensions: 8a To enter in the option set the Priority, the system waits for the Password 8b User can only entered in the check record of the books from where he can

checks the available books and also reserve the book if book is available.

Check the record of Books (UC8-1)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Triggers Library Management System User Goal Present a form to the admin/user to allow him to Check the record of the available Books. Admin Admin/User: Wants to Check the record of the available Books. None Admin/user selects Check the record of the Books option from the Reservation of Books menu.

Success Guarantee Library Management Software is displayed the record of the available books on the screen. Main Success Scenario: 1. Admin/User: Selects the menu option to Check the record of Available Books 2. Library Management System: presents a form 3. Admin/User: Enters the Name of book, Authors Name, Edition, 4. Library Management System: display the record of the available books on the screen. Extensions: None

Set the Priority (UC8-2)


Scope Level Goal in Context Primary Actor Stakeholders Preconditions Library Management System User Goal Present a form to the admin to Prioritize the students. Admin Admin: Wants to Prioritize the students that are reserving the books. The Entered password is correct.

Triggers

Admin selects Set the Priority option from the Reservation of books menu.

Success Guarantee Library Management Software prioritizes the student according to Admin. Main Success Scenario: 1. Admin: Selects the menu option to Prioritize the students that are reserving the books. 2. Library Management System: presents a form 3. Admin: Enters the Name of the Student, Registration Number8-2b, Applying date8-3b 4. Library Management System: Save the changes in the record of the returned books and updates the previous record. Extensions: 8-2a: if the Password is incorrect than a message is printed on the screen and admin is returned to the Reservation of Books record menu. 8-2b: The Registration must be in the form year of joining of institution institution name department name registration number (that must not be greater than 4 digits). 8-3b The Applying date must be in the format of MM/DD/YYYY if Month is greater than 12 or Days is greater than 31, a message is printed on the screen and asks for reenter

You might also like