Class SimpleGenericAllocator

java.lang.Object
org.openwms.common.transport.allocation.spi.SimpleGenericAllocator
All Implemented Interfaces:
GenericAllocator

@TxService class SimpleGenericAllocator extends Object implements GenericAllocator
A SimpleGenericAllocator.
Author:
Heiko Scherrer
  • Field Details

    • ALLOCATION_LOGGER

      private static final org.slf4j.Logger ALLOCATION_LOGGER
    • transportUnitService

      private final TransportUnitService transportUnitService
    • reservationService

      private final ReservationService reservationService
  • Constructor Details

  • Method Details

    • allocate

      @Measured @NotNull public @NotNull List<TransportUnitAllocation> allocate(@NotNull @NotNull List<org.openwms.core.lang.Triple<String,Object,Class<?>>> searchAttributes, List<String> sourceLocationGroupNames)
      Search and allocate based on arbitrary search attributes.
      Specified by:
      allocate in interface GenericAllocator
      Parameters:
      searchAttributes - The attributes to search for
      sourceLocationGroupNames - A list of LocationGroup names to search the material in
      Returns:
      An array of available Allocations