This action might not be possible to undo. Are you sure you want to continue?
Week 1 – Lab 1
What is a Use Case Diagram? • Explains what the main functionality of the system is • Mainly cares for the system’s expected behavior (what) rather that how it is done! .
• 1) Actors • An actor specifies a role that some external entity adopts when interacting with the system directly. • It may represent a role played by: – a user – another system – a piece of hardware • Actors may be both at input and output ends of a use case Use Case Diagram: Components .
.Use Case Diagram: Components • 2)Use Case • Describes all the services required or performed by the actor.
delete books. The system is used by the librarian. can add books. • The librarian. add clients. delete clients. list books. check in/out books • The assistant librarian has all the functionality of the librarian except for add/delete for books and clients • Clients may only check in/out books . the assistant librarian and the clients.Example 1 • Construct a use case diagram for a library management system. list clients.
Continued • To find the actors Look for nouns • To find the user case Look for verbs .Example 1 .
delete books. list clients. add clients. check in/out books • The assistant librarian has all the functionality of the librarian except for add/delete for books and clients • Clients may only check in/out books . can add books. • The librarian. list books. delete clients. The system is used by the librarian.Example 1 • Construct a use case diagram for a library management system. the assistant librarian and the clients.
A new user can create a new profile with a username and a password. The user can book. • After logging into the system. and making a payment. This profile can be changed at any time if the user wants. The user logs to the system using his/her username and password. change or cancel a flight reservation. the user inquires about different flights. This includes choosing a payment method. Example 2 .• Construct a use case diagram for an online travel agency system.