# korukonda-pavan/exam-seating-arrangment architecture

> Architecture diagram of the GitHub repository korukonda-pavan/exam-seating-arrangment, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/korukonda-pavan/exam-seating-arrangment
- Repository: https://github.com/korukonda-pavan/exam-seating-arrangment

## Overview

This is a console-based exam seating arrangement system. An operator logs in as the hard-coded admin, adds students and rooms with seat counts, generates assignments, and views the resulting seating map. Main handles the interactive workflow, Admin performs student, room, and seating operations, and Database holds the in-memory state. Student and Admin share the User base class. Student has a method for displaying a seat, but the shown workflow does not call it. Example.java is an unrelated number exercise. Evidence is limited to the supplied excerpts.

Main entry points: [`src/examSeating/Main.java`](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Main.java) (Console workflow), [`src/examSeating/Admin.java`](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Admin.java) (Admin operations), [`src/examSeating/Student.java`](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Student.java) (Student record), [`src/examSeating/User.java`](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/User.java) (User credentials)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Console workflow"]
  node_main["Console workflow<br/>[Main.java]"]
end

subgraph group_operations["Seating operations"]
  node_admin["Admin operations<br/>[Admin.java]"]
end

subgraph group_domain["Domain and state"]
  node_student["Student record<br/>[Student.java]"]
  node_user["User credentials<br/>[User.java]"]
  node_database[("Seating state<br/>[Database.java]")]
end

node_operator(("Operator"))

node_operator -->|"uses console"| node_main
node_main -->|"invokes operations"| node_admin
node_main -->|"creates records"| node_student
node_main -->|"creates and reads"| node_database
node_admin -->|"updates assignments"| node_database
node_admin -->|"stores students"| node_student
node_admin -->|"extends"| node_user
node_student -->|"extends"| node_user

click node_main "https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Main.java"
click node_admin "https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Admin.java"
click node_student "https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Student.java"
click node_user "https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/User.java"
click node_database "https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Database.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 toneBlue
class node_admin toneAmber
class node_student,node_user,node_database toneMint
class node_operator toneIndigo
```

## Components

### Console workflow

- [Console workflow](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Main.java): `src/examSeating/Main.java`

### Seating operations

- [Admin operations](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Admin.java): `src/examSeating/Admin.java`

### Domain and state

- [Student record](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Student.java): `src/examSeating/Student.java`
- [User credentials](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/User.java): `src/examSeating/User.java`
- [Seating state](https://github.com/korukonda-pavan/exam-seating-arrangment/blob/main/src/examSeating/Database.java): `src/examSeating/Database.java`

### Other components

- **Operator**

## Connections

- Operator → Console workflow: uses console (evidence: `src/examSeating/Main.java`)
- Console workflow → Admin operations: invokes operations (evidence: `src/examSeating/Main.java`)
- Console workflow → Student record: creates records (evidence: `src/examSeating/Main.java`)
- Console workflow → Seating state: creates and reads (evidence: `src/examSeating/Main.java`)
- Admin operations → Seating state: updates assignments (evidence: `src/examSeating/Admin.java`)
- Admin operations → Student record: stores students (evidence: `src/examSeating/Admin.java`)
- Admin operations → User credentials: extends (evidence: `src/examSeating/Admin.java`)
- Student record → User credentials: extends (evidence: `src/examSeating/Student.java`)
