How lunaaoaba/trabajospracticos_prog4 works
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: Ejercicio_1.java Ejercicio_1 · Persona.java Persona · compiler.yml GitHub Actions · Empleado.java Empleado
Components 11
TP1 · Console Exercise
Standalone Eclipse Java project.
- Ejercicio_1 · Creates and drives the TP1 in-memory exercise.
TP1_GRUPO_1/src/ejercicio1/Ejercicio_1.java - Persona · Base person state and behavior.
TP1_GRUPO_1/src/ejercicio1/Persona.java - Empleado · Employee specialization of Persona.
TP1_GRUPO_1/src/ejercicio1/Empleado.java - Console I/O · User interaction and output remain local to TP1.
- Eclipse project metadata · Supports importing and running TP1 in Eclipse.
TP1_GRUPO_1/.project
TP2 · Validation Exercise
Standalone Java domain code.
- Persona · Holds person data and validates DNI.
TP2_GRUPO_1/src/ejercicio1/Persona.java - ExVerificarDNI · Typed failure for invalid DNI data.
TP2_GRUPO_1/src/ejercicio1/ExVerificarDNI.java - DNI caller · External exercise code supplies or sets DNI values.
Repository Tooling
- GitHub Actions · Compilation checks for the repository.
.github/workflows/compiler.yml
Other components
- Java JVM · Execution runtime for the standalone assignments.
- TP3–TP8 placeholders · Isolated directories with dummy contents only.
TP3_GRUPO_1/dummy
Connections 11
- 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