Skip to content
Snippets Groups Projects
Commit 866981b4 authored by Tobias Iroa Otero's avatar Tobias Iroa Otero
Browse files

base de actividad

parent 028da6d4
No related branches found
No related tags found
No related merge requests found
package Manejadores;
import java.util.Date;
import java.util.HashMap;
import java.util.Set;
......@@ -7,10 +8,12 @@ import logica.Actividad;
import logica.DataActividad;
public class ManejadorActividad {
// Atributos
private static ManejadorActividad instancia = null;
private HashMap<String,Actividad> colAct;
private HashMap<String,Actividad> colAct;
// Constructor
private ManejadorActividad() {
}
......@@ -21,9 +24,11 @@ public class ManejadorActividad {
return instancia;
}
//Operaciones
public Set<DataActividad> getDAct() {
Set<DataActividad> resultado;
return resultado;
}
}
\ No newline at end of file
package logica;
public class Actividad {
import java.util.Date;
public class Actividad {
private String nombre;
private String descripcion;
private Date fechaAlta;
private String ciudad;
private int costo;
private int duracion;
//Getters y Setters
public String getNombre() {
return this.nombre;
}
public String getDescripcion() {
return this.descripcion;
}
public Date getFechaAlta() {
return this.fechaAlta;
}
public String getCiudad() {
return this.ciudad;
}
public int getCosto() {
return this.costo;
}
public int getDuracion() {
return this.duracion;
}
}
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