Examples of copyAndGetActivities()


Examples of jsprit.core.problem.VehicleRoutingProblem.copyAndGetActivities()

    when(iData.getPickupInsertionIndex()).thenReturn(2);
    when(iData.getDeliveryInsertionIndex()).thenReturn(2);
    when(iData.getSelectedVehicle()).thenReturn(newVehicle);

        VehicleRoutingProblem vehicleRoutingProblem = mock(VehicleRoutingProblem.class);
        when(vehicleRoutingProblem.copyAndGetActivities(shipmentToInsert)).thenReturn(getTourActivities(shipmentToInsert));
    Inserter inserter = new Inserter(mock(InsertionListeners.class), vehicleRoutingProblem);
    inserter.insertJob(shipmentToInsert, iData, route);
   
    assertEquals(route.getEnd().getLocationId(),newVehicle.getEndLocationId());
  }
View Full Code Here

Examples of jsprit.core.problem.VehicleRoutingProblem.copyAndGetActivities()

    when(iData.getPickupInsertionIndex()).thenReturn(2);
    when(iData.getDeliveryInsertionIndex()).thenReturn(2);
    when(iData.getSelectedVehicle()).thenReturn(newVehicle);

        VehicleRoutingProblem vehicleRoutingProblem = mock(VehicleRoutingProblem.class);
        when(vehicleRoutingProblem.copyAndGetActivities(shipmentToInsert)).thenReturn(getTourActivities(shipmentToInsert));
    Inserter inserter = new Inserter(mock(InsertionListeners.class),vehicleRoutingProblem );
    inserter.insertJob(shipmentToInsert, iData, route);
   
    assertEquals("delLoc",route.getEnd().getLocationId());
  }
View Full Code Here

Examples of jsprit.core.problem.VehicleRoutingProblem.copyAndGetActivities()

    when(iData.getPickupInsertionIndex()).thenReturn(0);
    when(iData.getDeliveryInsertionIndex()).thenReturn(0);
    when(iData.getSelectedVehicle()).thenReturn(newVehicle);

        VehicleRoutingProblem vehicleRoutingProblem = mock(VehicleRoutingProblem.class);
        when(vehicleRoutingProblem.copyAndGetActivities(shipmentToInsert)).thenReturn(getTourActivities(shipmentToInsert));
    Inserter inserter = new Inserter(mock(InsertionListeners.class),vehicleRoutingProblem );
    inserter.insertJob(shipmentToInsert, iData, route);
   
    UpdateEndLocationIfRouteIsOpen updateEnd = new UpdateEndLocationIfRouteIsOpen();
    updateEnd.visit(route);
View Full Code Here

Examples of jsprit.core.problem.VehicleRoutingProblem.copyAndGetActivities()

        final VehicleRoutingProblem vrp = vrpBuilder.addJob(s1).addJob(s2).addJob(s3).build();

        route = VehicleRoute.Builder.newInstance(vehicle).setJobActivityFactory(new JobActivityFactory() {
            @Override
            public List<AbstractActivity> createActivities(Job job) {
                return vrp.copyAndGetActivities(job);
            }

        }).addService(s1).addService(s2).addService(s3).build();

        stateManager = new StateManager(vrp);
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.