Skip to content
Snippets Groups Projects
Commit f592b34e authored by Javier Calvo's avatar Javier Calvo
Browse files

Añadir muelle y eliminarlo

parents e4ebaaaf 0606cf5b
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,36 @@
*/
package es.markse;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import es.uva.inf.poo.maps.GPSCoordinate;
/**
* Implementacion de la clase muelle donde se alojaran los Contenedores (Clase)
* @author javcalv
* @author victorm
*/
public class Muelle {
private int plazasTotalesMuelle;
private int plazasVaciasMuelle;
private int plazasSemiLlenasMuelle;
private int plazasLlenasMuelle;
private int contenedoresMax;
private int identificador;
private boolean ocupado;
GPSCoordinate cord = new GPSCoordinate(0,0);
public Muelle() {
}
public Muelle (int plazasTotalesMuelle, int contenedoresMax) {
this.plazasTotalesMuelle = plazasTotalesMuelle;
this.contenedoresMax = contenedoresMax;
}
public int getplazasTotalesMuelle() {
return this.plazasTotalesMuelle;
}
}
\ No newline at end of file
......@@ -55,7 +55,3 @@ public class Puerto {
}
return false;
}
}
/**
*
*/
package es.markse;
/**
* @author vicma
*
*/
public class UsaMuelle {
/**
* @param args
*/
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);
}
}
/**
* Copyrigth UVa 2024/2025
* Copyright UVa 2024/2025
*/
package es.markse;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment