|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cocome.tradingsystem.inventory.data.store.StockItem
public class StockItem
A StockItem represents a concrete product in the store including sales price, amount, ...
Constructor Summary | |
---|---|
StockItem()
|
Method Summary | |
---|---|
long |
getAmount()
|
long |
getId()
|
long |
getIncomingAmount()
Required for UC 8 |
long |
getMaxStock()
This method will be used while computing the low stock item list |
long |
getMinStock()
|
Product |
getProduct()
|
double |
getSalesPrice()
|
Store |
getStore()
|
void |
setAmount(long amount)
|
void |
setId(long id)
|
void |
setIncomingAmount(long incomingAmount)
Set the amount of products that will be delivered in the near future. |
void |
setMaxStock(long maxStock)
This method enables the definition of the maximum capacity of a product in a store |
void |
setMinStock(long minStock)
|
void |
setProduct(Product product)
|
void |
setSalesPrice(double salesPrice)
|
void |
setStore(Store store)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StockItem()
Method Detail |
---|
public long getId()
public void setId(long id)
id
- A unique identifierpublic long getAmount()
public void setAmount(long amount)
amount
- The currently available amount of items of a productpublic long getMaxStock()
public void setMaxStock(long maxStock)
maxStock
- The maximum capacity of a product in a storepublic long getMinStock()
public void setMinStock(long minStock)
minStock
- The minimum amount of products which has to be available in a storepublic Product getProduct()
public void setProduct(Product product)
product
- The Product of a StockItempublic double getSalesPrice()
public void setSalesPrice(double salesPrice)
salesPrice
- The sales price of the StockItempublic long getIncomingAmount()
public void setIncomingAmount(long incomingAmount)
Required for UC 8
incomingAmount
- The absolute amount (no delta) of
incoming products.public Store getStore()
public void setStore(Store store)
store
- The store where the StockItem belongs to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |