Examples of Node


Examples of st.gravel.support.compiler.ast.Node

    return WriteHolderNode.factory.varName_value_(_anObject.varName(), ((Expression) this.visit_(_anObject.value())));
  }

  @Override
  public Node visit_(final Node _anObject) {
    final Node _newNode;
    if (_anObject == null) {
      return null;
    }
    _newNode = ((Node) _anObject.accept_(this));
    if (_newNode == null) {
      return null;
    }
    return _newNode.withSourcePosition_(_anObject.sourcePosition());
  }

Examples of statechum.model.testset.PTASequenceEngine.Node

  @Test
  public final void testNodeEquality()
  {
    PTASequenceEngine engine = new PTASequenceEngine();
    Node a = engine.new Node("A"), b = engine.new Node("A"), c = engine.new Node("B");
    assertTrue(a.equals(a));
    assertTrue(b.equals(b));
    assertTrue(engine.rejectNode.equals(engine.rejectNode));
    assertFalse(a.equals(b));
    assertFalse(b.equals(a));

Examples of statechum.xmachine.model.testset.PTATestSequenceEngine.Node

  @Test
  public final void testNodeEquality()
  {
    PTATestSequenceEngine engine = new PTATestSequenceEngine();
    Node a = engine.new Node("A"), b = engine.new Node("A"), c = engine.new Node("B");
    assertTrue(a.equals(a));
    assertTrue(b.equals(b));
    assertTrue(engine.rejectNode.equals(engine.rejectNode));
    assertFalse(a.equals(b));
    assertFalse(b.equals(a));

Examples of storm.trident.planner.Node

    }
   
    public Stream stateQuery(TridentState state, Fields inputFields, QueryFunction function, Fields functionFields) {
        projectionValidation(inputFields);
        String stateId = state._node.stateInfo.id;
        Node n = new ProcessorNode(_topology.getUniqueStreamId(),
                        _name,
                        TridentUtils.fieldsConcat(getOutputFields(), functionFields),
                        functionFields,
                        new StateQueryProcessor(stateId, inputFields, function));
        _topology._colocate.get(stateId).add(n);

Examples of sun.tools.tree.Node

                        member.getValue(env);

                                // Get the value, if any...

                        Node node = member.getValue();

                        if (node != null) {
                            value = node.toString();
                        }


                        // Is it a constant?

Examples of transientlibs.objects.general.Node

        }
    }

    public void fillFromNamedArray(ArrayList fromArray) {
        int counter;
        Node x;
        for (counter = 0; counter < fromArray.size(); counter++) {

            x = (Node) fromArray.get(counter);
            addOption(x.name(), counter);
        }
    }

Examples of translation.trees.Node

//    parser.parse(inputWords, sourceTrees);
   
   
   
    /* Exemple d'adjonction à gauche */
    Node root = new Node("S", NodeType.ROOT_TYPE);
    Node n = new Node("N", NodeType.SUBST_TYPE);
    root.addSon(n);
    n = new Node("V", NodeType.INTERN_TYPE);
    root.addSon(n);
    Node lexnode = new LexicalNode("dort", "V");
    n.addSon(lexnode);
    ElementaryTree t1 = new ElementaryTree(root, "N0V-dort");
    t1.print();
    System.out.println();
   
    // Arbre à substituer au noeud N du précédent
    root = new Node("N", NodeType.ROOT_TYPE);
    lexnode = new LexicalNode("Jean", "N");
    root.addSon(lexnode);
    ElementaryTree t2 = new ElementaryTree(root, "N - Jean");
    t2.print();
    System.out.println();
   
    // V* Adv
    root = new Node("V", NodeType.ROOT_TYPE);
    n = new Node("V", NodeType.FOOT_TYPE);
    root.addSon(n);
    n = new Node("Adv", NodeType.LEX_TYPE);
    n = new LexicalNode("beaucoup", "Adv");
    root.addSon(n);
    ElementaryTree t3 =
      new ElementaryTree(root, "V* V Adv - bcp", AuxType.RIGHT_ADJTYPE);
    t3.print();

