Package org.wsdmdemo.service.weatherStation

Examples of org.wsdmdemo.service.weatherStation.VisibilityMetricType


    private double m_lastTemp = InteropConstants.DEFAULT_VISIBILITY;

    public ResourceProperty refreshProperty(ResourceProperty resourceProperty) throws CallbackFailedException
    {
        Calendar resetAt = Calendar.getInstance();
        VisibilityMetricType prop_visibility = (VisibilityMetricType) resourceProperty.get(0);
        prop_visibility.setResetAt(resetAt);
        prop_visibility.setDoubleValue(CallbackUtils.getNextRandomValue(m_lastTemp, InteropConstants.MAX_VISIBILITY, InteropConstants.MIN_VISIBILITY));
        return resourceProperty;
    }
View Full Code Here

TOP

Related Classes of org.wsdmdemo.service.weatherStation.VisibilityMetricType

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.