public final class PopulationConsume extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<EWare,Map<EPopulationClass,Double>> |
needs
Store the amounts
|
| Constructor and Description |
|---|
PopulationConsume() |
PopulationConsume(String propFileName)
Initialize the needs structure based on a property file
|
| Modifier and Type | Method and Description |
|---|---|
double |
getNeed(IWare ware,
EPopulationClass popClass,
int popSize)
Retrieve the amount needed of a ware by a population class of the size
|
private Map<EWare,Map<EPopulationClass,Double>> needs
public PopulationConsume(String propFileName)
propFileName - public PopulationConsume()
public double getNeed(IWare ware, EPopulationClass popClass, int popSize)
ware - to be requestedpopClass - population classpopSize - number of people of the classCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.