Examples of tvbrowser.ui.pluginview.Node

    super(tree);
    mPaths = paths;
    mPrograms = programs;
    mDefaultAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        Node node = (Node) mPaths[0].getLastPathComponent();
        ProgramItem programItem = (ProgramItem) node.getUserObject();
        final Program program = programItem.getProgram();
        MainFrame.getInstance().scrollToProgram(program, new Runnable() {
          public void run() {
            ProgramTable table = MainFrame.getInstance().getProgramTableScrollPane().getProgramTable();
            table.deSelectItem();

Examples of ubiware.integration.soprano.Node

      // Node.class.getClass();

      List<Statement> statementList = new ArrayList<Statement>(1000);
      // add statements
      for (int s = 0; s < 10; s++) {
        Node subject = new Node(new URI("http://S" + s));
        for (int p = 0; p < 10; p++) {
          Node predicate = new Node(new URI("http://P" + p));
          for (int o = 0; o < 10; o++) {
            Node object = new Node(new URI("http://O" + o));
            for (int c = 0; c < 1; c++) {
              Node context = new Node(new URI("http://C" + c));
              Statement statement = new Statement(subject,
                  predicate, object, context);
              statementList.add(statement);
            }
          }
        }

      }

      TCPClientModel model = new TCPClientModel(address, 5000, "test2");
      System.out.println("adding " + statementList.size()+ " statements");
      long startTime = System.currentTimeMillis();
      int counter = 0;
     
      for (Statement statement : statementList) {
        model.addStatement(statement);
        //counter++;
        //if (counter % 100 == 0)
        //  System.out.print(".");
          
          
      }
     
      long endTime = System.currentTimeMillis();
      double durationinseconds = (endTime - startTime) / 1000.0;
      System.out.println("done adding "+ statementList.size()+ " statements in " +durationinseconds+ " seconds");
     
      startTime = System.currentTimeMillis();
      for (Statement statement : statementList){
        SopranoStatementIterator it = model.listStatements(statement);
        while (it.hasNext()){
          it.next();
        }
      }
      endTime = System.currentTimeMillis();
      durationinseconds = (endTime - startTime) / 1000.0;
      System.out.println("done querying "+ statementList.size()+ " statements in " +durationinseconds+ " seconds");
     
      System.exit(0);
      Node subject = new Node(new URI("http://S2"));
      Node predicate = new Node(new URI("http://P3"));
      Node object = new Node(new URI("http://O2"));
      Node context = new Node(new URI("http://C6"));
      Statement partial = new Statement(subject, predicate, object,
          context);

      System.out.println("querying 1 specific");
      SopranoStatementIterator iterator = model.listStatements(partial);
      counter = 0;
      while (iterator.hasNext()) {
        Statement st = iterator.next();
        counter++;
        System.out.println(st);
      }
      System.out.println("Done querying " + counter);

      //System.out.println("querying 100 with only object set.");
      //subject = new Node();
      //predicate = new Node();
      //object = new Node(new URI("http://O2"));
      //context = new Node();
      //partial = new Statement(subject, predicate, object, context);
      //iterator = model.listStatements(partial);
      //counter = 0;
      //while (iterator.hasNext()) {
      //  Statement st = iterator.next();
      //  counter++;
      //  System.out.print(".");
      //}
      //System.out.println("Done querying " + counter);

      System.out.println("querying all with nothing set.");
      subject = new Node();
      predicate = new Node();
      object = new Node();
      context = new Node();
      partial = new Statement(subject, predicate, object, context);
      startTime = System.currentTimeMillis();
      iterator = model.listStatements(partial);
      counter = 0;
      while (iterator.hasNext()) {

Examples of uk.ac.man.cs.mig.util.graph.graph.Node

   * <code>Nodes</code> are considered equal if they represent an
   * <i>identical</i>.
   */
  public void testEquals()
  {
    Node node1 = new DefaultNode("TestNode");

    Node node2 = new DefaultNode("TestNode");

    assertTrue(node1.equals(node2));

    Rectangle r1, r2;

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.