|
SalesPoint v3.3 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdata.StockFromStockCreator
public class StockFromStockCreator
StockFromValueCreator that tries to fill a Stock using only items from another Stock.
| Field Summary | |
|---|---|
protected CatalogItemValue |
m_civEvaluator
The CatalogItemValue used to determine the CatalogItems' values. |
protected Stock |
m_stSource
The source Stock. |
| Constructor Summary | |
|---|---|
StockFromStockCreator(Stock stSource,
CatalogItemValue civ)
Create a new StockFromStockCreator. |
|
| Method Summary | |
|---|---|
Value |
fillStock(Stock st,
Value v,
DataBasket db)
Try to fill the given Stock using only items from the source Stock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CatalogItemValue m_civEvaluator
protected Stock m_stSource
| Constructor Detail |
|---|
public StockFromStockCreator(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)
As this algorithm does not use backtracking, it may not always find a solution even if one would be possible.
Attention: The items that are added to the destination Stock will be removed from the source Stock.
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.
|
SalesPoint v3.3 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||