Search⌘ K
AI Features

Use Case Diagram for the Vending Machine

Explore how to build a use case diagram for a vending machine system. Understand the roles of actors like customers and operators, define key use cases such as product selection and payment validation, and learn the system's workflows through relationships like include and generalization. This lesson helps you visualize system interactions clearly.

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. ...

Use cases