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

getters y setters salida y 1 en act

parent 40b9cad4
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,10 @@ public class Actividad {
return colSal;
}
public void addSalida(Salida s) {
this.colSal.put(s.getNombre(), s);
}
//Operaciones
public DataActividad getDataAT() {
......
......@@ -12,12 +12,12 @@ public class Salida {
public Salida(String n,String l,Date h,Date f,Date fa,int c)
{
nombre = n;
lugar = l;
hora = h;
fecha = f;
fechaAlta = fa;
cant = c;
setNombre(n);
setLugar(l);
setHora(h);
setFecha(f);
setFechaAlta(fa);
setCant(c);
};
public boolean estaVigente()
......@@ -29,5 +29,53 @@ public class Salida {
{
return null;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getLugar() {
return lugar;
}
public void setLugar(String lugar) {
this.lugar = lugar;
}
public Date getHora() {
return hora;
}
public void setHora(Date hora) {
this.hora = hora;
}
public Date getFecha() {
return fecha;
}
public void setFecha(Date fecha) {
this.fecha = fecha;
}
public Date getFechaAlta() {
return fechaAlta;
}
public void setFechaAlta(Date fechaAlta) {
this.fechaAlta = fechaAlta;
}
public int getCant() {
return cant;
}
public void setCant(int cant) {
this.cant = cant;
}
}
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