Examples of VehicleStateObject


Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  @SuppressWarnings("null")
  @Test(expected = IllegalArgumentException.class)
  public void validateParcelInTwoRoutes() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);
    final VehicleStateObject vs2 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList.of(
        ImmutableList.of(p1, p1), ImmutableList.of(p1, p1));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet.of(p1);
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  @SuppressWarnings("null")
  @Test(expected = IllegalArgumentException.class)
  public void validateParcelTooManyTimes1() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList
        .of(ImmutableList.of(p1, p1, p1));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet.of(p1);
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  }

  @SuppressWarnings("null")
  @Test(expected = IllegalArgumentException.class)
  public void validateParcelTooManyTimes2() {
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), ImmutableSet.of(p1), 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList
        .of(ImmutableList.of(p1, p1));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet.of();
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  }

  @Test(expected = IllegalArgumentException.class)
  public void validateParcelNotInCargo() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList
        .of(ImmutableList.of(p1));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet.of();
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  @SuppressWarnings("null")
  @Test(expected = IllegalArgumentException.class)
  public void validateUnknownParcelInRoute() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);
    final VehicleStateObject vs2 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList.of(
        ImmutableList.of(p1, p1), ImmutableList.of(p2, p3, p3, p2));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet.of(p1, p2);
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  }

  @Test(expected = IllegalArgumentException.class)
  public void validateIncompleteRoute1() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);
    final VehicleStateObject vs2 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList.of(
        ImmutableList.of(p1, p1), ImmutableList.of(p2, p2));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

    SolverValidator.validateOutputs(routes, state);
  }

  @Test(expected = IllegalArgumentException.class)
  public void validateIncompleteRouteForVehicle() {
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), ImmutableSet.of(p1), 0, null, null);

    final ImmutableList<ParcelDTO> empty = ImmutableList.of();
    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList
        .of(empty);
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  }

  @Test(expected = IllegalArgumentException.class)
  public void validateOutputDestinationNotFirstInRoute() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, p1, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList
        .of(ImmutableList.of(p2, p1, p1, p2));
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  @SuppressWarnings("null")
  @Test
  public void validateCorrectOutput() {
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);
    final VehicleStateObject vs2 = new VehicleStateObject(vdto(), new Point(0,
        0), ImmutableSet.of(p3), 0, null, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList.of(
        ImmutableList.of(p1, p1), ImmutableList.of(p2, p3, p2));
    final ImmutableSet<ParcelDTO> availableParcels = ImmutableSet.of(p1, p2);
View Full Code Here

Examples of rinde.sim.pdptw.central.GlobalStateObject.VehicleStateObject

  @Test
  public void testWrap() {
    TestUtil.testPrivateConstructor(SolverValidator.class);
    final ImmutableSet<ParcelDTO> empty = ImmutableSet.of();
    final VehicleStateObject vs1 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, null, null);
    final VehicleStateObject vs2 = new VehicleStateObject(vdto(), new Point(0,
        0), ImmutableSet.of(p3), 0, null, null);
    final VehicleStateObject vs3 = new VehicleStateObject(vdto(), new Point(0,
        0), empty, 0, p4, null);

    final ImmutableList<ImmutableList<ParcelDTO>> routes = ImmutableList.of(
        ImmutableList.of(p1, p1), ImmutableList.of(p2, p3, p2),
        ImmutableList.of(p4, p5, p5, p4));
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.