# alderiterodrigo19/pt-project architecture

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

- Interactive diagram: https://gitdiagram.com/alderiterodrigo19/pt-project
- Repository: https://github.com/alderiterodrigo19/pt-project

## Overview

This is a standalone desktop CPU-scheduling simulator. Users enter process arrival, burst, and priority values, choose scheduling options, and run the simulation; the app presents schedule comparisons, process metrics, execution steps, and a Gantt-style timeline. The sampled code shows workload validation and shared scheduling/metrics logic, plus a separate priority-policy adapter. The graph includes the UI theme layer; unsampled UI details and any further capabilities cannot be verified from the excerpts.

Main entry points: [`topic_1_priority_app/main.py`](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/main.py) (Scheduler application), [`topic_1_priority_app/cpu_core.py`](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py) (FCFS SJF SRTF), [`topic_1_priority_app/priority.py`](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/priority.py) (Priority policy), [`topic_1_priority_app/theme.py`](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/theme.py) (Theme and fonts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["Scheduler application<br/>[main.py]"]
end

subgraph group_scheduling["Scheduling engine"]
  node_workload["Workload validation<br/>[cpu_core.py]"]
  node_common["FCFS SJF SRTF<br/>[cpu_core.py]"]
  node_priority["Priority policy<br/>[priority.py]"]
  node_rank["Ranked scheduler<br/>[cpu_core.py]"]
  node_metrics["Schedule metrics<br/>[cpu_core.py]"]
end

subgraph group_presentation["Results and styling"]
  node_results["Result views<br/>[main.py]"]
  node_theme["Theme and fonts<br/>[theme.py]"]
end

node_user(("User"))

node_user -->|"enters workload"| node_app
node_app -->|"parses input"| node_workload
node_app -->|"requests schedules"| node_common
node_app -->|"requests priority"| node_priority
node_priority -->|"delegates ranking"| node_rank
node_common -->|"uses policy engine"| node_rank
node_common -->|"summarizes results"| node_metrics
node_priority -->|"summarizes results"| node_metrics
node_app -->|"renders results"| node_results
node_app -->|"configures appearance"| node_theme

click node_app "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/main.py"
click node_workload "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py"
click node_common "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py"
click node_priority "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/priority.py"
click node_rank "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py"
click node_metrics "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py"
click node_results "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/main.py"
click node_theme "https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/theme.py"

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_app,node_user toneBlue
class node_workload,node_common,node_priority,node_rank,node_metrics toneAmber
class node_results,node_theme toneMint
```

## Components

### Desktop interface

- [Scheduler application](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/main.py): `topic_1_priority_app/main.py`

### Scheduling engine

- [Workload validation](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py): `topic_1_priority_app/cpu_core.py`
- [FCFS SJF SRTF](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py): `topic_1_priority_app/cpu_core.py`
- [Priority policy](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/priority.py): `topic_1_priority_app/priority.py`
- [Ranked scheduler](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py): `topic_1_priority_app/cpu_core.py`
- [Schedule metrics](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/cpu_core.py): `topic_1_priority_app/cpu_core.py`

### Results and styling

- [Result views](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/main.py): `topic_1_priority_app/main.py`
- [Theme and fonts](https://github.com/alderiterodrigo19/pt-project/blob/main/topic_1_priority_app/theme.py): `topic_1_priority_app/theme.py`

### Other components

- **User**

## Connections

- User → Scheduler application: enters workload (evidence: `topic_1_priority_app/main.py`)
- Scheduler application → Workload validation: parses input (evidence: `topic_1_priority_app/main.py`)
- Scheduler application → FCFS SJF SRTF: requests schedules (evidence: `topic_1_priority_app/main.py`)
- Scheduler application → Priority policy: requests priority (evidence: `topic_1_priority_app/main.py`)
- Priority policy → Ranked scheduler: delegates ranking (evidence: `topic_1_priority_app/priority.py`)
- FCFS SJF SRTF → Ranked scheduler: uses policy engine (evidence: `topic_1_priority_app/cpu_core.py`)
- FCFS SJF SRTF → Schedule metrics: summarizes results (evidence: `topic_1_priority_app/cpu_core.py`)
- Priority policy → Schedule metrics: summarizes results (evidence: `topic_1_priority_app/priority.py`)
- Scheduler application → Result views: renders results (evidence: `topic_1_priority_app/main.py`)
- Scheduler application → Theme and fonts: configures appearance (evidence: `topic_1_priority_app/main.py`)
