Skip to content
Snippets Groups Projects
Commit 381f2e07 authored by victorm's avatar victorm
Browse files

Muelle

parent f592b34e
Branches
Tags
No related merge requests found
......@@ -27,12 +27,45 @@ public class Muelle {
}
public Muelle (int plazasTotalesMuelle, int contenedoresMax) {
public Muelle (int identificador,GPSCoordinate cord,boolean ocupado, int plazasTotalesMuelle, int contenedoresMax) {
this.identificador = identificador;
this.cord=cord;
this.ocupado=ocupado;
this.plazasTotalesMuelle = plazasTotalesMuelle;
this.contenedoresMax = contenedoresMax;
}
public int getplazasTotalesMuelle() {
return this.plazasTotalesMuelle;
}
public int getplazasVacias() {
return this.plazasVaciasMuelle;
}
public int getPlazasSemiLlenasMuelle() {
return this.plazasSemiLlenasMuelle;
}
public int getPlazasLlenasMuelle() {
return this.plazasLlenasMuelle;
}
public int plazaActual(int codigoContenedor) {
return 0;
}
public int nivelEnPlaza(int codigoContenedor) {
return 0;
}
}
\ No newline at end of file
......@@ -15,11 +15,6 @@ public class UsaMuelle {
public static void main(String[] args) {
// TODO Auto-generated method stub
Muelle m = new Muelle(339987, 555555);
int x = m.getplazasTotalesMuelle();
System.out.println(x);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment