Examples of Node


Examples of edu.isi.karma.rep.Node

      ArrayList<Row> rows = table.getRows(0, table.getNumRows(), selection);
   
        for (Row row : rows) {
          String id = row.getId();
          row.getNode(hNodeId);
          Node node = row.getNeighbor(hNodeId);
          String value = node.getValue().asString();
          JSONObject obj = new JSONObject();
          System.out.println(value);
 
          obj.put("rowId", id);
          obj.put("text", value);

Examples of edu.isi.karma.rep.alignment.Node

    for (int j = 0; j < newEdges.length(); j++) {
      JSONObject newEdge = newEdges.getJSONObject(j);

      String sourceId = newEdge.has(JsonKeys.edgeSourceId.name()) ? newEdge.getString(JsonKeys.edgeSourceId.name()) : null;
     
      Node sourceNode = null;
      Node targetNode = null;
      if(sourceId != null) {
        if(sourceId.endsWith(" (add)"))
          sourceId = sourceId.substring(0, sourceId.length()-5).trim();
        sourceNode = alignment.getNodeById(sourceId);
      }

Examples of edu.stanford.hci.flowmap.structure.Node

       }
      
       Graph graph = new Graph();
       Location rootLocation = locations.get(rootPath);
       if (rootLocation == null) return;
       Node rootNode = new Node(rootLocation.px, rootLocation.py, 1, rootLocation.getDocument());
       graph.addNode(rootNode);
       graph.setRootNode(rootNode);
      
       for (Location each: locationWeights.keySet()) {
           Integer weight = locationWeights.get(each);
           Node node = new Node(each.px, each.py, weight, each.getDocument());
           graph.addNode(node);
       }
       graphs.add(graph);
    }

Examples of edu.umd.cloud9.util.FibonacciHeapInt.Node

      Integer it = new Integer(ii);
      heap.insert(it, key);
    }
    assertFalse(heap.isEmpty());
    assertEquals(1000, heap.size());
    Node o = heap.removeMin();
    assertTrue(o instanceof Node);
    assertFalse(heap.isEmpty());
    assertEquals(999, heap.size());
    heap.clear();
    assertTrue(heap.isEmpty());

Examples of edu.vt.rt.hyflow.benchmark.rmi.list.Node

  private static final String HEAD = "0-queueStart";
  private static final String TAIL = "0-queueEnd";

  public void createQueue() throws AccessException, RemoteException, NotBoundException, InterruptedException {
   
      Node front = new Node(HEAD, -1)// create the head Node
      Node end = new Node(TAIL, -1);    // create the end Node
      Node dmy = new Node("0-dummy",-1);    // create a dummy Node
     
      front.setNext("0-dummy");
      end.setNext("0-dummy");
      dmy.setNext(null);
   
  }

Examples of edu.yale.cs.hadoopdb.catalog.xml.Node

            break;

          }
        }
        if (chunk.getHosts().isEmpty()) {
          Node node = chunkHostMap.get(chunk_id).get(0);
          chunk.addHost(new DBChunkHost(node.getLocation(),
              xmlConfig.getPartitionForNodeRelation(node,
                  relation, chunk_id).getUrl(), node
                  .getUsername(), node.getPassword(), node
                  .getDriver()));
        }
      }
      list.add(chunk);
    }

Examples of ee.widespace.forum.Node

        msg.messageID = rset.getInt(1);
        msg.subject   = rset.getString(2);
        msg.name      = rset.getString(3);
        msg.date    = rset.getString(4);
        msg.spacer    = spacer + spacer;
        list.add( new Node(msg, getMessageList(forumID, msg.messageID, msg.spacer )) );
        }
    } finally {rset.close();}
  } finally {stmt.close();}
    Node node = new Node( forumName, list );
  return node;
}

Examples of elemental.dom.Node

      }
    } else {
      // There are modules, let's merge
      MapFromStringTo<Node> existing = Collections.mapFromStringTo();
      for (int i = 0; i < m; i++) {
        Node opt = opts.item(i);
        Node attr = opt.getAttributes().getNamedItem("value");
        if (attr != null)
          existing.put(attr.getNodeValue(), opt);
      }
      m = modules.size();
      for (int i = 0; i < m; i++) {
        GwtRecompile module = modules.get(i);
        Node duplicate = existing.get(module.getModule());
        if (duplicate != null) {
          // TODO check revision # and take freshest
          duplicate.removeFromParent();
        }
        OptionElement opt = createOption(module, i == 0);
        list.appendChild(opt);
      }
    }

Examples of eu.planets_project.pp.plato.model.tree.Node

        d2.setActionNeeded("also no actions needed");
        d2.setReason("Reason, why no actions are needed? Hmm...");

        q.setDecision(d2);

        Node rootN = new Node();
        rootN.setName("Minimalist root node");

        Node childNode = new Node();
        childNode.setName("Image properties");
        rootN.addChild(childNode);

        Leaf leafWithUnit = new Leaf();
        leafWithUnit.setName("Amount of Pixel");
        leafWithUnit.changeScale(new PositiveIntegerScale());
        leafWithUnit.getScale().setUnit("px");
        childNode.addChild(leafWithUnit);

        Leaf ordinalLeaf = new Leaf();
        ordinalLeaf.setName("Karma");
        OrdinalScale ordinalScale = new OrdinalScale();
        ordinalScale.setRestriction("Good/Bad/Evil");

Examples of eu.pursuit.vopsi.Node

    private Node node;

    public AppThreadCaller(String caller, String callee) {
      this.caller = caller;
      this.callee = callee;
      this.node = new Node();
    }
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.