How fersar25/gestordeprestamos works
Main Components
• User Interface (GUI): Located in the src/gui directory, files like Main.java and Interfaz.java form the presentation layer.
• Controller (Controlador): Found in src/control/Controlador.java, this acts as the intermediary between the user interface and the system’s business logic.
• Business Logic (Model): Found in src/logic (e.g., Almacén.java, Alquiler.java, Estudiante.java, Persona.java, Responsable.java, Traje.java). This layer implements the core functionalities and models the data for the rental system.
• Persistence (Data Access): Found in src/persistence/ArchivoAlquiler.java and supported by the alquileres.csv file. This layer handles data storage and retrieval.
Relationships and Interactions
• The GUI layer (presentation) initiates user actions.
• These actions are passed to the Controller, which routes requests to the appropriate business logic components.
• The business logic layer processes data and, when necessary, interacts with the Persistence layer to read or write data.
• Data from persistence (the CSV file) is fed back through the business logic and then back to the interface for display.
Architectural Patterns and Design Principles
• Separation of Concerns: Dividing the system into discrete layers (GUI, Control, Logic, Persistence) minimizes coupling.
• MVC Pattern: Although simple, the design closely matches MVC, with the GUI as the View, Controller as the intermediary handler, and the business logic encapsulating the Model.
• Layered Architecture: Each component focuses on its responsibility, making it easier to maintain and extend.
Relevant Technologies and Libraries
• Java forms the basis of the project.
• Standard libraries for file I/O are used in the persistence layer.
• There may be built-in or custom utilities in the logic layer for handling business-related operations (not explicitly shown, but implied).