|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object data.StockFromStockCreator data.StockFromStockCreatorBT
A StockFromStockCreator that performs backtracking.
Field Summary | |
protected List |
m_lSortedCI
A sorted list of the CatalogItems in the destination Stock's Catalog. |
protected Map |
m_mplsiItemsAdded
A Map of the items that were added. |
Fields inherited from class data.StockFromStockCreator |
m_civEvaluator, m_stSource |
Constructor Summary | |
StockFromStockCreatorBT(Stock stSource,
CatalogItemValue civ)
Create a new StockFromStockCreatorBT. |
Method Summary | |
protected Value |
doFill(int nIdx,
Value v,
Stock st,
DataBasket db)
Backtracking step method. |
Value |
fillStock(Stock st,
Value v,
DataBasket db)
Fill the destination Stock using the same algorithm as in StockFromStockCreator.fillStock(data.Stock, data.Value, data.DataBasket) , but
with backtracking. |
protected void |
undoFill(int nIdx,
Value v,
Stock st,
DataBasket db)
Backtracking back-step method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List m_lSortedCI
protected Map m_mplsiItemsAdded
Constructor Detail |
public StockFromStockCreatorBT(Stock stSource, CatalogItemValue civ)
stSource
- the source Stock.civ
- the CatalogItemValue used to determine the CatalogItems' values.Method Detail |
public Value fillStock(Stock st, Value v, DataBasket db)
StockFromStockCreator.fillStock(data.Stock, data.Value, data.DataBasket)
, but
with backtracking.
fillStock
in interface StockFromValueCreator
fillStock
in class StockFromStockCreator
protected Value doFill(int nIdx, Value v, Stock st, DataBasket db)
protected void undoFill(int nIdx, Value v, Stock st, DataBasket db)
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |