public class ProductionStorage extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<IWare,AmountablePriceDouble> |
storage |
| Constructor and Description |
|---|
ProductionStorage() |
| Modifier and Type | Method and 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.
|
private Map<IWare,AmountablePriceDouble> storage
public double getStored(IWare ware)
ware - public 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.