*
* jdobies, Jun 25, 2007
*/
MeasurementFactory measurementFactory = scenarioManager.getMeasurementFactory(resourceTypeName);
CalltimeFactory calltimeFactory = scenarioManager.getCalltimeFactory(resourceTypeName);
TraitFactory traitFactory = scenarioManager.getTraitFactory(resourceTypeName);
for (MeasurementScheduleRequest metric : metrics) {
switch (metric.getDataType()) {
case CALLTIME:
CallTimeData callTimeData = calltimeFactory.nextValue(metric);
if (callTimeData!=null) {
report.addData(callTimeData);
}
break;
case MEASUREMENT:
MeasurementDataNumeric measurementData = (MeasurementDataNumeric) measurementFactory.nextValue(metric);
if (measurementData != null) {
report.addData(measurementData);
}
break;
case TRAIT:
MeasurementDataTrait measurementDataTrait = traitFactory.nextValue(metric);
if (measurementDataTrait != null) {
report.addData(measurementDataTrait);
}
break;