# tarekhasan9828/rework-paint-shop-simulation architecture

> Architecture diagram of the GitHub repository tarekhasan9828/rework-paint-shop-simulation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tarekhasan9828/rework-paint-shop-simulation
- Repository: https://github.com/tarekhasan9828/rework-paint-shop-simulation

## Overview

This repository is a Plant Simulation study of an automotive rework paint shop. Parts flow through topcoat processing and quality inspection, then either ship or enter rework; a dispatcher routes rework and ReRun parts, while ExperimentManager runs evaluate throughput, process-time and capacity priorities. The README documents these relationships and capabilities, but no source excerpts were provided, so the graph does not infer model internals beyond those documented. Model files represent the simulation configuration; result files represent reported experiment outputs.

Main entry points: [`models/Prio3_final_configuration.spp`](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp) (ExperimentManager Runs), [`src/simtalk/QualityCheck.simtalk`](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/src/simtalk/QualityCheck.simtalk) (QualityCheck), [`src/simtalk/DispatchRework.simtalk`](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/src/simtalk/DispatchRework.simtalk) (DispatchRework), [`models/Prio1_target_throughput.spp`](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio1_target_throughput.spp) (Throughput Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_model["Paint Shop Model"]
  node_parts["Part Sources"]
  node_topcoat["Topcoat Line"]
  node_quality["Quality Station"]
  node_ok_buffer["OK Buffer"]
  node_rework_store[("Rework Store")]
  node_rework_lanes["Rework Stations"]
  node_rerun_loop["ReRun Loop"]
  node_ship["Ship Drain KPI"]
  node_shift_calendar["Shift Calendar"]
end

subgraph group_control["Routing Control"]
  node_quality_method["QualityCheck"]
  node_dispatcher["DispatchRework"]
end

subgraph group_study["Experiment Study"]
  node_parameters["Input Parameters"]
  node_prio1_model["Throughput Model"]
  node_experiments["ExperimentManager Runs"]
end

subgraph group_outputs["Study Outputs"]
  node_raw_results["Experiment Results"]
  node_report["Experiment Report"]
end

node_study_actor(("Study Analyst"))

node_parts -->|"enters"| node_topcoat
node_topcoat -->|"feeds"| node_quality
node_quality -->|"uses exit control"| node_quality_method
node_quality_method -->|"routes OK"| node_ok_buffer
node_quality_method -->|"routes non-OK"| node_rework_store
node_rework_store -->|"dispatches from"| node_dispatcher
node_dispatcher -->|"routes SR and MR"| node_rework_lanes
node_dispatcher -->|"routes ReRun"| node_rerun_loop
node_rerun_loop -->|"returns to"| node_topcoat
node_ok_buffer -->|"feeds finished parts"| node_ship
node_rework_lanes -.->|"feeds finished parts"| node_ship
node_shift_calendar -->|"sets shifts"| node_quality
node_shift_calendar -->|"sets shifts"| node_rework_lanes
node_parameters -.->|"provides inputs"| node_prio1_model
node_study_actor -->|"runs experiments"| node_experiments
node_prio1_model -.->|"evaluated by"| node_experiments
node_experiments -->|"measures throughput"| node_ship
node_experiments -->|"records runs"| node_raw_results
node_experiments -->|"produces report"| node_report
node_study_actor -.->|"reviews results"| node_report

click node_parts "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_topcoat "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_quality "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_quality_method "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/src/simtalk/QualityCheck.simtalk"
click node_ok_buffer "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_rework_store "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_dispatcher "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/src/simtalk/DispatchRework.simtalk"
click node_rework_lanes "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_rerun_loop "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_ship "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_shift_calendar "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_parameters "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/data/parameters-exam-task-G5.xlsx"
click node_prio1_model "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio1_target_throughput.spp"
click node_experiments "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp"
click node_raw_results "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/results/experiments-raw.xlsx"
click node_report "https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/results/experiment-manager-report.html"

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_parts,node_topcoat,node_quality,node_ok_buffer,node_rework_store,node_rework_lanes,node_rerun_loop,node_ship,node_shift_calendar toneBlue
class node_quality_method,node_dispatcher toneAmber
class node_parameters,node_prio1_model,node_experiments toneMint
class node_raw_results,node_report toneRose
class node_study_actor toneIndigo
```

## Components

### Paint Shop Model

- [Part Sources](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [Topcoat Line](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [Quality Station](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [OK Buffer](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [Rework Store](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [Rework Stations](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [ReRun Loop](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [Ship Drain KPI](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`
- [Shift Calendar](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`

### Routing Control

- [QualityCheck](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/src/simtalk/QualityCheck.simtalk): `src/simtalk/QualityCheck.simtalk`
- [DispatchRework](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/src/simtalk/DispatchRework.simtalk): `src/simtalk/DispatchRework.simtalk`

### Experiment Study

- [Input Parameters](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/data/parameters-exam-task-G5.xlsx): `data/parameters-exam-task-G5.xlsx`
- [Throughput Model](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio1_target_throughput.spp): `models/Prio1_target_throughput.spp`
- [ExperimentManager Runs](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/models/Prio3_final_configuration.spp): `models/Prio3_final_configuration.spp`

### Study Outputs

- [Experiment Results](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/results/experiments-raw.xlsx): `results/experiments-raw.xlsx`
- [Experiment Report](https://github.com/tarekhasan9828/rework-paint-shop-simulation/blob/main/results/experiment-manager-report.html): `results/experiment-manager-report.html`

### Other components

- **Study Analyst**

## Connections

- Part Sources → Topcoat Line: enters (evidence: `README.md`)
- Topcoat Line → Quality Station: feeds (evidence: `README.md`)
- Quality Station → QualityCheck: uses exit control (evidence: `README.md`)
- QualityCheck → OK Buffer: routes OK (evidence: `README.md`)
- QualityCheck → Rework Store: routes non-OK (evidence: `README.md`)
- Rework Store → DispatchRework: dispatches from (evidence: `README.md`)
- DispatchRework → Rework Stations: routes SR and MR (evidence: `README.md`)
- DispatchRework → ReRun Loop: routes ReRun (evidence: `README.md`)
- ReRun Loop → Topcoat Line: returns to (evidence: `README.md`)
- OK Buffer → Ship Drain KPI: feeds finished parts (evidence: `README.md`)
- Rework Stations → Ship Drain KPI: feeds finished parts
- Shift Calendar → Quality Station: sets shifts (evidence: `README.md`)
- Shift Calendar → Rework Stations: sets shifts (evidence: `README.md`)
- Input Parameters → Throughput Model: provides inputs
- Study Analyst → ExperimentManager Runs: runs experiments (evidence: `README.md`)
- Throughput Model → ExperimentManager Runs: evaluated by
- ExperimentManager Runs → Ship Drain KPI: measures throughput (evidence: `README.md`)
- ExperimentManager Runs → Experiment Results: records runs (evidence: `README.md`)
- ExperimentManager Runs → Experiment Report: produces report (evidence: `README.md`)
- Study Analyst → Experiment Report: reviews results
