@Service @Lazy @DependentInitialisation(StartNewGameBean.class) public class ProductionChain extends java.lang.Object
| Constructor | Description |
|---|---|
ProductionChain() |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getProduction(IWare ware) |
|
double |
getRequiredAmount(IWare wareToBeProduced,
IWare requiredWare) |
Get the required amount of
requiredWare to produce wareToBeProduced within a week. |
java.util.List<IWare> |
getRequiredWares(IWare wareToBeProduced) |
|
java.util.List<IWare> |
getWaresWithProductionChain() |
Retrieve all wares that require other wares to be produced.
|
public double getProduction(IWare ware)
public double getRequiredAmount(IWare wareToBeProduced, IWare requiredWare)
requiredWare to produce wareToBeProduced within a week.wareToBeProduced - ware that should be producedrequiredWare - ware that is requiredrequiredWare to produce wareToBeProduced within a week.public java.util.List<IWare> getWaresWithProductionChain()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.