# nagamutyakumar/cs-6360 architecture

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

- Interactive diagram: https://gitdiagram.com/nagamutyakumar/cs-6360
- Repository: https://github.com/nagamutyakumar/cs-6360

## Overview

The repository contains two separate database-related products: a Java command-line database prototype and several Tkinter/MySQL library-management applications. The library workflow supports book search and checkout, borrower registration, check-in, and fine management; the Java prototype accepts SQL-like commands and includes a stubbed table-file creation path. Evidence is limited to the README, source index, and sampled excerpts, so unsampled workflow links are omitted.

Main entry points: [`Library Management/Patch/main.py`](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/main.py) (Patch Entry), [`Initial-Code/GellMannDB.java`](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/GellMannDB.java) (SQL Prompt), [`Initial-Code/Commands.java`](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Commands.java) (Command Parser), [`Library Management/Patch/MainGui.py`](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/MainGui.py) (Library Operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_java["Java DB Prototype"]
  node_cli["SQL Prompt<br/>[GellMannDB.java]"]
  node_commands["Command Parser<br/>[Commands.java]"]
end

subgraph group_library["Library Applications"]
  node_milestone1["Borrower Viewer<br/>[Main.py]"]
  node_m2entry["Milestone 2 Entry<br/>[main.py]"]
  node_m2gui["Library GUI<br/>[GUI.py]"]
  node_normalization["Data Normalization"]
  node_patchentry["Patch Entry<br/>[main.py]"]
  node_maingui["Library Operations<br/>[MainGui.py]"]
  node_borrower["Borrower Registration<br/>[BorrowingPerson.py]"]
  node_checkin["Loan Check-In<br/>[CheckIn.py]"]
  node_fines["Fine Payment<br/>[PayFines.py]"]
end

subgraph group_storage["Database Storage"]
  node_tablefiles[("Table Files<br/>[Commands.java]")]
  node_milestone1mysql[("Library MySQL")]
  node_patchmysql[("Library MySQL")]
end

subgraph group_support["Shared Runtime Support"]
  node_settings["Runtime Settings<br/>[Settings.java]"]
  node_utils["Console Utilities<br/>[Utils.java]"]
end

node_user(("Operator"))

node_user -->|"enters commands"| node_cli
node_cli -->|"dispatches commands"| node_commands
node_cli -->|"reads prompt"| node_settings
node_cli -->|"shows welcome"| node_utils
node_commands -->|"reads settings"| node_settings
node_commands -->|"formats help"| node_utils
node_commands -->|"creates table file"| node_tablefiles
node_user -->|"uses viewer"| node_milestone1
node_milestone1 -->|"queries borrowers"| node_milestone1mysql
node_user -->|"starts application"| node_m2entry
node_m2entry -->|"launches GUI"| node_m2gui
node_m2gui -->|"references entry"| node_patchentry
node_user -->|"starts application"| node_patchentry
node_patchentry -->|"creates interface"| node_maingui
node_patchentry -->|"imports workflow"| node_borrower
node_patchentry -->|"imports workflow"| node_checkin
node_patchentry -->|"imports workflow"| node_fines
node_maingui -->|"opens registration"| node_borrower
node_maingui -->|"opens fine window"| node_fines
node_borrower -->|"writes borrower"| node_patchmysql
node_checkin -->|"updates loan"| node_patchmysql
node_fines -->|"reads and updates fines"| node_patchmysql
node_maingui -->|"queries loans"| node_patchmysql
node_m2gui -.->|"queries library data"| node_milestone1mysql
node_normalization -.-> node_milestone1mysql

click node_cli "https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/GellMannDB.java"
click node_commands "https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Commands.java"
click node_settings "https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Settings.java"
click node_utils "https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Utils.java"
click node_tablefiles "https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Commands.java"
click node_milestone1 "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Milestone1/Main.py"
click node_m2entry "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/MileStone2/main.py"
click node_m2gui "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/MileStone2/GUI.py"
click node_normalization "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/MileStone2/Data_Normalisation.py"
click node_patchentry "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/main.py"
click node_maingui "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/MainGui.py"
click node_borrower "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/BorrowingPerson.py"
click node_checkin "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/CheckIn.py"
click node_fines "https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/PayFines.py"

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_cli,node_commands toneBlue
class node_milestone1,node_m2entry,node_m2gui,node_normalization,node_patchentry,node_maingui,node_borrower,node_checkin,node_fines toneAmber
class node_tablefiles,node_milestone1mysql,node_patchmysql toneMint
class node_settings,node_utils toneRose
class node_user toneIndigo
```

## Components

### Java DB Prototype

- [SQL Prompt](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/GellMannDB.java): `Initial-Code/GellMannDB.java`
- [Command Parser](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Commands.java): `Initial-Code/Commands.java`

### Library Applications

- [Borrower Viewer](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Milestone1/Main.py): `Library Management/Milestone1/Main.py`
- [Milestone 2 Entry](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/MileStone2/main.py): `Library Management/MileStone2/main.py`
- [Library GUI](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/MileStone2/GUI.py): `Library Management/MileStone2/GUI.py`
- [Data Normalization](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/MileStone2/Data_Normalisation.py): `Library Management/MileStone2/Data_Normalisation.py`
- [Patch Entry](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/main.py): `Library Management/Patch/main.py`
- [Library Operations](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/MainGui.py): `Library Management/Patch/MainGui.py`
- [Borrower Registration](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/BorrowingPerson.py): `Library Management/Patch/BorrowingPerson.py`
- [Loan Check-In](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/CheckIn.py): `Library Management/Patch/CheckIn.py`
- [Fine Payment](https://github.com/nagamutyakumar/cs-6360/blob/main/Library%20Management/Patch/PayFines.py): `Library Management/Patch/PayFines.py`

### Database Storage

- [Table Files](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Commands.java): `Initial-Code/Commands.java`
- **Library MySQL**
- **Library MySQL**

### Shared Runtime Support

- [Runtime Settings](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Settings.java): `Initial-Code/Settings.java`
- [Console Utilities](https://github.com/nagamutyakumar/cs-6360/blob/main/Initial-Code/Utils.java): `Initial-Code/Utils.java`

### Other components

- **Operator**

## Connections

- Operator → SQL Prompt: enters commands (evidence: `Initial-Code/GellMannDB.java`)
- SQL Prompt → Command Parser: dispatches commands (evidence: `Initial-Code/GellMannDB.java`)
- SQL Prompt → Runtime Settings: reads prompt (evidence: `Initial-Code/GellMannDB.java`)
- SQL Prompt → Console Utilities: shows welcome (evidence: `Initial-Code/GellMannDB.java`)
- Command Parser → Runtime Settings: reads settings (evidence: `Initial-Code/Commands.java`)
- Command Parser → Console Utilities: formats help (evidence: `Initial-Code/Commands.java`)
- Command Parser → Table Files: creates table file (evidence: `Initial-Code/Commands.java`)
- Operator → Borrower Viewer: uses viewer (evidence: `Library Management/Milestone1/Main.py`)
- Borrower Viewer → Library MySQL: queries borrowers (evidence: `Library Management/Milestone1/Main.py`)
- Operator → Milestone 2 Entry: starts application (evidence: `Library Management/MileStone2/main.py`)
- Milestone 2 Entry → Library GUI: launches GUI (evidence: `Library Management/MileStone2/main.py`)
- Library GUI → Patch Entry: references entry (evidence: `Library Management/MileStone2/GUI.py`)
- Operator → Patch Entry: starts application (evidence: `Library Management/Patch/main.py`)
- Patch Entry → Library Operations: creates interface (evidence: `Library Management/Patch/main.py`)
- Patch Entry → Borrower Registration: imports workflow (evidence: `Library Management/Patch/main.py`)
- Patch Entry → Loan Check-In: imports workflow (evidence: `Library Management/Patch/main.py`)
- Patch Entry → Fine Payment: imports workflow (evidence: `Library Management/Patch/main.py`)
- Library Operations → Borrower Registration: opens registration (evidence: `Library Management/Patch/MainGui.py`)
- Library Operations → Fine Payment: opens fine window (evidence: `Library Management/Patch/MainGui.py`)
- Borrower Registration → Library MySQL: writes borrower (evidence: `Library Management/Patch/BorrowingPerson.py`)
- Loan Check-In → Library MySQL: updates loan (evidence: `Library Management/Patch/CheckIn.py`)
- Fine Payment → Library MySQL: reads and updates fines (evidence: `Library Management/Patch/PayFines.py`)
- Library Operations → Library MySQL: queries loans (evidence: `Library Management/Patch/MainGui.py`)
- Library GUI → Library MySQL: queries library data
- Data Normalization → Library MySQL
