|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object data.StockFromStockCreator data.StockFromStockCreatorBT
public class StockFromStockCreatorBT
A StockFromStockCreator that performs backtracking.
Field Summary | |
---|---|
protected List<CatalogItem> |
m_lSortedCI
A sorted list of the CatalogItems in the destination Stock's Catalog. |
protected Map<String,List<StockItem>> |
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<CatalogItem> m_lSortedCI
protected Map<String,List<StockItem>> 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
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.protected Value doFill(int nIdx, Value v, Stock st, DataBasket db)
protected void undoFill(int nIdx, Value v, Stock st, DataBasket db)
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |