How ousamaka/tallermecanico works
Project type and purpose
• This is a Java console application (Gradle‑based) that manages a mechanical workshop (“Taller Mecánico”) using a layered MVC architecture.
• It allows CRUD of clients, vehicles and two kinds of jobs (Revisiones and Trabajos Mecánicos) with calculations of fixed and specific prices.
File structure
• src/main/java/org/iesalandalus/programacion/tallermecanico packages into controlador, modelo, modelo/negocio, modelo/dominio, vista.
• modelo/negocio has subpackages memoria (in‑memory DAO impl.) and (future) ficheros (file‑based DAO).
• Resources: UML files under src/main/resources/uml.
• Tests exercise dominio, negocio (ficheros), modelo, etc.
README for additional insights
• The application must refactor into MVC using:
• Observer (view ↔ controller event subscription)
• Factory Method (create Views and Models)
• Abstract Factory (create Data Sources)
• Template Method (calculate job prices)
• Existing patterns: static factory methods in domain (“get” methods), DTOs, DAOs in business layer.