Introduction: Capturing the dynamic behaviour of a system is one the key aspects to create a model. Dynamic behaviour means the behaviour of the system under operation.
Use case diagrams are used in Unified Modeling Language, a standard modelling language for the modeling of real-world objects and systems. A use case diagram is to explicitly define the working of a system with in a system boundary. Each system is primarily divided into two main components in a use case diagram namely “Actor” and Use Cases”. Use case diagram gives us an outline of the system where actors interact with the system via the defined use cases. This type of diagram does not go into the …show more content…
Interaction between various actors is depicted such that testing at later stages is conducted in a smooth way.
.
Use Case Diagram: Figure: 1
Figure 1 represents an online portal used for managing a library being run in a university.
Actors Role
Student A student of the university will be given a pre-set username and password to login the online portal of the library.
A student, after proper login can search for books he/she wants to borrow and then can use the portal to borrow books.
Similarly the student can also use the portal to put a return request of his borrowed book.
The portal also provides an online payment gateway to pay his/her fines, if any.
Librarian A librarian will play an administrative role in the system. He/she will be responsible for lending books to the students i.e. after a student has collected the book he/she wants to borrow from him, he should update the stock and should also take care of the books being returned by the students by updating the stock.
Person To represent the concept of generalisation and inheritance a superclass named “person” has been shown.
Both student and librarian will inherit the common attributes from person class. For e.g.
• Name.
• Gender.
• Date of …show more content…
A student can only view this option if and only if he has proper login credential with him/her.(include)
This option also links with the update stock option to update the stock of books in the books database.(extend)
Return_book This use case will provide an interface for the users/students to display all the books that he/she have borrowed and not returned and will provide a mechanism for them to return the desired book.
A student can only view this option if and only if he has proper login credential with him/her.(include)
This option also links with the update stock option to update the stock of books in the books database.(extend)
Pay_fine This use case will provide an interface for the users/students to pay fine for the books that they have not returned on time and will provide them an online gateway to do that.
A student can only view this option if and only if he has proper login credential with him/her.(include)
Verify_user This use case will provide the user with an interface to enter his/her login credentials and will verify the authenticity of the credentials