Examples of FunctionFactory


Examples of org.encog.ml.prg.extension.FunctionFactory

   *
   * @param format
   *            The format.
   */
  public EncogProgramContext(final CSVFormat format) {
    this(format, new FunctionFactory());
  }
View Full Code Here

Examples of org.geotools.filter.FunctionFactory

           
            public <T> Iterator<T> iterator(Class<T> category) {
               
                if (FunctionFactory.class == category) {
                     List<FunctionFactory> l = new ArrayList<FunctionFactory>();
                     l.add(new FunctionFactory( ) {
                       
                        @SuppressWarnings("unchecked")
                        public List<FunctionName> getFunctionNames() {
                            return (List) Arrays.asList(new FunctionNameImpl("foo",
                                new String[]{"bar", "baz"}));
View Full Code Here

Examples of org.geotools.filter.FunctionFactory

    }
   
    @Test
    public void testLookup() {
        Set<FunctionFactory> factories = CommonFactoryFinder.getFunctionFactories(null);
        FunctionFactory factory = null;
       
        for (FunctionFactory ff : factories) {
            for (FunctionName fn : ff.getFunctionNames()) {
                if ("foo".equals(fn.getName())) {
                    factory = ff;
                    break;
                }
            }
        }
       
        assertNotNull(factory);
        Function f = factory.function("foo", null, null);
        assertNotNull(f);
    }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.FunctionFactory

        // get the function type, making sure that it's really a correct
        // Target function
        String funcName = root.getAttributes().
            getNamedItem("MatchId").getNodeValue();
        FunctionFactory factory = FunctionFactory.getTargetInstance();
        try {
            URI funcId = new URI(funcName);
            function = factory.createFunction(funcId);
        } catch (URISyntaxException use) {
            throw new ParsingException("Error parsing TargetMatch", use);
        } catch (UnknownIdentifierException uie) {
            throw new ParsingException("Unknown MatchId", uie);
        } catch (FunctionTypeException fte) {
            // try to create an abstract function
            try {
                URI funcId = new URI(funcName);
                function = factory.createAbstractFunction(funcId, root);
            } catch (Exception e) {
                // any exception here is an error
                throw new ParsingException("invalid abstract function", e);
            }
        }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.FunctionFactory

     */
    private FunctionFactoryProxy parseFunctionFactory(Node root)
        throws ParsingException
    {
        FunctionFactoryProxy proxy = null;
        FunctionFactory generalFactory = null;
        FunctionFactory conditionFactory = null;
        FunctionFactory targetFactory = null;

        // check if we're starting with the standard factory setup, and
        // make sure that the proxy is pre-configured
        if (useStandard(root, "useStandardFunctions")) {
            logger.config("Starting with standard Functions");
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.FunctionFactory

        // get the function type, making sure that it's really a correct
        // Target function
        String funcName = root.getAttributes().
            getNamedItem("MatchId").getNodeValue();
        FunctionFactory factory = FunctionFactory.getTargetInstance();
        try {
            URI funcId = new URI(funcName);
            function = factory.createFunction(funcId);
        } catch (URISyntaxException use) {
            throw new ParsingException("Error parsing TargetMatch", use);
        } catch (UnknownIdentifierException uie) {
            throw new ParsingException("Unknown MatchId", uie);
        } catch (FunctionTypeException fte) {
            // try to create an abstract function
            try {
                URI funcId = new URI(funcName);
                function = factory.createAbstractFunction(funcId, root);
            } catch (Exception e) {
                // any exception here is an error
                throw new ParsingException("invalid abstract function", e);
            }
        }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.FunctionFactory

     */
    private FunctionFactoryProxy parseFunctionFactory(Node root)
        throws ParsingException
    {
        FunctionFactoryProxy proxy = null;
        FunctionFactory generalFactory = null;
        FunctionFactory conditionFactory = null;
        FunctionFactory targetFactory = null;

        // check if we're starting with the standard factory setup, and
        // make sure that the proxy is pre-configured
        if (useStandard(root, "useStandardFunctions")) {
            logger.config("Starting with standard Functions");
View Full Code Here

Examples of org.openntf.formula.FunctionFactory

      //reader.setDebug(new PrintWriter(new FileWriter("writer.debug", true)));

      List<Completor> completors = new LinkedList<Completor>();

      // This code is responsible for autocompletion
      FunctionFactory funcFact = Formulas.getFunctionFactory();
      Collection<Function> funcs = funcFact.getFunctions().values();
      String[] autoComplete = new String[funcs.size() + 3];
      int i = 0;
      for (Function func : funcs) {

        autoComplete[i++] = func.getImage() + "(";
View Full Code Here

Examples of org.openntf.formula.FunctionFactory

      //reader.setDebug(new PrintWriter(new FileWriter("writer.debug", true)));

      List<Completor> completors = new LinkedList<Completor>();

      // This code is responsible for autocompletion
      FunctionFactory funcFact = Formulas.getFunctionFactory();
      Collection<Function> funcs = funcFact.getFunctions().values();
      String[] autoComplete = new String[funcs.size() + 3];
      int i = 0;
      for (Function func : funcs) {
        autoComplete[i++] = func.getImage() + "(";
      }
View Full Code Here

Examples of org.openntf.formula.FunctionFactory

      //reader.setDebug(new PrintWriter(new FileWriter("writer.debug", true)));

      List<Completor> completors = new LinkedList<Completor>();

      // This code is responsible for autocompletion
      FunctionFactory funcFact = Formulas.getFunctionFactory();
      Collection<Function> funcs = funcFact.getFunctions().values();
      String[] autoComplete = new String[funcs.size() + 3];
      int i = 0;
      for (Function func : funcs) {
        autoComplete[i++] = func.getImage() + "(";
      }
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.