Skip to content
Snippets Groups Projects
Commit b8c039ca authored by Agustin Emanuel De Leon Perdomo's avatar Agustin Emanuel De Leon Perdomo
Browse files

Merge branch 'main' of https://gitlab.fing.edu.uy/santiago.vaiga/TProg.git into main

parents fcd3ffad 5a0ff319
No related branches found
No related tags found
No related merge requests found
No preview for this file type
File deleted
No preview for this file type
No preview for this file type
......@@ -2,20 +2,22 @@ package Manejadores;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import logica.Actividad;
import logica.DataActividad;
public class ManejadorActividad {
// Atributos
private static ManejadorActividad instancia = null;
private HashMap<String,Actividad> colAct;
private Map<String,Actividad> colAct;
// Constructor
private ManejadorActividad() {
colAct = new HashMap<String,Actividad>();
}
public static ManejadorActividad getInstance() {
......@@ -36,4 +38,8 @@ public class ManejadorActividad {
}
return resultado;
}
public Actividad getActividad(String nom) {
return colAct.get(nom);
}
}
\ No newline at end of file
......@@ -19,7 +19,7 @@ public class Actividad {
public String getNombre() {
return this.nombre;
}
}
public String getDescripcion() {
return this.descripcion;
......
......@@ -4,7 +4,7 @@ import java.util.Date;
public class DataActividad {
public DataActividad() {
}
public DataActividad(String n, String d, Date f, String c, int cos, int dur) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment