# lunaaoaba/trabajospracticos_prog4 architecture

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

- Interactive diagram: https://gitdiagram.com/lunaaoaba/trabajospracticos_prog4
- Repository: https://github.com/lunaaoaba/trabajospracticos_prog4

## Overview

#### Repository Purpose
Coursework monorepo for UTN FRGP “Programación 4” practical assignments (TP1–TP8). Only TP1 and TP2 currently contain Java source; TP3–TP8 are placeholders. There is no unified application, shared build system, or deployable service.

#### Entry Points and Execution Model
TP1 is a console Java exercise, with its likely executable class at `TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java`. Eclipse project metadata (`TP1_GRUPO_1/.project`, `TP1_GRUPO_1/.classpath`) indicates it is intended to be imported and run as an Eclipse Java project.

TP2 contains domain and exception code but no visible `main` class: `TP2_GRUPO_1/src/ejercicio1/Persona.java` and `TP2_GRUPO_1/src/ejercicio1/ExVerificarDNI.java`.

#### TP1: Object-Oriented Console Domain
The TP1 exercise centers on a `Persona` model and an `Empleado` specialization:
- Base entity: `TP1_GRUPO_1/src/ejercicio1/Persona.java`
- Employee subtype/domain extension: `TP1_GRUPO_1/src/ejercicio1/Empleado.java`
- Console orchestration: `TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java`

The architectural boundary is simple: the entry class drives in-memory object creation and console interaction/output; domain classes encapsulate person/employee state and behavior. No persistence, network, or framework layer is present.

#### TP2: Validation and Exception Boundary
TP2 introduces explicit validation failure handling around a person’s DNI:
- Person/domain object: `TP2_GRUPO_1/src/ejercicio1/Persona.java`
- Domain-specific exception: `TP2_GRUPO_1/src/ejercicio1/ExVerificarDNI.java`

The key control flow is expected to be: caller supplies or sets DNI data, `Persona` validates it, and invalid input crosses a typed exception boundary via `ExVerificarDNI`. This is still standalone Java code without visible persistence wiring, despite MySQL being listed as course subject matter.

#### Assignment Isolation
Each practical assignment is intentionally isolated in its own top-level directory. TP1 and TP2 each use the `ejercicio1` package independently, so their classes are not designed to coexist on one shared classpath. Relevant boundaries:
- `TP1_GRUPO_1/src/ejercicio1`
- `TP2_GRUPO_1/src/ejercicio1`
- `TP3_GRUPO_1/dummy` through `TP8_GRUPO_1/dummy`

#### Runtime, Infrastructure, and Delivery
Material runtime is the Java JVM, with Eclipse-oriented project metadata. TP1 has compiled output under `TP1_GRUPO_1/bin/ejercicio1`, though source remains authoritative. GitHub Actions CI is configured at `.github/workflows/compiler.yml`, presumably for compilation checks. No committed database connection code, MySQL schema, JDBC integration, web container, Android project structure, or external service client is present.

Main entry points: [`TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java`](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java) (Ejercicio_1), [`TP2_GRUPO_1/src/ejercicio1/Persona.java`](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP2_GRUPO_1/src/ejercicio1/Persona.java) (Persona), [`.github/workflows/compiler.yml`](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/.github/workflows/compiler.yml) (GitHub Actions), [`TP1_GRUPO_1/src/ejercicio1/Empleado.java`](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Empleado.java) (Empleado)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tp1["TP1 · Console Exercise"]
  node_tp1_entry["Ejercicio_1<br/>console entry point<br/>[Ejercicio_1.java]"]
  node_tp1_persona["Persona<br/>domain model<br/>[Persona.java]"]
  node_tp1_empleado["Empleado<br/>domain subtype<br/>[Empleado.java]"]
  node_tp1_console["Console I/O<br/>interaction boundary"]
  node_tp1_eclipse["Eclipse project metadata<br/>project setup<br/>[.project]"]
end

subgraph group_tp2["TP2 · Validation Exercise"]
  node_tp2_persona["Persona<br/>domain model<br/>[Persona.java]"]
  node_tp2_dni_exception["ExVerificarDNI<br/>domain exception"]
  node_tp2_caller["DNI caller<br/>caller boundary"]
end

