# mokeshmiri/java-oop-university architecture

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

- Interactive diagram: https://gitdiagram.com/mokeshmiri/java-oop-university
- Repository: https://github.com/mokeshmiri/java-oop-university

## Overview

This repository is a collection of university OOP projects, with Weather Report as its featured product. Its principal workflow is configuring environmental networks and sensors, importing measurements, persisting them, producing statistical reports, and alerting operators to threshold violations. The graph also preserves the README’s other named lab capabilities. Weather Report’s broad subsystem links are documented in the root README; some lab relationships are supported by the source index. Unsampled implementation details are not inferred.

Main entry points: [`T116-weather-report/src/main/java/com/weather/report/WeatherReport.java`](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/WeatherReport.java) (Weather facade), [`T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java`](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java) (CSV measurement import), [`lab2/src/hydraulic/HSystem.java`](https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/HSystem.java) (Flow simulation), [`lab3/src/diet/Food.java`](https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Food.java) (Food catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_weather["Weather Report"]
  node_facade["Weather facade<br/>[WeatherReport.java]"]
  node_configuration["Network configuration"]
  node_domain["Monitoring entities"]
  node_import["CSV measurement import"]
  node_repositories["Repositories"]
  node_persistence[("JPA persistence")]
  node_reports["Statistical reports"]
  node_alerts["Threshold alerts"]
  node_roles["Viewer / maintainer access<br/>[UserType.java]"]
end

subgraph group_hydraulic["Hydraulic Simulation"]
  node_builder["System builder<br/>[HBuilder.java]"]
  node_system["Flow simulation<br/>[HSystem.java]"]
  node_elements["Hydraulic elements<br/>[Element.java]"]
  node_observer["Simulation observer"]
end

subgraph group_diet["Diet Management"]
  node_food["Food catalog<br/>[Food.java]"]
  node_recipe["Recipes<br/>[Recipe.java]"]
  node_menu["Nutrition menus<br/>[Menu.java]"]
  node_takeaway["Takeaway orders<br/>[Takeaway.java]"]
end

subgraph group_labs["Other Labs"]
  node_university["University management<br/>[University.java]"]
  node_mountain["Mountain hut information<br/>[Region.java]"]
  node_social["Social network<br/>[Social.java]"]
  node_socialrepo[("JPA repositories")]
  node_clinic["Clinic management<br/>[Clinic.java]"]
  node_calculator["Calculator<br/>[Calculator.java]"]
end

node_user(("Project user"))

node_user -->|"uses"| node_facade
node_facade -->|"manages configuration"| node_configuration
node_facade -->|"imports measurements"| node_import
node_facade -->|"requests reports"| node_reports
node_facade -->|"enforces roles"| node_roles
node_configuration -->|"configures"| node_domain
node_import -->|"stores measurements"| node_repositories
node_repositories -->|"uses"| node_persistence
node_import -->|"notifies violations"| node_alerts
node_alerts -->|"alerts operators"| node_domain
node_builder -->|"builds"| node_system
node_system -->|"simulates"| node_elements
node_system -->|"notifies"| node_observer
node_food -->|"creates"| node_recipe
node_food -->|"creates"| node_menu
node_menu -->|"looks up ingredients"| node_food
node_takeaway -->|"uses menus"| node_menu
node_social -.->|"uses repositories"| node_socialrepo

click node_facade "https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/WeatherReport.java"
click node_configuration "https://github.com/mokeshmiri/java-oop-university/tree/main/T116-weather-report/src/main/java/com/weather/report/operations/impl"
click node_domain "https://github.com/mokeshmiri/java-oop-university/tree/main/T116-weather-report/src/main/java/com/weather/report/model/entities"
click node_import "https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java"
click node_repositories "https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/repositories/CRUDRepository.java"
click node_persistence "https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/persistence/PersistenceManager.java"
click node_reports "https://github.com/mokeshmiri/java-oop-university/tree/main/T116-weather-report/src/main/java/com/weather/report/reports/impl"
click node_alerts "https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/services/AlertingService.java"
click node_roles "https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/model/UserType.java"
click node_builder "https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/HBuilder.java"
click node_system "https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/HSystem.java"
click node_elements "https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/Element.java"
click node_observer "https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/SimulationObserver.java"
click node_food "https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Food.java"
click node_recipe "https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Recipe.java"
click node_menu "https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Menu.java"
click node_takeaway "https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Takeaway.java"
click node_university "https://github.com/mokeshmiri/java-oop-university/blob/main/lab1/src/university/University.java"
click node_mountain "https://github.com/mokeshmiri/java-oop-university/blob/main/lab4/src/mountainhuts/Region.java"
click node_social "https://github.com/mokeshmiri/java-oop-university/blob/main/lab5/src/social/Social.java"
click node_socialrepo "https://github.com/mokeshmiri/java-oop-university/blob/main/lab5/src/social/GenericRepository.java"
click node_clinic "https://github.com/mokeshmiri/java-oop-university/blob/main/lab6/src/clinic/Clinic.java"
click node_calculator "https://github.com/mokeshmiri/java-oop-university/blob/main/lab0/src/calc/Calculator.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_facade,node_configuration,node_domain,node_import,node_repositories,node_persistence,node_reports,node_alerts,node_roles,node_user toneBlue
class node_builder,node_system,node_elements,node_observer toneAmber
class node_food,node_recipe,node_menu,node_takeaway toneMint
class node_university,node_mountain,node_social,node_socialrepo,node_clinic,node_calculator toneRose
```

## Components

### Weather Report

- [Weather facade](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/WeatherReport.java): `T116-weather-report/src/main/java/com/weather/report/WeatherReport.java`
- [Network configuration](https://github.com/mokeshmiri/java-oop-university/tree/main/T116-weather-report/src/main/java/com/weather/report/operations/impl): `T116-weather-report/src/main/java/com/weather/report/operations/impl`
- [Monitoring entities](https://github.com/mokeshmiri/java-oop-university/tree/main/T116-weather-report/src/main/java/com/weather/report/model/entities): `T116-weather-report/src/main/java/com/weather/report/model/entities`
- [CSV measurement import](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java): `T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java`
- [Repositories](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/repositories/CRUDRepository.java): `T116-weather-report/src/main/java/com/weather/report/repositories/CRUDRepository.java`
- [JPA persistence](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/persistence/PersistenceManager.java): `T116-weather-report/src/main/java/com/weather/report/persistence/PersistenceManager.java`
- [Statistical reports](https://github.com/mokeshmiri/java-oop-university/tree/main/T116-weather-report/src/main/java/com/weather/report/reports/impl): `T116-weather-report/src/main/java/com/weather/report/reports/impl`
- [Threshold alerts](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/services/AlertingService.java): `T116-weather-report/src/main/java/com/weather/report/services/AlertingService.java`
- [Viewer / maintainer access](https://github.com/mokeshmiri/java-oop-university/blob/main/T116-weather-report/src/main/java/com/weather/report/model/UserType.java): `T116-weather-report/src/main/java/com/weather/report/model/UserType.java`

### Hydraulic Simulation

- [System builder](https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/HBuilder.java): `lab2/src/hydraulic/HBuilder.java`
- [Flow simulation](https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/HSystem.java): `lab2/src/hydraulic/HSystem.java`
- [Hydraulic elements](https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/Element.java): `lab2/src/hydraulic/Element.java`
- [Simulation observer](https://github.com/mokeshmiri/java-oop-university/blob/main/lab2/src/hydraulic/SimulationObserver.java): `lab2/src/hydraulic/SimulationObserver.java`

### Diet Management

- [Food catalog](https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Food.java): `lab3/src/diet/Food.java`
- [Recipes](https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Recipe.java): `lab3/src/diet/Recipe.java`
- [Nutrition menus](https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Menu.java): `lab3/src/diet/Menu.java`
- [Takeaway orders](https://github.com/mokeshmiri/java-oop-university/blob/main/lab3/src/diet/Takeaway.java): `lab3/src/diet/Takeaway.java`

### Other Labs

- [University management](https://github.com/mokeshmiri/java-oop-university/blob/main/lab1/src/university/University.java): `lab1/src/university/University.java`
- [Mountain hut information](https://github.com/mokeshmiri/java-oop-university/blob/main/lab4/src/mountainhuts/Region.java): `lab4/src/mountainhuts/Region.java`
- [Social network](https://github.com/mokeshmiri/java-oop-university/blob/main/lab5/src/social/Social.java): `lab5/src/social/Social.java`
- [JPA repositories](https://github.com/mokeshmiri/java-oop-university/blob/main/lab5/src/social/GenericRepository.java): `lab5/src/social/GenericRepository.java`
- [Clinic management](https://github.com/mokeshmiri/java-oop-university/blob/main/lab6/src/clinic/Clinic.java): `lab6/src/clinic/Clinic.java`
- [Calculator](https://github.com/mokeshmiri/java-oop-university/blob/main/lab0/src/calc/Calculator.java): `lab0/src/calc/Calculator.java`

### Other components

- **Project user**

## Connections

- Project user → Weather facade: uses (evidence: `README.md`)
- Weather facade → Network configuration: manages configuration (evidence: `README.md`)
- Weather facade → CSV measurement import: imports measurements (evidence: `README.md`)
- Weather facade → Statistical reports: requests reports (evidence: `README.md`)
- Weather facade → Viewer / maintainer access: enforces roles (evidence: `README.md`)
- Network configuration → Monitoring entities: configures (evidence: `README.md`)
- CSV measurement import → Repositories: stores measurements (evidence: `T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java`)
- Repositories → JPA persistence: uses (evidence: `T116-weather-report/src/main/java/com/weather/report/repositories/CRUDRepository.java`)
- CSV measurement import → Threshold alerts: notifies violations (evidence: `T116-weather-report/src/main/java/com/weather/report/services/DataImportingService.java`)
- Threshold alerts → Monitoring entities: alerts operators (evidence: `T116-weather-report/src/main/java/com/weather/report/services/AlertingService.java`)
- System builder → Flow simulation: builds (evidence: `lab2/src/hydraulic/HBuilder.java`)
- Flow simulation → Hydraulic elements: simulates (evidence: `lab2/src/hydraulic/HSystem.java`)
- Flow simulation → Simulation observer: notifies (evidence: `lab2/src/hydraulic/HSystem.java`)
- Food catalog → Recipes: creates (evidence: `lab3/src/diet/Food.java`)
- Food catalog → Nutrition menus: creates (evidence: `lab3/src/diet/Food.java`)
- Nutrition menus → Food catalog: looks up ingredients (evidence: `lab3/src/diet/Menu.java`)
- Takeaway orders → Nutrition menus: uses menus (evidence: `lab3/src/diet/Takeaway.java`)
- Social network → JPA repositories: uses repositories
