Examples of Capacity


Examples of jsprit.core.problem.Capacity

    @Test
    public void whenPDRoute_newPickupShouldNotFitInBetweenAct1AndAct2(){
        stateManager.informInsertionStarts(Arrays.asList(pickup_delivery_route), Collections.<Job>emptyList());
        Pickup s = mock(Pickup.class);
        Capacity newSize = Capacity.Builder.newInstance().addDimension(0, 6).build();
        when(s.getSize()).thenReturn(newSize);
        ServiceLoadActivityLevelConstraint loadConstraint = new ServiceLoadActivityLevelConstraint(stateManager);

        JobInsertionContext context = new JobInsertionContext(pickup_delivery_route,s,pickup_delivery_route.getVehicle(),null,0.);
        PickupService newAct = new PickupService(s);
View Full Code Here

Examples of jsprit.core.problem.Capacity

    @Test
    public void whenPDRoute_newPickupShouldNotFitInBetweenAct2AndEnd(){
        stateManager.informInsertionStarts(Arrays.asList(pickup_delivery_route), Collections.<Job>emptyList());
        Pickup s = mock(Pickup.class);
        Capacity newSize = Capacity.Builder.newInstance().addDimension(0, 11).build();
        when(s.getSize()).thenReturn(newSize);
        ServiceLoadActivityLevelConstraint loadConstraint = new ServiceLoadActivityLevelConstraint(stateManager);

        JobInsertionContext context = new JobInsertionContext(pickup_delivery_route,s,pickup_delivery_route.getVehicle(),null,0.);
        PickupService newAct = new PickupService(s);
View Full Code Here

Examples of jsprit.core.problem.Capacity

     */
    @Test
    public void whenPDRoute_newDeliveryShouldFitInBetweenStartAndAct1(){
        stateManager.informInsertionStarts(Arrays.asList(pickup_delivery_route), Collections.<Job>emptyList());
        Delivery s = mock(Delivery.class);
        Capacity newSize = Capacity.Builder.newInstance().addDimension(0, 15).build();
        when(s.getSize()).thenReturn(newSize);
        ServiceLoadActivityLevelConstraint loadConstraint = new ServiceLoadActivityLevelConstraint(stateManager);

        JobInsertionContext context = new JobInsertionContext(pickup_delivery_route,s,pickup_delivery_route.getVehicle(),null,0.);
        DeliverService newAct = new DeliverService(s);
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.common.Capacity

      lcf.buildSecurity("", "", true);

      if (myCdProps == null || myCdProps.getPoolParams() == null)
         return;
     
      Capacity capacity = null;
      if (myCdProps.getPoolParams().getCapacityIncrement() != null &&
            myCdProps.getPoolParams().getCapacityIncrement() > 0)
      {
         String inc = "org.jboss.jca.core.connectionmanager.pool.capacity.SizeIncrementer";
         Map<String, String> configProps = new HashMap<String, String>();
         configProps.put("Size", myCdProps.getPoolParams().getCapacityIncrement().toString());
         capacity = new Capacity(new Extension(inc, configProps), null);
      }
      int initialCapacity = 0;
      int maxCapacity = 0;
      if (myCdProps.getPoolParams().getInitialCapacity() != null)
         initialCapacity = myCdProps.getPoolParams().getInitialCapacity();
View Full Code Here

Examples of org.jclouds.cloudstack.domain.Capacity

   }

   @Override
   @SelectJson("capacity")
   public Set<Capacity> expected() {
      Capacity a = Capacity.builder().type(Capacity.Type.PRIMARY_STORAGE_ALLOCATED_BYTES)
         .zoneId("1").zoneName("Dev Zone 1").podId("null").podName("All")
         .capacityUsed(34057748480L).capacityTotal(1796712955904L).percentUsed(1.9).build();
      Capacity b = Capacity.builder().type(Capacity.Type.PRIMARY_STORAGE_ALLOCATED_BYTES)
         .zoneId("1").zoneName("Dev Zone 1").podId("1").podName("Dev Pod 1")
         .capacityUsed(34057748480L).capacityTotal(1796712955904L).percentUsed(1.9).build();
      return ImmutableSet.of(a, b);
   }
View Full Code Here

Examples of org.jclouds.vcloud.domain.Capacity

      } else if (qName.endsWith("Limit")) {
         limit = Integer.parseInt(currentOrNull());
      } else if (qName.endsWith("Overhead")) {
         overhead = Integer.parseInt(currentOrNull());
      } else if (qName.endsWith("StorageCapacity")) {
         storageCapacity = new Capacity(units, allocated, limit, used, overhead);
         resetCapacity();
      } else if (qName.endsWith("Cpu")) {
         cpuCapacity = new Capacity(units, allocated, limit, used, overhead);
         resetCapacity();
      } else if (qName.endsWith("Memory")) {
         memoryCapacity = new Capacity(units, allocated, limit, used, overhead);
         resetCapacity();
      } else if (qName.endsWith("DeployedVmsQuota")) {
         vmQuota = (int) limit;
         // vcloud express doesn't have the zero is unlimited rule
         if (vmQuota == -1)
View Full Code Here

Examples of org.libreplan.business.calendars.entities.Capacity

    public static BaseCalendar createBasicCalendar() {
        BaseCalendar calendar = BaseCalendar.create();

        calendar.setName("test-" + UUID.randomUUID());

        Capacity eightHours = withNormalDuration(hours(8));
        calendar.setCapacityAt(Days.MONDAY, eightHours);
        calendar.setCapacityAt(Days.TUESDAY, eightHours);
        calendar.setCapacityAt(Days.WEDNESDAY, eightHours);
        calendar.setCapacityAt(Days.THURSDAY, eightHours);
        calendar.setCapacityAt(Days.FRIDAY, eightHours);
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.