# lukeh2026s/cs-2114-project-3-group-77 architecture

> Architecture diagram of the GitHub repository lukeh2026s/cs-2114-project-3-group-77, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lukeh2026s/cs-2114-project-3-group-77
- Repository: https://github.com/lukeh2026s/cs-2114-project-3-group-77

## Overview

This is a console-based airplane ticket and boarding simulator. A passenger enters their name and VIP status, chooses among flights, buys a selected or random seat, joins the boarding process, and earns miles after the flight. Main coordinates that workflow; Menu handles console interaction, while Airplane, Ticket, User, and Boarding hold the core domain behavior. UserSim populates flights with simulated passengers. The graph follows the excerpts and README; unsampled implementation details are not inferred.

Main entry points: [`collections/Main.java`](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Main.java) (Workflow controller), [`collections/Airplane.java`](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Airplane.java) (Flight and seats), [`collections/Boarding.java`](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Boarding.java) (Boarding queues), [`collections/User.java`](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/User.java) (Passenger account)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_main["Workflow controller<br/>[Main.java]"]
  node_menu["Console menu<br/>[Menu.java]"]
end

subgraph group_flight["Flights and tickets"]
  node_airplane["Flight and seats<br/>[Airplane.java]"]
  node_ticket["Ticket<br/>[Ticket.java]"]
end

subgraph group_boarding["Boarding"]
  node_boarding["Boarding queues<br/>[Boarding.java]"]
  node_simulation["Passenger simulation<br/>[UserSim.java]"]
end

subgraph group_passenger["Passenger domain"]
  node_user["Passenger account<br/>[User.java]"]
end

node_passenger(("Passenger"))

node_passenger -->|"provides input"| node_main
node_main -->|"requests and displays"| node_menu
node_main -->|"selects and books"| node_airplane
node_main -->|"populates flight"| node_simulation
node_main -->|"manages boarding"| node_boarding
node_main -->|"creates and updates"| node_user
node_airplane -->|"charges and assigns"| node_user
node_airplane -->|"creates ticket"| node_ticket
node_airplane -->|"gets boarding group"| node_boarding
node_user -->|"stores ticket"| node_ticket
node_simulation -->|"buys seats"| node_airplane
node_simulation -->|"queues passengers"| node_boarding
node_boarding -->|"reads passenger ticket"| node_user
node_ticket -->|"references flight"| node_airplane

click node_main "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Main.java"
click node_menu "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Menu.java"
click node_airplane "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Airplane.java"
click node_ticket "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Ticket.java"
click node_boarding "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Boarding.java"
click node_simulation "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/UserSim.java"
click node_user "https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/User.java"

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_menu toneBlue
class node_airplane,node_ticket toneAmber
class node_boarding,node_simulation toneMint
class node_user toneRose
class node_passenger toneIndigo
```

## Components

### Application

- [Workflow controller](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Main.java): `collections/Main.java`
- [Console menu](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Menu.java): `collections/Menu.java`

### Flights and tickets

- [Flight and seats](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Airplane.java): `collections/Airplane.java`
- [Ticket](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Ticket.java): `collections/Ticket.java`

### Boarding

- [Boarding queues](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/Boarding.java): `collections/Boarding.java`
- [Passenger simulation](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/UserSim.java): `collections/UserSim.java`

### Passenger domain

- [Passenger account](https://github.com/lukeh2026s/cs-2114-project-3-group-77/blob/main/collections/User.java): `collections/User.java`

### Other components

- **Passenger**

## Connections

- Passenger → Workflow controller: provides input (evidence: `README.md`)
- Workflow controller → Console menu: requests and displays (evidence: `collections/Main.java`)
- Workflow controller → Flight and seats: selects and books (evidence: `collections/Main.java`)
- Workflow controller → Passenger simulation: populates flight (evidence: `collections/Main.java`)
- Workflow controller → Boarding queues: manages boarding (evidence: `collections/Main.java`)
- Workflow controller → Passenger account: creates and updates (evidence: `collections/Main.java`)
- Flight and seats → Passenger account: charges and assigns (evidence: `collections/Airplane.java`)
- Flight and seats → Ticket: creates ticket (evidence: `collections/Airplane.java`)
- Flight and seats → Boarding queues: gets boarding group (evidence: `collections/Airplane.java`)
- Passenger account → Ticket: stores ticket (evidence: `collections/User.java`)
- Passenger simulation → Flight and seats: buys seats (evidence: `collections/UserSim.java`)
- Passenger simulation → Boarding queues: queues passengers (evidence: `collections/UserSim.java`)
- Boarding queues → Passenger account: reads passenger ticket (evidence: `collections/Boarding.java`)
- Ticket → Flight and seats: references flight (evidence: `collections/Ticket.java`)
