|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.data.StockFromStockCreator
org.salespointframework.core.data.StockFromStockCreatorBT
public class StockFromStockCreatorBT
A StockFromStockCreator that performs backtracking.
Field Summary | |
---|---|
protected java.util.List<CatalogItem> |
m_lSortedCI
A sorted list of the CatalogItems in the destination Stock's Catalog. |
protected java.util.Map<java.lang.String,java.util.List<StockItem>> |
m_mplsiItemsAdded
A Map of the items that were added. |
Fields inherited from class org.salespointframework.core.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(org.salespointframework.core.data.interfaces.Stock, org.salespointframework.core.data.interfaces.Value, org.salespointframework.core.data.interfaces.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 java.util.List<CatalogItem> m_lSortedCI
protected java.util.Map<java.lang.String,java.util.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(org.salespointframework.core.data.interfaces.Stock, org.salespointframework.core.data.interfaces.Value, org.salespointframework.core.data.interfaces.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |