# leondominguez/software-fj-unadfase4- architecture

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

- Interactive diagram: https://gitdiagram.com/leondominguez/software-fj-unadfase4-
- Repository: https://github.com/leondominguez/software-fj-unadfase4-

## Overview

Software FJ is a small Python application for room bookings, equipment rentals, and specialized consultations. Its intended workflow is to register clients and services, create and manage reservations, and simulate operations. The current entry point only configures logging; the manager and repository methods are still placeholders, so the planned end-to-end workflow is not yet wired. The graph distinguishes implemented domain behavior from those planned layers. Relationships are based on the excerpts and README; no unsampled implementation is assumed.

Main entry points: [`repositorios.py`](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/repositorios.py) (In-memory repositories), [`reserva.py`](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/reserva.py) (Reservation), [`servicios.py`](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/servicios.py) (Service types), [`entidades.py`](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/entidades.py) (Client entity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["Domain model"]
  node_client["Client entity<br/>[entidades.py]"]
  node_service["Service types<br/>[servicios.py]"]
  node_reservation["Reservation<br/>[reserva.py]"]
  node_errors["Domain errors<br/>[excepciones.py]"]
end

subgraph group_application["Application logic"]
  node_repositories["In-memory repositories<br/>[repositorios.py]"]
  node_client_manager["Client manager<br/>[gestores.py]"]
  node_service_manager["Service manager<br/>[gestores.py]"]
  node_reservation_manager["Reservation manager<br/>[gestores.py]"]
end

subgraph group_runtime["Runtime"]
  node_main["Simulation entry<br/>[main.py]"]
  node_logger["Logger setup<br/>[logger_config.py]"]
  node_logfile[("Log file")]
end

node_user(("Operator"))

node_user -->|"starts simulation"| node_main
node_main -->|"configures"| node_logger
node_logger -->|"writes logs"| node_logfile
node_service -->|"inherits entity base"| node_client
node_client -->|"raises validation errors"| node_errors
node_service -->|"raises service errors"| node_errors
node_reservation -->|"references client"| node_client
node_reservation -->|"calculates service cost"| node_service
node_reservation -->|"raises reservation errors"| node_errors
node_repositories -->|"stores client type"| node_client
node_repositories -->|"stores service type"| node_service
node_repositories -->|"stores reservation type"| node_reservation
node_client_manager -->|"accepts repository"| node_repositories
node_service_manager -->|"accepts repository"| node_repositories
node_reservation_manager -->|"accepts repositories"| node_repositories

click node_main "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/main.py"
click node_logger "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/logger_config.py"
click node_logfile "https://github.com/leondominguez/software-fj-unadfase4-/tree/main/logs"
click node_client "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/entidades.py"
click node_service "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/servicios.py"
click node_reservation "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/reserva.py"
click node_errors "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/excepciones.py"
click node_repositories "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/repositorios.py"
click node_client_manager "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/gestores.py"
click node_service_manager "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/gestores.py"
click node_reservation_manager "https://github.com/leondominguez/software-fj-unadfase4-/blob/main/gestores.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_client,node_service,node_reservation,node_errors toneBlue
class node_repositories,node_client_manager,node_service_manager,node_reservation_manager toneAmber
class node_main,node_logger,node_logfile toneMint
class node_user toneIndigo
```

## Components

### Domain model

- [Client entity](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/entidades.py): `entidades.py`
- [Service types](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/servicios.py): `servicios.py`
- [Reservation](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/reserva.py): `reserva.py`
- [Domain errors](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/excepciones.py): `excepciones.py`

### Application logic

- [In-memory repositories](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/repositorios.py): `repositorios.py`
- [Client manager](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/gestores.py): `gestores.py`
- [Service manager](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/gestores.py): `gestores.py`
- [Reservation manager](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/gestores.py): `gestores.py`

### Runtime

- [Simulation entry](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/main.py): `main.py`
- [Logger setup](https://github.com/leondominguez/software-fj-unadfase4-/blob/main/logger_config.py): `logger_config.py`
- [Log file](https://github.com/leondominguez/software-fj-unadfase4-/tree/main/logs): `logs`

### Other components

- **Operator**

## Connections

- Operator → Simulation entry: starts simulation (evidence: `main.py`)
- Simulation entry → Logger setup: configures (evidence: `main.py`)
- Logger setup → Log file: writes logs (evidence: `logger_config.py`)
- Service types → Client entity: inherits entity base (evidence: `servicios.py`)
- Client entity → Domain errors: raises validation errors (evidence: `entidades.py`)
- Service types → Domain errors: raises service errors (evidence: `servicios.py`)
- Reservation → Client entity: references client (evidence: `reserva.py`)
- Reservation → Service types: calculates service cost (evidence: `reserva.py`)
- Reservation → Domain errors: raises reservation errors (evidence: `reserva.py`)
- In-memory repositories → Client entity: stores client type (evidence: `repositorios.py`)
- In-memory repositories → Service types: stores service type (evidence: `repositorios.py`)
- In-memory repositories → Reservation: stores reservation type (evidence: `repositorios.py`)
- Client manager → In-memory repositories: accepts repository (evidence: `gestores.py`)
- Service manager → In-memory repositories: accepts repository (evidence: `gestores.py`)
- Reservation manager → In-memory repositories: accepts repositories (evidence: `gestores.py`)
