Use Case Diagram for the Vending Machine
Learn how to define use cases and create the corresponding use case diagram for the vending machine.
Let’s build the use case diagram for the Vending Machine system and understand the relationships between its main actors and functions. First, we’ll define the different elements of our system, followed by the complete use case diagram.
System
Our system is the Vending Machine. It manages automated product selection, payment, and goods dispensing through a self-service interface.
Actors
Now, we’ll define the main actors of our vending machine.
Primary actors
Customer: Can view available products, select products to purchase, insert money, collect dispensed products, and receive change.
Operator: Inherits all Customer actions. Additionally, the operator can add new products, remove products, and remove collected cash from the machine. ...