Examples of PaqueteEntrega


Examples of modelo.utilidades.PaqueteEntrega

            localidadInicio = this.mapaDatos.getLocalidades().get(lugarEntrega.getId() - 1);
            int cantidadPaquetes = this.modeloTablaPaquetesPorEntregar.getPaquetes().size();
            int contadorEntregas = 0;

            while (contadorEntregas < cantidadPaquetes) {
                PaqueteEntrega paqueteEntrega = this.modeloTablaPaquetesPorEntregar.getPaquetes().get(0);
                localidadDestino = this.mapaDatos.getLocalidades().get(paqueteEntrega.getPunto() - 1);
                System.out.println("Localidad Inicial: " + localidadInicio);
                System.out.println("Localidad Destino: " + localidadDestino);
                this.busqueda = new BusquedaAestrella(mapaDatos, textoRecorrido);
                ArrayList<Integer> rutaOptima = this.busqueda.buscarRutaOptima(localidadInicio, localidadDestino);
                this.pizarraAnimacion.setRutaOptima(rutaOptima);
                this.pizarraAnimacion.setEstadoRutaOptima(true);
                this.pizarraAnimacion.repaint();

                this.modeloTablaPaquetesEntregados.addPaquetes(paqueteEntrega);
                this.modeloTablaPaquetesPorEntregar.eliminarPaquete(0);
                LugarEntrega lugarEntregaPasado = new LugarEntrega(paqueteEntrega.getPunto(), paqueteEntrega.getNombreBarrio());
                this.modeloCombo2.addElement(lugarEntregaPasado);
                contadorEntregas++;
                try {
                    sleep(tiempoPausa * 1000);
                } catch (InterruptedException ex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.