Package org.wsdmdemo.service.weatherStation

Examples of org.wsdmdemo.service.weatherStation.TemperatureMetricType$Factory


    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;
    }
View Full Code Here

TOP

Related Classes of org.wsdmdemo.service.weatherStation.TemperatureMetricType$Factory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.