# ahnaftahmidrafid32/forest-navigation-rescue-management-system architecture

> Architecture diagram of the GitHub repository ahnaftahmidrafid32/forest-navigation-rescue-management-system, 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/ahnaftahmidrafid32/forest-navigation-rescue-management-system
- Repository: https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system

## Overview

The application loads or seeds a forest map and operational records, then presents them in a Swing interface for navigation and rescue-management work. Its main domain stages are map/weather navigation, survivor and team coordination, and hazard/alert management, backed by file-based persistence. Main.java visibly initializes storage and the two systems before launching the UI. The README documents additional capabilities, but several implementation paths were not sampled, so those links are shown only where documented or left unverified.

Main entry points: [`rescue/system/FileStorage.java`](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/FileStorage.java) (File Storage), [`rescue/ui/Main.java`](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/ui/Main.java) (Application Startup), [`rescue/ui/RescueManagementSystemUI.java`](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/ui/RescueManagementSystemUI.java) (Swing Interface), [`rescue/model/ForestMap1.java`](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/ForestMap1.java) (Forest Map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["Application Startup<br/>[Main.java]"]
  node_ui["Swing Interface"]
end

subgraph group_navigation["Map Navigation"]
  node_map["Forest Map<br/>[ForestMap1.java]"]
  node_pathfinder["Pathfinding<br/>[Navigator.java]"]
  node_weather["Weather Conditions"]
  node_node["Map Nodes And Edges<br/>[Node.java]"]
end

subgraph group_operations["Rescue Operations"]
  node_rescue["Rescue Coordination<br/>[RescueSystem.java]"]
  node_management["Hazard Management"]
  node_report["Rescue Reports<br/>[Report.java]"]
end

subgraph group_data["Domain And Storage"]
  node_survivor["Survivor Records<br/>[Survivor.java]"]
  node_team["Rescue Teams<br/>[RescueTeam.java]"]
  node_hazard["Hazard Records<br/>[Hazard.java]"]
  node_alert["Alerts<br/>[Alert.java]"]
  node_storage["File Storage<br/>[FileStorage.java]"]
end

node_user(("Operator"))
node_files[("Data Files")]

node_user -->|"operates"| node_ui
node_entry -->|"loads and saves"| node_storage
node_entry -->|"loads or builds"| node_map
node_entry -->|"initializes"| node_rescue
node_entry -->|"initializes"| node_management
node_entry -->|"launches"| node_ui
node_ui -->|"uses"| node_rescue
node_ui -->|"uses"| node_management
node_ui -.->|"requests routes"| node_pathfinder
node_pathfinder -.->|"routes across"| node_map
node_pathfinder -.->|"considers"| node_weather
node_map -->|"contains"| node_node
node_map -->|"holds"| node_weather
node_rescue -.->|"coordinates"| node_survivor
node_rescue -.->|"coordinates"| node_team
node_management -.->|"manages"| node_hazard
node_management -.->|"manages"| node_alert
node_storage -->|"reads and writes"| node_files
node_storage -->|"loads and saves"| node_map
node_storage -->|"loads and saves"| node_weather
node_storage -->|"loads and saves"| node_survivor
node_storage -->|"loads and saves"| node_team
node_storage -->|"loads and saves"| node_hazard
node_storage -->|"loads and saves"| node_alert

click node_entry "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/ui/Main.java"
click node_ui "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/ui/RescueManagementSystemUI.java"
click node_map "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/ForestMap1.java"
click node_pathfinder "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/Navigator.java"
click node_weather "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/WeatherCondition.java"
click node_rescue "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/RescueSystem.java"
click node_management "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/ManagementSystem.java"
click node_survivor "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Survivor.java"
click node_team "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/RescueTeam.java"
click node_hazard "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Hazard.java"
click node_alert "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Alert.java"
click node_storage "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/FileStorage.java"
click node_node "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Node.java"
click node_report "https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Report.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_entry,node_ui toneBlue
class node_map,node_pathfinder,node_weather,node_node,node_files toneAmber
class node_rescue,node_management,node_report toneMint
class node_survivor,node_team,node_hazard,node_alert,node_storage toneRose
class node_user toneIndigo
```

## Components

### Application

- [Application Startup](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/ui/Main.java): `rescue/ui/Main.java`
- [Swing Interface](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/ui/RescueManagementSystemUI.java): `rescue/ui/RescueManagementSystemUI.java`

### Map Navigation

- [Forest Map](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/ForestMap1.java): `rescue/model/ForestMap1.java`
- [Pathfinding](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/Navigator.java): `rescue/system/Navigator.java`
- [Weather Conditions](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/WeatherCondition.java): `rescue/model/WeatherCondition.java`
- [Map Nodes And Edges](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Node.java): `rescue/model/Node.java`

### Rescue Operations

- [Rescue Coordination](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/RescueSystem.java): `rescue/system/RescueSystem.java`
- [Hazard Management](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/ManagementSystem.java): `rescue/system/ManagementSystem.java`
- [Rescue Reports](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Report.java): `rescue/model/Report.java`

### Domain And Storage

- [Survivor Records](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Survivor.java): `rescue/model/Survivor.java`
- [Rescue Teams](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/RescueTeam.java): `rescue/model/RescueTeam.java`
- [Hazard Records](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Hazard.java): `rescue/model/Hazard.java`
- [Alerts](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/model/Alert.java): `rescue/model/Alert.java`
- [File Storage](https://github.com/ahnaftahmidrafid32/forest-navigation-rescue-management-system/blob/main/rescue/system/FileStorage.java): `rescue/system/FileStorage.java`

### Other components

- **Operator**
- **Data Files**

## Connections

- Operator → Swing Interface: operates
- Application Startup → File Storage: loads and saves (evidence: `rescue/ui/Main.java`)
- Application Startup → Forest Map: loads or builds (evidence: `rescue/ui/Main.java`)
- Application Startup → Rescue Coordination: initializes (evidence: `rescue/ui/Main.java`)
- Application Startup → Hazard Management: initializes (evidence: `rescue/ui/Main.java`)
- Application Startup → Swing Interface: launches (evidence: `rescue/ui/Main.java`)
- Swing Interface → Rescue Coordination: uses (evidence: `rescue/ui/RescueManagementSystemUI.java`)
- Swing Interface → Hazard Management: uses (evidence: `rescue/ui/RescueManagementSystemUI.java`)
- Swing Interface → Pathfinding: requests routes
- Pathfinding → Forest Map: routes across
- Pathfinding → Weather Conditions: considers
- Forest Map → Map Nodes And Edges: contains (evidence: `rescue/model/ForestMap1.java`)
- Forest Map → Weather Conditions: holds (evidence: `rescue/model/ForestMap1.java`)
- Rescue Coordination → Survivor Records: coordinates
- Rescue Coordination → Rescue Teams: coordinates
- Hazard Management → Hazard Records: manages
- Hazard Management → Alerts: manages
- File Storage → Data Files: reads and writes (evidence: `rescue/system/FileStorage.java`)
- File Storage → Forest Map: loads and saves (evidence: `rescue/system/FileStorage.java`)
- File Storage → Weather Conditions: loads and saves (evidence: `rescue/system/FileStorage.java`)
- File Storage → Survivor Records: loads and saves (evidence: `rescue/system/FileStorage.java`)
- File Storage → Rescue Teams: loads and saves (evidence: `rescue/system/FileStorage.java`)
- File Storage → Hazard Records: loads and saves (evidence: `rescue/system/FileStorage.java`)
- File Storage → Alerts: loads and saves (evidence: `rescue/system/FileStorage.java`)
