# edwin-metcalf/class-registration-software architecture

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

- Interactive diagram: https://gitdiagram.com/edwin-metcalf/class-registration-software
- Repository: https://github.com/edwin-metcalf/class-registration-software

## Overview

This is a Java course preregistration prototype. Its intended workflow loads student and course rosters, attaches each student’s ranked course requests, initializes enrollment counts, and passes the resulting data to the registration algorithm for output. Student and course models provide ordering and schedule/conflict checks used by that algorithm. The sampled code shows Registrar invoking the algorithm, but Algorithm.run() currently prints schedules rather than running its request-processing passes; the registration workflow is therefore incomplete. No README was provided, and the graph reflects the sampled source and SOURCE INDEX.

Main entry points: [`pre registration/prereg_final_metcalf/src/Registrar.java`](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Registrar.java) (Registrar), [`pre registration/prereg_final_metcalf/src/RequestLoader.java`](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/RequestLoader.java) (Request loader), [`pre registration/prereg_final_metcalf/src/Algorithm.java`](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Algorithm.java) (Registration algorithm), [`pre registration/prereg_final_metcalf/src/Student.java`](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Student.java) (Student model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Program entry"]
  node_main["Main<br/>[Main.java]"]
  node_registrar["Registrar<br/>[Registrar.java]"]
end

subgraph group_loading["Roster loading"]
  node_data_loader["File reader<br/>[DataLoader.java]"]
  node_student_loader["Student loader<br/>[StudentLoader.java]"]
  node_course_loader["Course loader<br/>[CourseLoader.java]"]
  node_request_loader["Request loader<br/>[RequestLoader.java]"]
end

subgraph group_registration["Registration domain"]
  node_student["Student model<br/>[Student.java]"]
  node_course["Course model<br/>[Course.java]"]
  node_algorithm["Registration algorithm<br/>[Algorithm.java]"]
end

node_user(("User"))

node_user -.->|"starts"| node_main
node_main -->|"creates"| node_registrar
node_registrar -->|"loads roster"| node_student_loader
node_registrar -->|"loads courses"| node_course_loader
node_registrar -->|"maps requests"| node_request_loader
node_registrar -->|"runs"| node_algorithm
node_student_loader -->|"extends"| node_data_loader
node_course_loader -->|"extends"| node_data_loader
node_request_loader -->|"extends"| node_data_loader
node_request_loader -->|"attaches requests"| node_student
node_request_loader -->|"looks up sections"| node_course
node_algorithm -->|"checks schedule"| node_student
node_algorithm -->|"checks capacity"| node_course
node_student -->|"checks conflicts"| node_course

click node_main "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Main.java"
click node_registrar "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Registrar.java"
click node_data_loader "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/DataLoader.java"
click node_student_loader "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/StudentLoader.java"
click node_course_loader "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/CourseLoader.java"
click node_request_loader "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/RequestLoader.java"
click node_student "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Student.java"
click node_course "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Course.java"
click node_algorithm "https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Algorithm.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_registrar,node_user toneBlue
class node_data_loader,node_student_loader,node_course_loader,node_request_loader toneAmber
class node_student,node_course,node_algorithm toneMint
```

## Components

### Program entry

- [Main](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Main.java): `pre registration/prereg_final_metcalf/src/Main.java`
- [Registrar](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Registrar.java): `pre registration/prereg_final_metcalf/src/Registrar.java`

### Roster loading

- [File reader](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/DataLoader.java): `pre registration/prereg_final_metcalf/src/DataLoader.java`
- [Student loader](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/StudentLoader.java): `pre registration/prereg_final_metcalf/src/StudentLoader.java`
- [Course loader](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/CourseLoader.java): `pre registration/prereg_final_metcalf/src/CourseLoader.java`
- [Request loader](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/RequestLoader.java): `pre registration/prereg_final_metcalf/src/RequestLoader.java`

### Registration domain

- [Student model](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Student.java): `pre registration/prereg_final_metcalf/src/Student.java`
- [Course model](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Course.java): `pre registration/prereg_final_metcalf/src/Course.java`
- [Registration algorithm](https://github.com/edwin-metcalf/class-registration-software/blob/main/pre%20registration/prereg_final_metcalf/src/Algorithm.java): `pre registration/prereg_final_metcalf/src/Algorithm.java`

### Other components

- **User**

## Connections

- User → Main: starts
- Main → Registrar: creates (evidence: `pre registration/prereg_final_metcalf/src/Main.java`)
- Registrar → Student loader: loads roster (evidence: `pre registration/prereg_final_metcalf/src/Registrar.java`)
- Registrar → Course loader: loads courses (evidence: `pre registration/prereg_final_metcalf/src/Registrar.java`)
- Registrar → Request loader: maps requests (evidence: `pre registration/prereg_final_metcalf/src/Registrar.java`)
- Registrar → Registration algorithm: runs (evidence: `pre registration/prereg_final_metcalf/src/Registrar.java`)
- Student loader → File reader: extends (evidence: `pre registration/prereg_final_metcalf/src/StudentLoader.java`)
- Course loader → File reader: extends (evidence: `pre registration/prereg_final_metcalf/src/CourseLoader.java`)
- Request loader → File reader: extends (evidence: `pre registration/prereg_final_metcalf/src/RequestLoader.java`)
- Request loader → Student model: attaches requests (evidence: `pre registration/prereg_final_metcalf/src/RequestLoader.java`)
- Request loader → Course model: looks up sections (evidence: `pre registration/prereg_final_metcalf/src/RequestLoader.java`)
- Registration algorithm → Student model: checks schedule (evidence: `pre registration/prereg_final_metcalf/src/Algorithm.java`)
- Registration algorithm → Course model: checks capacity (evidence: `pre registration/prereg_final_metcalf/src/Algorithm.java`)
- Student model → Course model: checks conflicts (evidence: `pre registration/prereg_final_metcalf/src/Student.java`)
