# facuu-wav/tp-final-programacion-ii---alquiler-autos architecture

> Architecture diagram of the GitHub repository facuu-wav/tp-final-programacion-ii---alquiler-autos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/facuu-wav/tp-final-programacion-ii---alquiler-autos
- Repository: https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos

## Overview

This is a Java console application for managing car rentals. A user enters through the console menu in Main; Sistema coordinates the rental domain and database-backed operations, producing persisted customers, vehicles, reservations, rentals, and employee accounts. The graph groups the domain models and statuses, staff roles, and SQLite persistence. The README is empty; relationships involving Sistema and unsampled DAOs rely on the SOURCE INDEX, so internal calls not evidenced there are omitted.

Main entry points: [`src/clases/Sistema.java`](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/clases/Sistema.java) (Rental system coordinator), [`src/clases`](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/clases) (Rental domain models), [`src/Main.java`](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/Main.java) (Menu and entry point), [`src/sql`](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/sql) (Database access operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Console application"]
  node_main["Menu and entry point<br/>[Main.java]"]
  node_system["Rental system coordinator<br/>[Sistema.java]"]
  node_exceptions["Domain exceptions"]
end

subgraph group_domain["Rental domain"]
  node_rental_models["Rental domain models"]
  node_rental_states["Rental status types"]
end

subgraph group_staff["Staff and access"]
  node_employee_roles["Employee and user roles"]
end

subgraph group_persistence["SQLite persistence"]
  node_data_access["Database access operations"]
  node_connection["SQLite connection handler<br/>[DBHandler.java]"]
  node_database[("Rental database<br/>[alquiler_autos.db]")]
end

node_user(("Console user"))

node_user -->|"uses menu"| node_main
node_main -->|"delegates operations"| node_system
node_system -->|"uses persistence operations"| node_data_access
node_system -->|"uses domain objects"| node_rental_models
node_system -->|"uses account roles"| node_employee_roles
node_data_access -->|"opens connections"| node_connection
node_connection -->|"connects to"| node_database
node_rental_models -->|"uses statuses"| node_rental_states
node_rental_models -->|"references users"| node_employee_roles
node_rental_models --> node_exceptions

click node_main "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/Main.java"
click node_system "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/clases/Sistema.java"
click node_rental_models "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/clases"
click node_rental_states "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/enums"
click node_employee_roles "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/clases/empleados"
click node_exceptions "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/excepciones"
click node_data_access "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/sql"
click node_connection "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/sql/DBHandler.java"
click node_database "https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/alquiler_autos.db"

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_main,node_system,node_exceptions,node_user toneBlue
class node_rental_models,node_rental_states toneAmber
class node_employee_roles toneMint
class node_data_access,node_connection,node_database toneRose
```

## Components

### Console application

- [Menu and entry point](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/Main.java): `src/Main.java`
- [Rental system coordinator](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/clases/Sistema.java): `src/clases/Sistema.java`
- [Domain exceptions](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/excepciones): `src/excepciones`

### Rental domain

- [Rental domain models](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/clases): `src/clases`
- [Rental status types](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/enums): `src/enums`

### Staff and access

- [Employee and user roles](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/clases/empleados): `src/clases/empleados`

### SQLite persistence

- [Database access operations](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/tree/master/src/sql): `src/sql`
- [SQLite connection handler](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/src/sql/DBHandler.java): `src/sql/DBHandler.java`
- [Rental database](https://github.com/facuu-wav/tp-final-programacion-ii---alquiler-autos/blob/master/alquiler_autos.db): `alquiler_autos.db`

### Other components

- **Console user**

## Connections

- Console user → Menu and entry point: uses menu (evidence: `src/Main.java`)
- Menu and entry point → Rental system coordinator: delegates operations (evidence: `src/Main.java`)
- Rental system coordinator → Database access operations: uses persistence operations (evidence: `src/clases/Sistema.java`)
- Rental system coordinator → Rental domain models: uses domain objects (evidence: `src/clases/Sistema.java`)
- Rental system coordinator → Employee and user roles: uses account roles (evidence: `src/clases/Sistema.java`)
- Database access operations → SQLite connection handler: opens connections (evidence: `src/sql/ClienteDAO.java`)
- SQLite connection handler → Rental database: connects to (evidence: `src/sql/DBHandler.java`)
- Rental domain models → Rental status types: uses statuses (evidence: `src/clases/Vehiculo.java`)
- Rental domain models → Employee and user roles: references users (evidence: `src/clases/Reserva.java`)
- Rental domain models → Domain exceptions (evidence: `src/clases/Sistema.java`)
