# shreenivasreddyp/maintainit architecture

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

- Interactive diagram: https://gitdiagram.com/shreenivasreddyp/maintainit
- Repository: https://github.com/shreenivasreddyp/maintainit

## Overview

MAINTAINIT is a small Java campus-maintenance issue manager. Its documented workflow is reporting issues, tracking them, assigning technicians, and updating priority/status; the sampled implementation centers on an in-memory issue collection managed by MaintenanceSystem. User and technician profiles support issue ownership and assignment. Source excerpts show issue creation, assignment, status changes, lookup, display, and removal; README documents the broader reporting/tracking capabilities. This is a model-only application, not a service with a demonstrated external interface or persistent store.

Main entry points: [`src/maintenance/Issue.java`](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Issue.java) (Maintenance issue), [`src/maintenance/MaintenanceSystem.java`](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/MaintenanceSystem.java) (Issue manager), [`src/maintenance/Technician.java`](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Technician.java) (Technician profile), [`src/maintenance/User.java`](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/User.java) (User profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Issue workflow"]
  node_maintenance_system["Issue manager"]
end

subgraph group_domain["Domain model"]
  node_issue["Maintenance issue<br/>[Issue.java]"]
  node_priority["Priority levels<br/>[Priority.java]"]
  node_status["Issue status<br/>[Status.java]"]
  node_user["User profile<br/>[User.java]"]
  node_student["Student profile<br/>[Student.java]"]
  node_technician["Technician profile<br/>[Technician.java]"]
end

node_campus_user(("Campus reporter"))

node_campus_user -.->|"reports issue"| node_maintenance_system
node_maintenance_system -->|"stores and manages"| node_issue
node_maintenance_system -->|"updates status"| node_status
node_maintenance_system -->|"assigns technician"| node_technician
node_maintenance_system -->|"displays issue details"| node_issue
node_issue -->|"uses priority"| node_priority
node_issue -->|"uses status"| node_status
node_issue -->|"records reporter"| node_user
node_issue -->|"records assignee"| node_technician
node_student -->|"extends"| node_user
node_technician -->|"extends"| node_user

click node_maintenance_system "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/MaintenanceSystem.java"
click node_issue "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Issue.java"
click node_priority "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Priority.java"
click node_status "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Status.java"
click node_user "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/User.java"
click node_student "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Student.java"
click node_technician "https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Technician.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_maintenance_system toneBlue
class node_issue,node_priority,node_status,node_user,node_student,node_technician toneAmber
class node_campus_user toneIndigo
```

## Components

### Issue workflow

- [Issue manager](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/MaintenanceSystem.java): `src/maintenance/MaintenanceSystem.java`

### Domain model

- [Maintenance issue](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Issue.java): `src/maintenance/Issue.java`
- [Priority levels](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Priority.java): `src/maintenance/Priority.java`
- [Issue status](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Status.java): `src/maintenance/Status.java`
- [User profile](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/User.java): `src/maintenance/User.java`
- [Student profile](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Student.java): `src/maintenance/Student.java`
- [Technician profile](https://github.com/shreenivasreddyp/maintainit/blob/main/src/maintenance/Technician.java): `src/maintenance/Technician.java`

### Other components

- **Campus reporter**

## Connections

- Campus reporter → Issue manager: reports issue (evidence: `README.md`)
- Issue manager → Maintenance issue: stores and manages (evidence: `src/maintenance/MaintenanceSystem.java`)
- Issue manager → Issue status: updates status (evidence: `src/maintenance/MaintenanceSystem.java`)
- Issue manager → Technician profile: assigns technician (evidence: `src/maintenance/MaintenanceSystem.java`)
- Issue manager → Maintenance issue: displays issue details (evidence: `src/maintenance/MaintenanceSystem.java`)
- Maintenance issue → Priority levels: uses priority (evidence: `src/maintenance/Issue.java`)
- Maintenance issue → Issue status: uses status (evidence: `src/maintenance/Issue.java`)
- Maintenance issue → User profile: records reporter (evidence: `src/maintenance/Issue.java`)
- Maintenance issue → Technician profile: records assignee (evidence: `src/maintenance/Issue.java`)
- Student profile → User profile: extends (evidence: `src/maintenance/Student.java`)
- Technician profile → User profile: extends (evidence: `src/maintenance/Technician.java`)
