# gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos architecture

> Architecture diagram of the GitHub repository gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos
- Repository: https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos

## Overview

This is a small command-line student-record storage simulator. A user chooses record count, block size, and fixed or variable-length storage; the program generates student data, serializes each record, packs records into blocks, writes alunos.dat, and prints a block-occupancy report. The source excerpt shows these runtime calls directly; the README is empty, so no additional capabilities are documented.

Main entry points: [`trabalhoAEDS.py`](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py) (CLI workflow), [`alunos.dat`](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/alunos.dat) (Binary output)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_workflow["CLI workflow<br/>[trabalhoAEDS.py]"]
node_generation["Student generation<br/>[trabalhoAEDS.py]"]
node_fixed["Fixed serializer<br/>[trabalhoAEDS.py]"]
node_variable["Variable serializer<br/>[trabalhoAEDS.py]"]
node_blocks["Block manager<br/>[trabalhoAEDS.py]"]
node_binary["Binary output<br/>[alunos.dat]"]
node_report["Block report<br/>[trabalhoAEDS.py]"]

node_user -->|"provides options"| node_workflow
node_workflow -->|"generates records"| node_generation
node_workflow -->|"serializes fixed"| node_fixed
node_workflow -->|"serializes variable"| node_variable
node_workflow -->|"adds records"| node_blocks
node_blocks -->|"writes blocks"| node_binary
node_workflow -->|"displays report"| node_report
node_report -->|"prints summary"| node_user

click node_workflow "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py"
click node_generation "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py"
click node_fixed "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py"
click node_variable "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py"
click node_blocks "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py"
click node_binary "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/alunos.dat"
click node_report "https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.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_user toneBlue
class node_workflow,node_generation,node_fixed,node_variable,node_blocks,node_binary,node_report toneTeal
```

## Components

### Other components

- **User**
- [CLI workflow](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py): `trabalhoAEDS.py`
- [Student generation](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py): `trabalhoAEDS.py`
- [Fixed serializer](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py): `trabalhoAEDS.py`
- [Variable serializer](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py): `trabalhoAEDS.py`
- [Block manager](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py): `trabalhoAEDS.py`
- [Binary output](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/alunos.dat): `alunos.dat`
- [Block report](https://github.com/gersonpardim/simulacao-de-persistencia-em-disco-e-organizacao-de-registos-em-blocos/blob/main/trabalhoAEDS.py): `trabalhoAEDS.py`

## Connections

- User → CLI workflow: provides options (evidence: `trabalhoAEDS.py`)
- CLI workflow → Student generation: generates records (evidence: `trabalhoAEDS.py`)
- CLI workflow → Fixed serializer: serializes fixed (evidence: `trabalhoAEDS.py`)
- CLI workflow → Variable serializer: serializes variable (evidence: `trabalhoAEDS.py`)
- CLI workflow → Block manager: adds records (evidence: `trabalhoAEDS.py`)
- Block manager → Binary output: writes blocks (evidence: `trabalhoAEDS.py`)
- CLI workflow → Block report: displays report (evidence: `trabalhoAEDS.py`)
- Block report → User: prints summary (evidence: `trabalhoAEDS.py`)
