Examples of addNode()


Examples of dk.brics.xmlgraph.XMLGraph.addNode()

                if (t.getFragment() != null)
                    return;
                // handle empty XML specially to avoid "" text nodes
                if (t.getXML().isText() && t.getXML().asText().getString().isEmpty()) {
                    SequenceNode n = new SequenceNode(Collections.<Integer>emptyList(), s.getOrigin());
                    xg.addNode(n);
                    XMLGraphFragment f = new XMLGraphFragment(n, null, null, null);
                    t.setFragment(f);
                } else {
                    XMLGraphFragment f = XMLGraphConverter.extend(xg, t.getXML(), XMLGraphConverter.GapConversion.CLOSED, true);
                    for (Map.Entry<String,String> en : f.getGapTypeMap().entrySet()) {
View Full Code Here

Examples of edu.cmu.sphinx.result.Lattice.addNode()

      LogMath logMath = LogMath.getLogMath();
     
    Lattice lattice = new Lattice();

    Node a = lattice.addNode("A", "A", 0, 0);
    Node b = lattice.addNode("B", "B", 0, 0);
    Node c = lattice.addNode("C", "C", 0, 0);
    Node d = lattice.addNode("D", "D", 0, 0);

    double acousticAB = 4;
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.gui.GraphCanvas.addNode()

    GraphCanvas canvas = this.engine.getGUI().newGraphCanvas(true);

    // we can call with null because WSDL is already accessed at this point
    WSComponent workflowComponent = new StreamReceiveComponent(oldWorkflow
        .getOdeInvokableWSDL(null, null));
    Node workflowNode = canvas.addNode(workflowComponent, new Point(600,
        100));
    //
    this.engine.getWorkflow().getWSDLs().put(
        ((StreamReceiveNode) workflowNode).getWSDLID(),
        oldWorkflow.getOdeWorkflowWSDL(null, null));
View Full Code Here

Examples of edu.indiana.extreme.xbaya.wf.Workflow.addNode()

        Graph graph = workflow.getGraph();

        // Input 1
        InputComponent inputComponent = new InputComponent();
        InputNode input1 = (InputNode) workflow.addNode(inputComponent);
        input1.setPosition(new Point(50, 50));

        // Input 2
        InputNode input2 = (InputNode) workflow.addNode(inputComponent);
        input2.setPosition(new Point(50, 150));
View Full Code Here

Examples of edu.stanford.hci.flowmap.structure.Graph.addNode()

      
       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());
View Full Code Here

Examples of helma.objectmodel.INode.addNode()

                          " at worknode " + worknode.toString());
                }

                // now mount it, possibly re-using the helmaNode that's been created before
                if (newHelmaNode != null) {
                    worknode.addNode(newHelmaNode);
                } else {
                    convert(childElement, worknode.createNode(null), nodeCache);
                }
            }
View Full Code Here

Examples of hudson.model.Hudson.addNode()

        float plannedCapacity = 0;
        for (Iterator<PlannedNode> itr = pendingLaunches.iterator(); itr.hasNext();) {
            PlannedNode f = itr.next();
            if(f.future.isDone()) {
                try {
                    hudson.addNode(f.future.get());
                    LOGGER.info(f.displayName+" provisioning successfully completed. We have now "+hudson.getComputers().length+" computer(s)");
                } catch (InterruptedException e) {
                    throw new AssertionError(e); // since we confirmed that the future is already done
                } catch (ExecutionException e) {
                    LOGGER.log(Level.WARNING, "Provisioned slave "+f.displayName+" failed to launch",e.getCause());
View Full Code Here

Examples of javax.jcr.Node.addNode()

            String itemPath = getLocator().getRepositoryPath();
            String memberName = getItemName(resource.getLocator().getRepositoryPath());
            if (resource.isCollection()) {
                if (in == null) {
                    // MKCOL without a request body, try if a default-primary-type is defined.
                    n.addNode(memberName);
                } else {
                    // MKCOL, which is not allowed for existing resources
                    int uuidBehavior = ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW;
                    String str = inputContext.getProperty(IMPORT_UUID_BEHAVIOR);
                    if (str != null) {
View Full Code Here

Examples of javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.addNode()

        context.disableDefaultConstraintViolation();
        ConstraintViolationBuilder violationBuilder = context
            .buildConstraintViolationWithTemplate(message);

        for (String propertyName : propertyPaths) {
          NodeBuilderDefinedContext nbdc = violationBuilder
              .addNode(propertyName);
          nbdc.addConstraintViolation();
        }
      }
    } catch (Exception ex) {
View Full Code Here

Examples of jenkins.model.Jenkins.addNode()

                    defaultBaseLauncherCommand, defaultIdleTerminationMinutes);

            synchronized (jenkins) {
                Node n = jenkins.getNode(name);
                if (n != null) jenkins.removeNode(n);
                jenkins.addNode(slave);
            }
        } catch (FormException e) {
            LOG.log(Level.WARNING, "Unable to create dynaslave:", e);

        } finally {
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.