private double m_lastTemp = InteropConstants.DEFAULT_TEMP;
public ResourceProperty refreshProperty(ResourceProperty resourceProperty) throws CallbackFailedException
{
Calendar resetAt = Calendar.getInstance();
TemperatureMetricType prop_temperature = (TemperatureMetricType) resourceProperty.get(0);
prop_temperature.setDoubleValue(CallbackUtils.getNextRandomValue(m_lastTemp, InteropConstants.MAX_TEMP, InteropConstants.MIN_TEMP));
prop_temperature.setResetAt(resetAt);
return resourceProperty;
}