# 2200090246/smart-hostel-manager architecture

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

- Interactive diagram: https://gitdiagram.com/2200090246/smart-hostel-manager
- Repository: https://github.com/2200090246/smart-hostel-manager

## Overview

This is a small console-based hostel room manager. The principal workflow is a user registering one student and adding one room, then creating and displaying an allocation for them. Main owns the menu and invokes the domain objects; Hostel only tracks a student count, while Student, Room, and Allocation hold and display domain data. The excerpts show no persistent storage or external services.

Main entry points: [`smart_hostel_room_manager/src/com/hostel/Main.java`](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Main.java) (Menu workflow), [`smart_hostel_room_manager/src/com/hostel/Allocation.java`](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Allocation.java) (Room allocation), [`smart_hostel_room_manager/src/com/hostel/Student.java`](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Student.java) (Student profile), [`smart_hostel_room_manager/src/com/hostel/Room.java`](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Room.java) (Room details)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_domain["Hostel domain"]
  node_hostel["Hostel counts<br/>[Hostel.java]"]
  node_student["Student profile<br/>[Student.java]"]
  node_room["Room details<br/>[Room.java]"]
  node_allocation["Room allocation<br/>[Allocation.java]"]
end

node_user(("Operator"))

node_user -->|"chooses options"| node_main
node_main -->|"creates, counts student"| node_hostel
node_main -->|"creates, displays"| node_student
node_main -->|"creates, displays"| node_room
node_main -->|"creates, displays"| node_allocation
node_allocation -->|"reads name"| node_student
node_allocation -->|"reads number"| node_room

click node_main "https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Main.java"
click node_hostel "https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Hostel.java"
click node_student "https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Student.java"
click node_room "https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Room.java"
click node_allocation "https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Allocation.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_hostel,node_student,node_room,node_allocation toneAmber
class node_user toneIndigo
```

## Components

### Console workflow

- [Menu workflow](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Main.java): `smart_hostel_room_manager/src/com/hostel/Main.java`

### Hostel domain

- [Hostel counts](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Hostel.java): `smart_hostel_room_manager/src/com/hostel/Hostel.java`
- [Student profile](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Student.java): `smart_hostel_room_manager/src/com/hostel/Student.java`
- [Room details](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Room.java): `smart_hostel_room_manager/src/com/hostel/Room.java`
- [Room allocation](https://github.com/2200090246/smart-hostel-manager/blob/master/smart_hostel_room_manager/src/com/hostel/Allocation.java): `smart_hostel_room_manager/src/com/hostel/Allocation.java`

### Other components

- **Operator**

## Connections

- Operator → Menu workflow: chooses options (evidence: `smart_hostel_room_manager/src/com/hostel/Main.java`)
- Menu workflow → Hostel counts: creates, counts student (evidence: `smart_hostel_room_manager/src/com/hostel/Main.java`)
- Menu workflow → Student profile: creates, displays (evidence: `smart_hostel_room_manager/src/com/hostel/Main.java`)
- Menu workflow → Room details: creates, displays (evidence: `smart_hostel_room_manager/src/com/hostel/Main.java`)
- Menu workflow → Room allocation: creates, displays (evidence: `smart_hostel_room_manager/src/com/hostel/Main.java`)
- Room allocation → Student profile: reads name (evidence: `smart_hostel_room_manager/src/com/hostel/Allocation.java`)
- Room allocation → Room details: reads number (evidence: `smart_hostel_room_manager/src/com/hostel/Allocation.java`)
