Interface BestMatchStrategy
-
- All Known Implementing Classes:
DefaultBestMatchStrategy
public interface BestMatchStrategyStrategy for 'calculating' the "best" product "availability" or "quantity" of a certain product .
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WarehouseModelgetBestMatchOfAvailability(java.util.Map<WarehouseModel,java.util.Date> map)Returns the warehouse which offers the "best" product "availability" .WarehouseModelgetBestMatchOfQuantity(java.util.Map<WarehouseModel,java.lang.Integer> map)Returns the warehouse which offers the "best" product "quantity".
-
-
-
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
-
-