How dheeraj00001/se-lab-3-assignment works
This is a Python reference implementation of a self-service coffee kiosk, organized as presentation, business, and local data layers. The customer selects a beverage and size in the UI; the order manager prices and creates the order, processes payment, records the outcome, and requests a receipt. The main module assembles the components and demonstrates the flow. The README documents physical kiosk capabilities, but sampled code simulates card reading and receipt printing; no external hardware integration is shown.
Main entry points: main.py Kiosk Bootstrap · order_manager.py Order Manager · ui_component.py Kiosk UI · interfaces.py Component Contracts
Components 8
Presentation
- Kiosk UI
src/presentation/ui_component.py
Business Logic
- Order Manager
src/business/order_manager.py - Payment Service
src/business/payment_service.py - Receipt Printer
src/business/receipt_printer.py - Component Contracts
src/interfaces.py
Local Persistence
- SQLite Data
src/data/database_component.py
Runtime Assembly
- Kiosk Bootstrap
src/main.py
Other components
- Customer
Connections 17
- Customer → Kiosk UI: selects drink
README.md - Kiosk UI → Order Manager: requests order
src/presentation/ui_component.py - Kiosk Bootstrap → Payment Service: reads token
src/main.py - Kiosk Bootstrap → Kiosk UI: runs demo
src/main.py - Order Manager → SQLite Data: reads price; stores order
src/business/order_manager.py - Order Manager → Payment Service: processes payment
src/business/order_manager.py - Order Manager → Receipt Printer: prints receipt
src/business/order_manager.py - Kiosk Bootstrap → SQLite Data: assembles
src/main.py - Kiosk Bootstrap → Order Manager: assembles
src/main.py - Kiosk Bootstrap → Receipt Printer: assembles
src/main.py - Kiosk Bootstrap → Payment Service: assembles
src/main.py - Kiosk Bootstrap → Kiosk UI: assembles
src/main.py - Kiosk UI → Component Contracts: uses types
src/presentation/ui_component.py - Order Manager → Component Contracts: uses interfaces
src/business/order_manager.py - Payment Service → Component Contracts: uses interface
src/business/payment_service.py - Receipt Printer → Component Contracts: uses interface
src/business/receipt_printer.py - SQLite Data → Component Contracts: uses types
src/data/database_component.py