# fabiogenito/progetto architecture

> Architecture diagram of the GitHub repository fabiogenito/progetto, 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/fabiogenito/progetto
- Repository: https://github.com/fabiogenito/progetto

## Overview

This is a JavaFX contact-book application. A user launches the app, works with contacts through the controller, and can validate, search, add, or remove entries; the controller maintains the in-memory address book and displays its contacts. CSV import/export provides file-based exchange. The source excerpts show these model and validation relationships, but not the FXML view or all controller handlers, so UI wiring is omitted where it cannot be verified.

Main entry points: [`ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java) (Address-book controller), [`ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java`](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java) (CSV import and export), [`ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Rubrica.java`](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Rubrica.java) (In-memory address book), [`ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Verifica.java`](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Verifica.java) (Contact validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Application UI"]
  node_app["JavaFX launcher<br/>[App.java]"]
  node_controller["Address-book controller"]
end

subgraph group_domain["Contact domain"]
  node_book["In-memory address book<br/>[Rubrica.java]"]
  node_contact["Contact record<br/>[Contatto.java]"]
  node_validation["Contact validation<br/>[Verifica.java]"]
  node_validation_result["Validation result"]
end

subgraph group_exchange["File exchange"]
  node_file_ops["CSV import and export<br/>[GestioneFile.java]"]
  node_csv_file["CSV file"]
end

node_user(("User"))

node_user -->|"launches"| node_app
node_app -.->|"loads view"| node_controller
node_user -.->|"uses UI"| node_controller
node_controller -->|"manages contacts"| node_book
node_controller -->|"creates records"| node_contact
node_controller -->|"validates entries"| node_validation
node_controller -->|"checks outcome"| node_validation_result
node_controller -->|"requests exchange"| node_file_ops
node_book -->|"stores records"| node_contact
node_validation -->|"returns result"| node_validation_result
node_file_ops -->|"checks imported rows"| node_validation
node_file_ops -->|"creates imported records"| node_contact
node_file_ops -->|"reads contacts"| node_book
node_file_ops -->|"reads and writes"| node_csv_file

click node_app "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/App.java"
click node_controller "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java"
click node_book "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Rubrica.java"
click node_contact "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Contatto.java"
click node_validation "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Verifica.java"
click node_validation_result "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/RisultatiVerifica.java"
click node_file_ops "https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.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_app,node_controller,node_user toneBlue
class node_book,node_contact,node_validation,node_validation_result toneAmber
class node_file_ops,node_csv_file toneMint
```

## Components

### Application UI

- [JavaFX launcher](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/App.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/App.java`
- [Address-book controller](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`

### Contact domain

- [In-memory address book](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Rubrica.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Rubrica.java`
- [Contact record](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Contatto.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Contatto.java`
- [Contact validation](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Verifica.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Verifica.java`
- [Validation result](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/RisultatiVerifica.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/RisultatiVerifica.java`

### File exchange

- [CSV import and export](https://github.com/fabiogenito/progetto/blob/master/ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java): `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java`
- **CSV file**

### Other components

- **User**

## Connections

- User → JavaFX launcher: launches (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/App.java`)
- JavaFX launcher → Address-book controller: loads view
- User → Address-book controller: uses UI
- Address-book controller → In-memory address book: manages contacts (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`)
- Address-book controller → Contact record: creates records (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`)
- Address-book controller → Contact validation: validates entries (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`)
- Address-book controller → Validation result: checks outcome (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`)
- Address-book controller → CSV import and export: requests exchange (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/controller/RubricaController.java`)
- In-memory address book → Contact record: stores records (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Rubrica.java`)
- Contact validation → Validation result: returns result (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/Verifica.java`)
- CSV import and export → Contact validation: checks imported rows (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java`)
- CSV import and export → Contact record: creates imported records (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java`)
- CSV import and export → In-memory address book: reads contacts (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java`)
- CSV import and export → CSV file: reads and writes (evidence: `ProgettoIngSoftware/src/main/java/com/mycompany/testfunzionante/model/GestioneFile.java`)
