# shiinahh-qutie/group1_brewbots_code architecture

> Architecture diagram of the GitHub repository shiinahh-qutie/group1_brewbots_code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shiinahh-qutie/group1_brewbots_code
- Repository: https://github.com/shiinahh-qutie/group1_brewbots_code

## Overview

This is a terminal-based C++ coffee vending machine. The user enters through a welcome menu, then selects a coffee, chooses a cup size and add-on, pays with accepted cash denominations, and sees a simulated preparation/dispensing flow. Vendo coordinates these stages; menus and domain objects supply selections and pricing, while Console handles terminal interaction. The README is only a brief project description, so capabilities and relationships here are based on the excerpted source; no external payment or physical vending integration is shown.

Main entry points: [`Coffee_Vending/Vendo.h`](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Vendo.h) (Vending Flow), [`Coffee_Vending/Console.h`](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Console.h) (Console Helpers), [`Coffee_Vending/Order.h`](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Order.h) (Order Calculation), [`Coffee_Vending/Coffee.h`](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Coffee.h) (Coffee Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and Welcome"]
  node_main["Program Entry<br/>[main.cpp]"]
  node_start["Welcome Menu<br/>[StartMenu.h]"]
  node_changelog["Changelog<br/>[Changelog.txt]"]
end

subgraph group_ordering["Order Workflow"]
  node_vendo["Vending Flow<br/>[Vendo.h]"]
  node_coffee_menu["Coffee Selection<br/>[CoffeeMenu.h]"]
  node_addon_menu["Add-on Selection<br/>[AddOnMenu.h]"]
  node_payment["Cash Payment<br/>[Payment.h]"]
end

subgraph group_domain["Catalog and Order Model"]
  node_coffee["Coffee Model<br/>[Coffee.h]"]
  node_addon["Add-on Model<br/>[AddOn.h]"]
  node_order["Order Calculation<br/>[Order.h]"]
  node_size["Cup Size<br/>[Size.h]"]
end

subgraph group_terminal["Terminal Interface"]
  node_console["Console Helpers<br/>[Console.h]"]
end

node_user(("Customer"))

node_user -.->|"starts"| node_main
node_main -->|"runs"| node_start
node_main -->|"runs"| node_vendo
node_start -->|"uses"| node_console
node_start -->|"reads"| node_changelog
node_vendo -->|"selects"| node_coffee_menu
node_vendo -->|"chooses size"| node_coffee
node_vendo -->|"selects"| node_addon_menu
node_vendo -->|"creates"| node_order
node_vendo -->|"processes payment"| node_payment
node_vendo -->|"shows progress"| node_console
node_coffee_menu -->|"returns selection"| node_coffee
node_coffee_menu -->|"renders and reads"| node_console
node_addon_menu -->|"returns selection"| node_addon
node_addon_menu -->|"renders and reads"| node_console
node_payment -->|"reads totals"| node_order
node_payment -->|"renders and reads"| node_console
node_order -->|"prices and describes"| node_coffee
node_order -->|"prices and describes"| node_addon
node_coffee -->|"uses"| node_size
node_addon -->|"uses"| node_size

click node_main "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/main.cpp"
click node_start "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/StartMenu.h"
click node_changelog "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Changelog.txt"
click node_vendo "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Vendo.h"
click node_coffee_menu "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/CoffeeMenu.h"
click node_addon_menu "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/AddOnMenu.h"
click node_payment "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Payment.h"
click node_coffee "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Coffee.h"
click node_addon "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/AddOn.h"
click node_order "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Order.h"
click node_size "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Size.h"
click node_console "https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Console.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_start,node_changelog toneBlue
class node_vendo,node_coffee_menu,node_addon_menu,node_payment toneAmber
class node_coffee,node_addon,node_order,node_size toneMint
class node_console toneRose
class node_user toneIndigo
```

## Components

### Entry and Welcome

- [Program Entry](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/main.cpp): `Coffee_Vending/main.cpp`
- [Welcome Menu](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/StartMenu.h): `Coffee_Vending/StartMenu.h`
- [Changelog](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Changelog.txt): `Coffee_Vending/Changelog.txt`

### Order Workflow

- [Vending Flow](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Vendo.h): `Coffee_Vending/Vendo.h`
- [Coffee Selection](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/CoffeeMenu.h): `Coffee_Vending/CoffeeMenu.h`
- [Add-on Selection](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/AddOnMenu.h): `Coffee_Vending/AddOnMenu.h`
- [Cash Payment](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Payment.h): `Coffee_Vending/Payment.h`

### Catalog and Order Model

- [Coffee Model](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Coffee.h): `Coffee_Vending/Coffee.h`
- [Add-on Model](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/AddOn.h): `Coffee_Vending/AddOn.h`
- [Order Calculation](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Order.h): `Coffee_Vending/Order.h`
- [Cup Size](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Size.h): `Coffee_Vending/Size.h`

### Terminal Interface

- [Console Helpers](https://github.com/shiinahh-qutie/group1_brewbots_code/blob/main/Coffee_Vending/Console.h): `Coffee_Vending/Console.h`

### Other components

- **Customer**

## Connections

- Customer → Program Entry: starts
- Program Entry → Welcome Menu: runs (evidence: `Coffee_Vending/main.cpp`)
- Program Entry → Vending Flow: runs (evidence: `Coffee_Vending/main.cpp`)
- Welcome Menu → Console Helpers: uses (evidence: `Coffee_Vending/StartMenu.h`)
- Welcome Menu → Changelog: reads (evidence: `Coffee_Vending/StartMenu.h`)
- Vending Flow → Coffee Selection: selects (evidence: `Coffee_Vending/Vendo.h`)
- Vending Flow → Coffee Model: chooses size (evidence: `Coffee_Vending/Vendo.h`)
- Vending Flow → Add-on Selection: selects (evidence: `Coffee_Vending/Vendo.h`)
- Vending Flow → Order Calculation: creates (evidence: `Coffee_Vending/Vendo.h`)
- Vending Flow → Cash Payment: processes payment (evidence: `Coffee_Vending/Vendo.h`)
- Vending Flow → Console Helpers: shows progress (evidence: `Coffee_Vending/Vendo.h`)
- Coffee Selection → Coffee Model: returns selection (evidence: `Coffee_Vending/CoffeeMenu.h`)
- Coffee Selection → Console Helpers: renders and reads (evidence: `Coffee_Vending/CoffeeMenu.h`)
- Add-on Selection → Add-on Model: returns selection (evidence: `Coffee_Vending/AddOnMenu.h`)
- Add-on Selection → Console Helpers: renders and reads (evidence: `Coffee_Vending/AddOnMenu.h`)
- Cash Payment → Order Calculation: reads totals (evidence: `Coffee_Vending/Payment.h`)
- Cash Payment → Console Helpers: renders and reads (evidence: `Coffee_Vending/Payment.h`)
- Order Calculation → Coffee Model: prices and describes (evidence: `Coffee_Vending/Order.h`)
- Order Calculation → Add-on Model: prices and describes (evidence: `Coffee_Vending/Order.h`)
- Coffee Model → Cup Size: uses (evidence: `Coffee_Vending/Coffee.h`)
- Add-on Model → Cup Size: uses (evidence: `Coffee_Vending/AddOn.h`)
