public class ProductionStorage
extends java.lang.Object
| Constructor | Description |
|---|---|
ProductionStorage() |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getAvgPrice(IWare ware) |
Retrieve the average price of the stored amount.
|
double |
getStored(IWare ware) |
Retrieve the amount that is stored of a specific ware.
|
double |
transfer(IWare ware,
double amount,
double avgPrice) |
Transfer wares to/from the storage.
|
public double getStored(IWare ware)
ware - for whicht to retrieve the stored amountwarepublic double getAvgPrice(IWare ware)
ware - for which the price is to be looked uppublic double transfer(IWare ware, double amount, double avgPrice)
amount
values mean withdrawing from the storage.ware - that is to be transferedamount - to be movedavgPrice - of the wareCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.