Interface BestMatchStrategy
- All Known Implementing Classes:
DefaultBestMatchStrategy
public interface BestMatchStrategy
Strategy for 'calculating' the "best" product "availability" or "quantity" of a certain product .
-
Method Summary
Modifier and TypeMethodDescriptionReturns the warehouse which offers the "best" product "availability" .Returns the warehouse which offers the "best" product "quantity".
-
Method Details
-
getBestMatchOfQuantity
Returns the warehouse which offers the "best" product "quantity".- Parameters:
map- the mapped quantities of a certain product- Returns:
- WarehouseModel best match
-
getBestMatchOfAvailability
Returns the warehouse which offers the "best" product "availability" .- Parameters:
map- the mapped available dates of a certain product- Returns:
- WarehouseModel best match
-