Interface BestMatchStrategy

All Known Implementing Classes:
DefaultBestMatchStrategy

public interface BestMatchStrategy
Strategy for 'calculating' the "best" product "availability" or "quantity" of a certain product .
  • Method Details

    • getBestMatchOfQuantity

      WarehouseModel getBestMatchOfQuantity(Map<WarehouseModel,Integer> map)
      Returns the warehouse which offers the "best" product "quantity".
      Parameters:
      map - the mapped quantities of a certain product
      Returns:
      WarehouseModel best match
    • getBestMatchOfAvailability

      WarehouseModel getBestMatchOfAvailability(Map<WarehouseModel,Date> map)
      Returns the warehouse which offers the "best" product "availability" .
      Parameters:
      map - the mapped available dates of a certain product
      Returns:
      WarehouseModel best match