for (Measure measure: getMeasures()) {
if (measure.getUri().startsWith("machine:")) {
Measurement measurement = new Measurement();
measurement.setMeasureId(measure.getUri());
FreeStringValue v =(FreeStringValue) measure.getScale().createValue();
if (measure.getUri().equals(Machine.MACHINE_NAME)) {
v.setValue(m.getId());
} else if (measure.getUri().equals(Machine.MACHINE_OS)) {
v.setValue(m.getOperatingSystem());
} else if (measure.getUri().equals(Machine.MACHINE_CPUS)) {
v.setValue(m.getCpus());
} else if (measure.getUri().equals(Machine.MACHINE_CPUCLOCK)) {
v.setValue(m.getCpuClock());
} else if (measure.getUri().equals(Machine.MACHINE_CPUTYPE)) {
v.setValue(m.getCpuType());
} else if (measure.getUri().equals(Machine.MACHINE_MEMORY)) {
v.setValue(m.getMemory());
}
measurement.setValue(v);
result.getMeasurements().put(measure.getUri(), measurement);
}
}