Examples of Node


Examples of info.unipax.bina.networkanalysis.gl.base.Node

   *
   * @return String with protein ID
   * */
  private String searchForNodeID()
  {
    Node activeNode = null;
    LinkedList<Pathway> pathways = null;
    String id = null;
    actualPathwayString = null;
    if(controller!=null)
    {

Examples of info.walnutstreet.vs.ps04.p2p.ring.Node

    assertEquals(node.getNext(), node1);
    assertEquals(node.getPrevious(), node2);
  }

  public void testPerm3() throws RemoteException {
    Node node = new Node("node0");
    Node node1 = new Node("node1");
    Node node2 = new Node("node2");

    // "node1" "node2" "node0"
    assertTrue(node1.join(node2));
    assertTrue(node1.join(node));

    this.testOrder(node, node2, 3);

    assertEquals(node2.getNext(), node);
    assertEquals(node2.getPrevious(), node1);

    assertEquals(node1.getNext(), node2);
    assertEquals(node1.getPrevious(), node);

    assertEquals(node.getNext(), node1);

Examples of io.crate.sql.tree.Node

        new DefaultTraversalVisitor<Node, Void>()
        {
            @Override
            public Node process(Node node, @Nullable Void context)
            {
                Node result = super.process(node, context);
                nodes.add(node);
                return result;
            }
        }.process(tree, null);
        return nodes.build();

Examples of j2dbench.Node

    public void actionPerformed(ActionEvent e) {
        Node.Iterator children = group.getRecursiveChildIterator();
        String newval = (type == SET) ? "enabled" : "disabled";
        while (children.hasNext()) {
            Node child = children.next();
            if (type == DEFAULT) {
                child.restoreDefault();
            } else if (child instanceof Option.Enable) {
                Option.Enable enable = (Option.Enable) child;
                if (type == INVERT) {
                    newval = enable.isEnabled() ? "disabled" : "enabled";
                }

Examples of jade.core.Node

      GenericCommand cmd = new GenericCommand(H_SNIFFON, NotificationSlice.NAME, null);
      cmd.addParam(snifferName);
      cmd.addParam(targetName);


      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
        if(result instanceof IMTPException) {
          throw (IMTPException)result;
        }
        else {

Examples of japa.parser.ast.Node

  }

  protected <T extends Node> T cloneNodes(T _node, Object _arg) {
    if (_node == null)
      return null;
    Node r = _node.accept(this, _arg);
    if (r == null)
      return null;
    return (T) r;
  }

Examples of javafx.scene.Node

    // add tick marks
    addTickMarks(gaugeParent, true, false);
    // add display that will show the current tick value
    final double tickValueHeight = 20d * sizeScale;
    final Node tickValueDisplay = this.indicatorType == IndicatorType.KNOB ? null :
      createTickValueDisplay(tickValueHeight, tickValueDisplayFillProperty, tickValueDisplayTextFillProperty);
    final Node tickValueDisplay2 = this.indicatorType == IndicatorType.KNOB ? null :
      createTickValueDisplay2(tickValueHeight, tickValueDisplayFillProperty, tickValueDisplayTextFillProperty);
   
    // create intensity indicators that will indicate when values are moderate, medium, or intense
    final Group intensityIndicator = createIntensityIndicator();
   

Examples of javax.jcr.Node

        if (!exists()) {
            throw new DavException(DavServletResponse.SC_NOT_FOUND);
        }
        DavPropertyName propName = property.getName();
        if (JCR_MIXINNODETYPES.equals(propName)) {
            Node n = (Node) item;
            try {
                NodeTypeProperty mix = new NodeTypeProperty(property);
                Set<String> mixins = mix.getNodeTypeNames();

                for (NodeType existingMixin : n.getMixinNodeTypes()) {
                    String name = existingMixin.getName();
                    if (mixins.contains(name)){
                        // do not add existing mixins
                        mixins.remove(name);
                    } else {
                        // remove mixin that are not contained in the new list
                        n.removeMixin(name);
                    }
                }

                // add the remaining mixing types that are not yet set
                for (String mixin : mixins) {
                    n.addMixin(mixin);
                }
            } catch (RepositoryException e) {
                throw new JcrDavException(e);
            }
        } else if (JCR_PRIMARYNODETYPE.equals(propName)) {
            Node n = (Node) item;
            try {
                NodeTypeProperty ntProp = new NodeTypeProperty(property);
                Set<String> names = ntProp.getNodeTypeNames();
                if (names.size() == 1) {
                    String ntName = names.iterator().next();
                    n.setPrimaryType(ntName);
                } else {
                    // only a single node type can be primary node type.
                    throw new DavException(DavServletResponse.SC_BAD_REQUEST);
                }
            } catch (RepositoryException e) {

Examples of javax.media.j3d.Node

      pickCanvas.setShapeLocation(posX, posY);

      // TODO : don't do pick closest, loop on all results
      PickResult result = pickCanvas.pickClosest();
      if (result!=null) {
      Node node = result.getObject();
            Object o = node.getUserData();
            if (o instanceof ActiveNode) {
              ((ActiveNode)o).highlight(true,result);
                lastPickSelection.add(o);
                // pass full info to the active node so it can find which point is
                // picked if necessary

Examples of javax.validation.Path.Node

   * Returns the category for this constraint violation. By default, the category returned
   * is the full path for property. You can override this method if you prefer another strategy.
   */
  protected String extractCategory(ValuedParameter[] params, ConstraintViolation<Object> violation) {
    Iterator<Node> path = violation.getPropertyPath().iterator();
    Node method = path.next();
    logger.debug("Constraint violation on method {}: {}", method, violation);

    StringBuilder cat = new StringBuilder();
    cat.append(params[path.next().as(ParameterNode.class).getParameterIndex()].getName());// parameter name

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.