}
return null;
} else if (MeasureConstants.ELAPSED_TIME_PER_MB.equals(measureUri)) {
Value extracted = extractMeasuredValue(alternative, sample, MeasureConstants.ELAPSED_TIME_PER_OBJECT);
if (extracted instanceof PositiveFloatValue) {
PositiveFloatValue value = new PositiveFloatValue();
double floatVal = ((PositiveFloatValue) extracted).getValue();
if (Double.compare(floatVal, 0.0) != 0) {
// calculate msec/MB
floatVal = floatVal / sampleSize;
value.setValue(floatVal);
}
value.setComment("extracted from experiment details");
return value;
}
} else if (MeasureConstants.AVERAGE_MEMORY_USED_PER_MB.equals(measureUri)) {
Value extracted = extractMeasuredValue(alternative, sample, MigrationResult.MIGRES_MEMORY_GROSS);
if (extracted instanceof PositiveFloatValue) {
PositiveFloatValue value = new PositiveFloatValue();
double floatVal = ((PositiveFloatValue) extracted).getValue();
value.setValue(floatVal / sampleSize);
value.setComment("extracted from experiment details");
return value;
}
}
Value extracted = extractMeasuredValue(alternative, sample, measureUri);
if (extracted != null) {