|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StockFromValueCreator
Strategy that increases a Stock's
total value by adding StockItems
that sum
up to a given amount.
Stock.fillStockWithValue(data.DataBasket, data.Value, data.StockFromValueCreator)
Method Summary | |
---|---|
Value |
fillStock(Stock st,
Value v,
DataBasket db)
The actual algorithm. |
Method Detail |
---|
Value fillStock(Stock st, Value v, DataBasket db)
The method should add StockItems to st
so that the total value of all these items becomes
the biggest value that is smaller or equal v
. The difference between v
and the
actual total value of the added StockItems is to be returned.
To avoid dead-locks, this method must not trigger any threads!
st
- the Stock to which to add the StockItems.v
- the value to be added to the Stock.db
- the DataBasket relative to which to perform the operation.
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |