Examples of Tree


Examples of com.sun.webui.jsf.component.Tree

  // Create a Tree dataSource...
  TreeDataSource dataSource = new CallFlowStackTreeDS(content);

  // Fill the Tree
  Tree tree = dataSource.createJSFTree(parent);

  // Set the output
  handlerCtx.setOutputValue("tree", tree);
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.process.graph.util.Tree

        this.sideEffectKey = null == sideEffectKey ? this.getLabel() : sideEffectKey;
        this.functionRing = new FunctionRing(branchFunctions);
        TraversalHelper.verifySideEffectKeyIsNotAStepLabel(this.sideEffectKey, this.traversal);
        this.traversal.sideEffects().registerSupplierIfAbsent(this.sideEffectKey, Tree::new);
        this.setConsumer(traverser -> {
            Tree depth = this.getTraversal().sideEffects().get(this.sideEffectKey);
            final Path path = traverser.path();
            for (int i = 0; i < path.size(); i++) {
                final Object object = functionRing.next().apply(path.get(i));
                if (!depth.containsKey(object))
                    depth.put(object, new Tree<>());
                depth = (Tree) depth.get(object);
            }
            this.functionRing.reset();
        });
    }
View Full Code Here

Examples of com.tinkerpop.pipes.util.structures.Tree

                object = this.branchFunctions.get(this.currentFunction).compute(object);
                this.currentFunction = (this.currentFunction + 1) % this.branchFunctions.size();
            }

            if (!depth.containsKey(object))
                depth.put(object, new Tree());

            depth = depth.get(object);
        }
        return s;
    }
View Full Code Here

Examples of com.vaadin.ui.Tree

    private NavigationPanelListener listener;

    private final Tree tree;

    public NavigationPanelView() {
        tree = new Tree();
    }
View Full Code Here

Examples of de.fhg.igd.mongomvcc.impl.internal.Tree

  private void connectInternal(String name, Mongo mongo) {
    _buildInfo = initBuildInfo(mongo);
   
    _db = mongo.getDB(name);
    _counter = new MongoDBVCounter(_db);
    _tree = new Tree(_db);
   
    //create root commit and master branch if needed
    if (_tree.isEmpty()) {
      Commit root = new Commit(_counter.getNextId(), 0, 0,
          Collections.<String, IdMap>emptyMap());
View Full Code Here

Examples of de.odysseus.el.tree.Tree

   * @param type the expected type (may be <code>null</code>)
   */
  public TreeValueExpression(TreeStore store, FunctionMapper functions, VariableMapper variables, String expr, Class<?> type) {
    super();

    Tree tree = store.get(expr);

    this.builder = store.getBuilder();
    this.bindings = tree.bind(functions, variables);
    this.expr = expr;
    this.type = type;
    this.node = tree.getRoot();
    this.deferred = tree.isDeferred();
   
    if (type == null) {
      throw new NullPointerException(LocalMessages.get("error.value.notype"));
    }
  }
View Full Code Here

Examples of easyJ.system.service.Tree

           
            DataContextFilter filter= DataContextFilter.getInstance();
            filter.setContext(userCache.getContext());
            list=filter.filter(list);
           
            Tree tree = ts.getTree(className, list);
            StringBuffer buffer = new StringBuffer();
            if (!GenericValidator.isBlankOrNull(selectMode))
                selectModeInt = Integer.parseInt(selectMode);
            if (rootId == null)
                ts.generateWholeTree(tree, buffer, selectModeInt, functionUrl);
            else {
                Object root = BeanUtil.getEmptyObject(className);
                Class clazz = BeanUtil.getClass(className);
                String primaryKeyName = BeanUtil.getPrimaryKeyName(clazz);
                BeanUtil.setFieldValue(root, primaryKeyName, new Long(rootId));
                Object emptyNode = BeanUtil.getEmptyObject(root.getClass());
                BeanUtil.setFieldValue(emptyNode, tree.getDisplayProperty(),
                        "空");
                if (selectModeInt == Const.TREE_SELECT_LEAF_RETURN
                        || selectModeInt == Const.TREE_SELECT_NODE_RETURN) {
                    ts.generateSingleNode(emptyNode, tree, 2, 1, buffer,
                            selectModeInt, functionUrl);
View Full Code Here

Examples of edu.stanford.nlp.trees.Tree

    }

    public ParsedData parse(ArrayList<Word> sentenceWords, ParsingOptions opts) {
        ParsedData outData = new ParsedData();
        myParser.reset();
        Tree parsedTree = (Tree) myParser.apply(sentenceWords);
        if (opts.isPosTag()) {
            posTagWords(parsedTree, outData, opts);
        }

        if (opts.isParseRelations()) {
View Full Code Here

Examples of edu.uci.jforestsx.learning.trees.Tree

      Sample subLearnerOutOfTrainSet = trainSet.getOutOfSample(subLearnerTrainSet);
      Sample subLearnerValidSet = (validSet == null || validSet.isEmpty() ? subLearnerOutOfTrainSet : validSet);
      Ensemble subEnsemble = subLearner.learn(subLearnerTrainSet, subLearnerValidSet);

      for (int t = 0; t < subEnsemble.getNumTrees(); t++) {
        Tree tree = subEnsemble.getTreeAt(t);
        double curTreeWeight = subEnsemble.getWeightAt(t);
        if (backfit) {
          tree.backfit(subLearnerOutOfTrainSet);
        }
        ensemble.addTree(tree, curTreeWeight);
        System.out.println(tree.numLeaves);
      }
View Full Code Here

Examples of forestry.arboriculture.genetics.Tree

    treeInterface.registerTemplate(TreeTemplates.getPapayaTemplate());
    treeInterface.registerTemplate(TreeTemplates.getDateTemplate());
  }

  private void registerErsatzGenomes() {
    AlleleManager.ersatzSpecimen.put(new ItemStack(Blocks.leaves, 1, 0), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getOakTemplate())));
    AlleleManager.ersatzSpecimen.put(new ItemStack(Blocks.leaves, 1, 1), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getSpruceTemplate())));
    AlleleManager.ersatzSpecimen.put(new ItemStack(Blocks.leaves, 1, 2), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getBirchTemplate())));
    AlleleManager.ersatzSpecimen.put(new ItemStack(Blocks.leaves, 1, 3), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getJungleTemplate())));

    AlleleManager.ersatzSaplings.put(new ItemStack(Blocks.sapling, 1, 0), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getOakTemplate())));
    AlleleManager.ersatzSaplings.put(new ItemStack(Blocks.sapling, 1, 1), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getSpruceTemplate())));
    AlleleManager.ersatzSaplings.put(new ItemStack(Blocks.sapling, 1, 2), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getBirchTemplate())));
    AlleleManager.ersatzSaplings.put(new ItemStack(Blocks.sapling, 1, 3), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getJungleTemplate())));
    AlleleManager.ersatzSaplings.put(new ItemStack(Blocks.sapling, 1, 4), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getAcaciaTemplate())));
    AlleleManager.ersatzSaplings.put(new ItemStack(Blocks.sapling, 1, 5), new Tree(
        TreeTemplates.templateAsGenome(TreeTemplates.getDarkOakTemplate())));
  }
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.