subgraph group_repo["Repository Tooling"]
  node_ci{{"GitHub Actions<br/>CI pipeline<br/>[compiler.yml]"}}
end

node_jvm{{"Java JVM<br/>runtime"}}
node_tp3_8["TP3–TP8 placeholders<br/>assignment placeholders"]

node_jvm -->|"runs"| node_tp1_entry
node_tp1_eclipse -.->|"imports / launches"| node_tp1_entry
node_tp1_entry -->|"creates / uses"| node_tp1_persona
node_tp1_entry -->|"creates / uses"| node_tp1_empleado
node_tp1_empleado -->|"specializes"| node_tp1_persona
node_tp1_entry -->|"reads / writes"| node_tp1_console
node_jvm -.->|"hosts"| node_tp2_persona
node_tp2_caller -->|"supplies DNI"| node_tp2_persona
node_tp2_persona -->|"throws on invalid DNI"| node_tp2_dni_exception
node_ci -.->|"compiles"| node_tp1_entry
node_ci -.->|"compiles"| node_tp2_persona

click node_tp1_entry "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java"
click node_tp1_persona "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Persona.java"
click node_tp1_empleado "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Empleado.java"
click node_tp1_eclipse "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/.project"
click node_tp2_persona "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP2_GRUPO_1/src/ejercicio1/Persona.java"
click node_tp2_dni_exception "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP2_GRUPO_1/src/ejercicio1/ExVerificarDNI.java"
click node_ci "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/.github/workflows/compiler.yml"
click node_tp3_8 "https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP3_GRUPO_1/dummy"

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_tp1_entry,node_tp1_persona,node_tp1_empleado,node_tp1_console,node_tp1_eclipse toneBlue
class node_tp2_persona,node_tp2_dni_exception,node_tp2_caller toneAmber
class node_ci toneMint
class node_jvm,node_tp3_8 toneNeutral
```

## Components

### TP1 · Console Exercise

Standalone Eclipse Java project.

- [Ejercicio_1](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java): console entry point · Creates and drives the TP1 in-memory exercise. · `TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java`
- [Persona](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Persona.java): domain model · Base person state and behavior. · `TP1_GRUPO_1/src/ejercicio1/Persona.java`
- [Empleado](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/src/ejercicio1/Empleado.java): domain subtype · Employee specialization of Persona. · `TP1_GRUPO_1/src/ejercicio1/Empleado.java`
- **Console I/O**: interaction boundary · User interaction and output remain local to TP1.
- [Eclipse project metadata](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP1_GRUPO_1/.project): project setup · Supports importing and running TP1 in Eclipse. · `TP1_GRUPO_1/.project`

### TP2 · Validation Exercise

Standalone Java domain code.

- [Persona](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP2_GRUPO_1/src/ejercicio1/Persona.java): domain model · Holds person data and validates DNI. · `TP2_GRUPO_1/src/ejercicio1/Persona.java`
- [ExVerificarDNI](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP2_GRUPO_1/src/ejercicio1/ExVerificarDNI.java): domain exception · Typed failure for invalid DNI data. · `TP2_GRUPO_1/src/ejercicio1/ExVerificarDNI.java`
- **DNI caller**: caller boundary · External exercise code supplies or sets DNI values.

### Repository Tooling

- [GitHub Actions](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/.github/workflows/compiler.yml): CI pipeline · Compilation checks for the repository. · `.github/workflows/compiler.yml`

### Other components

- **Java JVM**: runtime · Execution runtime for the standalone assignments.
- [TP3–TP8 placeholders](https://github.com/lunaaoaba/trabajospracticos_prog4/blob/main/TP3_GRUPO_1/dummy): assignment placeholders · Isolated directories with dummy contents only. · `TP3_GRUPO_1/dummy`

## Connections

- Java JVM → Ejercicio_1: runs
- Eclipse project metadata → Ejercicio_1: imports / launches
- Ejercicio_1 → Persona: creates / uses
- Ejercicio_1 → Empleado: creates / uses
- Empleado → Persona: specializes
- Ejercicio_1 → Console I/O: reads / writes
- Java JVM → Persona: hosts
- DNI caller → Persona: supplies DNI
- Persona → ExVerificarDNI: throws on invalid DNI
- GitHub Actions → Ejercicio_1: compiles
- GitHub Actions → Persona: compiles
