- if (measures.containsKey(StatisticalMeasure.AVERAGE())) {
- average = true;
- averagevalue = measures.get(StatisticalMeasure.AVERAGE());
- } else if(measures.containsKey(StatisticalMeasure.STANDARD_DEVIATION())) {
- sd = true;
- sdvalue = measures.get(StatisticalMeasure.STANDARD_DEVIATION());
- } else if (measures.containsKey(StatisticalMeasure.MIN())) {
- min = true;
- minvalue = measures.get(StatisticalMeasure.MIN());
- } else if (measures.containsKey(StatisticalMeasure.MAX())) {
- max = true;
- maxvalue = measures.get(StatisticalMeasure.MAX());
- } else if (measures.containsKey(StatisticalMeasure.TYPICAL_LOWER_BOUNDARY())) {
- lowerb = true;
- lowerbvalue = measures.get(StatisticalMeasure.TYPICAL_LOWER_BOUNDARY());
- } else if (measures.containsKey(StatisticalMeasure.TYPICAL_UPPER_BOUNDARY())) {
- upperb = true;
- upperbvalue = measures.get(StatisticalMeasure.TYPICAL_UPPER_BOUNDARY());
- }
-
-
+
+ Boolean max, min, upperb, lowerb, average, sd;
+
+ String averagevalue = getValue(measures,StatisticalMeasure.AVERAGE());
+ if (averagevalue!=null) average=true; else average=false;
+ String sdvalue = getValue(measures,StatisticalMeasure.STANDARD_DEVIATION());
+ if (sdvalue!=null) sd=true; else sd=false;
+ String minvalue = getValue(measures,StatisticalMeasure.MIN());
+ if (minvalue!=null) min=true; else min=false;
+ String maxvalue = getValue(measures,StatisticalMeasure.MAX());
+ if (maxvalue!=null) max=true; else max=false;
+ String lowerbvalue = getValue(measures,StatisticalMeasure.TYPICAL_LOWER_BOUNDARY());
+ if (lowerbvalue!=null) lowerb=true; else lowerb=false;
+ String upperbvalue = getValue(measures,StatisticalMeasure.TYPICAL_UPPER_BOUNDARY());
+ if (upperbvalue!=null) upperb=true; else upperb=false;
+
+