Examples of Functions


Examples of org.opengis.filter.capability.Functions

    public void testParse() throws Exception {
        Element element = FilterMockData.element(document, document,
                new QName(OGC.NAMESPACE, "Functions"));
        FilterMockData.functionNames(document, element);

        Functions functions = (Functions) parse(OGC.FunctionsType);
        assertEquals(2, functions.getFunctionNames().size());
    }
View Full Code Here

Examples of org.opengis.filter.capability.Functions

        Functions functions = (Functions) parse(OGC.FunctionsType);
        assertEquals(2, functions.getFunctionNames().size());
    }

    public void testEncode() throws Exception {
        Functions functions = FilterMockData.functions();
        Document dom = encode(functions, new QName(OGC.NAMESPACE, "Functions"), OGC.FunctionsType);

        assertEquals(1, dom.getElementsByTagNameNS(OGC.NAMESPACE, "Function_Names").getLength());
        assertEquals(2, dom.getElementsByTagNameNS(OGC.NAMESPACE, "Function_Name").getLength());
    }
View Full Code Here

Examples of org.opengis.filter.capability.Functions

        if( scalar == null ) return false;       
       
        ArithmeticOperators operators = scalar.getArithmeticOperators();
        if( operators == null ) return false;
       
        Functions functions = operators.getFunctions();
        if( functions == null ) return false;
       
        // Note that only function name is checked here
        FunctionName found = functions.getFunctionName( function.getName() );
        // And that's enough to assess if the function is supported
        return found != null;
    }
View Full Code Here

Examples of org.opengis.filter.capability.Functions

        if( scalar == null ) return false;       
       
        ArithmeticOperators operators = scalar.getArithmeticOperators();
        if( operators == null ) return false;
       
        Functions functions = operators.getFunctions();
        if( functions == null ) return false;
       
        // Note that only function name is checked here
        FunctionName found = functions.getFunctionName( function.getName() );
        // And that's enough to assess if the function is supported
        return found != null;
    }
View Full Code Here

Examples of org.openhab.binding.heatmiser.internal.thermostat.HeatmiserThermostat.Functions

      return;
    }
    logger.debug("Heatmiser command provider is: {}", providerCmd);
   
    int address = providerCmd.getAddress(itemName);
    Functions function = providerCmd.getFunction(itemName);
   
    for (HeatmiserThermostat thermostat: thermostatTable) {
      if(thermostat.getAddress() == address) {
        logger.debug("Heatmiser command found thermostat: {}", thermostat);
        // Found the thermostat
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.