Interface BestMatchStrategy

  • All Known Implementing Classes:
    DefaultBestMatchStrategy

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

      • getBestMatchOfQuantity

        WarehouseModel getBestMatchOfQuantity​(java.util.Map<WarehouseModel,​java.lang.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​(java.util.Map<WarehouseModel,​java.util.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