Skip to content
Snippets Groups Projects
Commit 6494e269 authored by Javier Calvo's avatar Javier Calvo
Browse files
parents 6efc57aa 381f2e07
No related branches found
No related tags found
No related merge requests found
...@@ -27,12 +27,45 @@ public class Muelle { ...@@ -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.plazasTotalesMuelle = plazasTotalesMuelle;
this.contenedoresMax = contenedoresMax; this.contenedoresMax = contenedoresMax;
} }
public int getplazasTotalesMuelle() { public int getplazasTotalesMuelle() {
return this.plazasTotalesMuelle; 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 { ...@@ -15,11 +15,6 @@ public class UsaMuelle {
public static void main(String[] args) { public static void main(String[] args) {
// TODO Auto-generated method stub // 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