|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.DefaultCountingStockFromValueCreator
A StockFromValueCreator for CountingStocks.
This StockFromValueCreator assumes a potentially infinite source of available items and adds exactly as many items of each type (i.e. corresponding CatalogItem) as needed to fulfil the requirement.
| Field Summary | |
protected CatalogItemValue |
m_civEvaluator
The CatalogItemValue used to determine the CatalogItems' values. |
| Constructor Summary | |
DefaultCountingStockFromValueCreator(CatalogItemValue civ)
Create a new DefaultCountingStockFromValueCreator. |
|
| Method Summary | |
Value |
fillStock(Stock st,
Value v,
DataBasket db)
This StockFromValueCreator assumes a potentially infinite source of available items and adds exactly as many items of each type (i.e. |
static Comparator |
invertedCIValueOrder(CatalogItemValue civ)
Helper method that creates a Comparator that orders CatalogItems, highest value first. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CatalogItemValue m_civEvaluator
| Constructor Detail |
public DefaultCountingStockFromValueCreator(CatalogItemValue civ)
civ - the CatalogItemValue used to determine the CatalogItems' values.| Method Detail |
public Value fillStock(Stock st,
Value v,
DataBasket db)
fillStock in interface StockFromValueCreatorst - 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.public static final Comparator invertedCIValueOrder(CatalogItemValue civ)
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||