public class DemandDependentGenericPriceUpdate<G extends GenericDefinition<T>,T extends Good> extends Object implements GenericPriceUpdater<G,T>
| Constructor and Description |
|---|
DemandDependentGenericPriceUpdate() |
| Modifier and Type | Method and Description |
|---|---|
Map<G,BigDecimal> |
getLastPrices() |
void |
setConstant(BigDecimal priceUpdate) |
Map<G,BigDecimal> |
updatePrices(Map<G,BigDecimal> oldPrices,
Map<G,Integer> demand) |
public Map<G,BigDecimal> updatePrices(Map<G,BigDecimal> oldPrices, Map<G,Integer> demand)
updatePrices in interface GenericPriceUpdater<G extends GenericDefinition<T>,T extends Good>public Map<G,BigDecimal> getLastPrices()
getLastPrices in interface GenericPriceUpdater<G extends GenericDefinition<T>,T extends Good>public void setConstant(BigDecimal priceUpdate)
Copyright © 2018. All rights reserved.