calculators.put("avg", new AvgCalculator(leafElementsGoalLayer,
getCacheManager()));
if (!getCacheManager().getSelectedGoals().isEmpty()) {
calculators.put("weighted max", new WeightedMaxCalculator(
leafElementsGoalLayer, getCacheManager()));
calculators.put("weighted min", new WeightedMinCalculator(
leafElementsGoalLayer, getCacheManager()));
calculators.put("weighted avg", new WeightedAvgCalculator(
leafElementsGoalLayer, getCacheManager()));
}
if (element instanceof SolutionInstrument) {
calculators.put("max", new MaxCalculator(
leafElementsPrincipleLayer, getCacheManager()));
calculators.put("min", new MinCalculator(
leafElementsPrincipleLayer, getCacheManager()));
calculators.put("avg", new AvgCalculator(
leafElementsPrincipleLayer, getCacheManager()));
if (!getCacheManager().getSelectedPrinciples().isEmpty()) {
calculators.put("weighted max", new WeightedMaxCalculator(
leafElementsPrincipleLayer, getCacheManager()));
calculators.put("weighted min", new WeightedMinCalculator(
leafElementsPrincipleLayer, getCacheManager()));
calculators.put("weighted avg", new WeightedAvgCalculator(
leafElementsPrincipleLayer, getCacheManager()));
}
}