# fgonzalezva-afk/ejerciciosrelaciones architecture

> Architecture diagram of the GitHub repository fgonzalezva-afk/ejerciciosrelaciones, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fgonzalezva-afk/ejerciciosrelaciones
- Repository: https://github.com/fgonzalezva-afk/ejerciciosrelaciones

## Overview

This is a small Java object-model example, not a larger service or application. Running Main creates people, a pet, and a welding machine, then exercises passport creation and flight eligibility, pet adoption/play, and welding. Persona owns the interactions with its passport, pet, and welding machine. The graph reflects the shown calls; there is no README or evidence of persistence or external services.

Main entry points: [`src/Main.java`](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Main.java) (Demo entry point), [`src/Persona.java`](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Persona.java) (Person), [`src/Pasaporte.java`](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Pasaporte.java) (Passport), [`src/Mascota.java`](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Mascota.java) (Pet)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_demo["Example runner"]
  node_main["Demo entry point<br/>[Main.java]"]
end

subgraph group_models["Domain objects"]
  node_persona["Person<br/>[Persona.java]"]
  node_pasaporte["Passport<br/>[Pasaporte.java]"]
  node_mascota["Pet<br/>[Mascota.java]"]
  node_maquina["Welding machine<br/>[MaquinaSoldar.java]"]
end

node_main -->|"creates and invokes"| node_persona
node_main -->|"creates and adopts"| node_mascota
node_main -->|"creates and uses"| node_maquina
node_main -->|"creates passport"| node_pasaporte
node_persona -->|"creates and checks"| node_pasaporte
node_persona -->|"adopts and reads"| node_mascota
node_persona -->|"delegates welding"| node_maquina

click node_main "https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Main.java"
click node_persona "https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Persona.java"
click node_pasaporte "https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Pasaporte.java"
click node_mascota "https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Mascota.java"
click node_maquina "https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/MaquinaSoldar.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_main toneBlue
class node_persona,node_pasaporte,node_mascota,node_maquina toneAmber
```

## Components

### Example runner

- [Demo entry point](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Main.java): `src/Main.java`

### Domain objects

- [Person](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Persona.java): `src/Persona.java`
- [Passport](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Pasaporte.java): `src/Pasaporte.java`
- [Pet](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/Mascota.java): `src/Mascota.java`
- [Welding machine](https://github.com/fgonzalezva-afk/ejerciciosrelaciones/blob/master/src/MaquinaSoldar.java): `src/MaquinaSoldar.java`

## Connections

- Demo entry point → Person: creates and invokes (evidence: `src/Main.java`)
- Demo entry point → Pet: creates and adopts (evidence: `src/Main.java`)
- Demo entry point → Welding machine: creates and uses (evidence: `src/Main.java`)
- Demo entry point → Passport: creates passport (evidence: `src/Main.java`)
- Person → Passport: creates and checks (evidence: `src/Persona.java`)
- Person → Pet: adopts and reads (evidence: `src/Persona.java`)
- Person → Welding machine: delegates welding (evidence: `src/Persona.java`)
