Examples of ResultNode


Examples of at.bestsolution.efxclipse.tooling.css.cssext.parser.result.ResultNode

 
  private ResultNode parseRef(ParserInputCursor l, CSSRuleRef r, ConsumeWS consumeWS) {
    CSSRule rule =  manager.resolveReference(r);
    if (rule == null) {
      logger.debug("resolving rule ref " + r.getRef().getName() + " returned null (maybe a function?) !!!!!");
      ResultNode inv = new ResultNode(NodeType.REF);
      inv.status = State.INVALID;
      return inv;
    }
   
    ResultNode rv = parse(l, rule, consumeWS);
   
    Definition ref = r.getRef();
    QualifiedName fqn = nameProvider.getFullyQualifiedName(ref);
   
    if (l.isConsumedOrOnlyWSLeft()) {
      List<Proposal> contributedProposalsForRule = manager.getContributedProposalsForRule(fqn.toString());
      for (Proposal c : contributedProposalsForRule) {
        ResultNode e = new ResultNode(NodeType.REF);
        e.status = State.PROPOSE;
        e.proposal = c;
        rv.next.add(e);
      }
    }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.css.cssext.parser.result.ResultNode

//      parse(l, rule, consumeWS);
//    }
//       
//    return result;
   
    ResultNode concatOrResult = new ResultNode(NodeType.CONCAT_OR);
    concatOrResult.remainingInput = l.copy();
    concatOrResult.status = State.FORWARD;
   
    Queue<CSSRule> rulesLeft = new LinkedList<>(r.getXors());
   
    int maxTests = rulesLeft.size();
    int testNo = 1;
   
    while (!rulesLeft.isEmpty() && testNo <= maxTests) {
      // pick rule
      final CSSRule rule = rulesLeft.poll();
     
      boolean match = false;
      //try on all
      for (ResultNode last : concatOrResult.findLast()) {
        if (last.isValid()) {
          ResultNode path = parse(last.remainingInput, rule, consumeWS);
          for (ResultNode pathEnd : path.findLast()) {
            if (pathEnd.isValid()) {
              match = true;
            }
          }
          last.next.add(path);
          if (!rulesLeft.isEmpty()) {
            // special skip node
            ResultNode skippy = new ResultNode(NodeType.CONCAT_OR);
            skippy.status = State.SKIP;
            skippy.remainingInput = last.remainingInput.copy();
            last.next.add(skippy);
          }
        }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.css.cssext.parser.result.ResultNode

      }
    };
  }
 
  private ResultNode parseFunction(ParserInputCursor in, CSSRuleFunc ruleFunc, ConsumeWS consumeWS) {
    ResultNode result = new ResultNode(NodeType.FUNCTION);
   
    ParserInputCursor local = in.copy();
   
    CssTok tok;
    try {
View Full Code Here

Examples of com.intellij.struts2.graph.beans.ResultNode

        for (final Result result : action.getResults()) {
          final PathReference pathReference = result.getValue();
          final String path = pathReference != null ? pathReference.getPath() : UNKNOWN;

          final ResultNode resultNode = new ResultNode(result, path);
          addNode(resultNode);

          final String resultName = result.getName().getStringValue();
          addEdge(new BasicStrutsEdge(actionNode, resultNode, resultName != null ? resultName : Result.DEFAULT_NAME));
        }
View Full Code Here

Examples of eu.admire.dispel.graph.ResultNode

    {
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("eu.admire.B");
        ExternalOutputNode out = new ExternalOutputNode("transfer1", "epr=\"xyz\"");
        ExternalInputNode in = new ExternalInputNode("transfer1", "epr");
        ResultNode result = new ResultNode("result");
        a.connectOutput("out", 0, b.getInput("in", 0));
        out.connectInput(b.getOutput("out", 0));
        a.connectInput("in", 0, in.getOutput());
        result.connectInput(b.getOutput("xxx", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
        graph.add(in);
        graph.add(out);
View Full Code Here

Examples of eu.admire.dispel.graph.ResultNode

   
    public void testResults()
    {
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("eu.admire.B");
        ResultNode result = new ResultNode("result");
        a.connectOutput("out", 0, b.getInput("in", 0));
        result.connectInput(b.getOutput("out", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
        graph.add(result);
//        System.out.println(GraphConverter.convertToDISPEL(graph));
View Full Code Here

Examples of eu.admire.dispel.graph.ResultNode

                    throw new TransformationException(
                            "No input " + ResultNode.INPUT_NAME
                            + " defined for processing element "
                            + ResultNode.NAME);
                }
                ResultNode result = new ResultNode(name);
                result.copyAnnotations(node);
                connectNewResultNode(node, result);
                add.add(result);
                LOG.debug("Created new result node, name: " + name);
            }
        }
View Full Code Here

Examples of eu.admire.dispel.graph.ResultNode

        node1.addAnnotation(AnnotationKeys.LOCATION, location1);
        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, location1);
        ProcessingElementNode node3 = new ProcessingElementNode("3");
        node3.addAnnotation(AnnotationKeys.LOCATION, location2);
        ResultNode result = new ResultNode("name");
        result.addAnnotation(AnnotationKeys.LOCATION, location2);
        node1.connectOutput("output", 0, node2.getInput("input", 0));
        node2.connectOutput("output", 0, node3.getInput("input", 0));
        node3.connectOutput("output", 0, result.getInput());
        Graph graph = new Graph();
        graph.add(node1);
        graph.add(node2);
        graph.add(node3);
        graph.add(result);
View Full Code Here

Examples of eu.admire.dispel.graph.ResultNode

                connectNodes(dispel, names, el);
            }
        }
        else if (node instanceof ResultNode)
        {
            ResultNode result = (ResultNode) node;
            dispel.append("|- \"").append(result.getResultName()).append("\" -| => ");
            dispel.append(names.get(node)).append(".name;\n");
            writeConnections(dispel, names, node);
        }
        else if (node instanceof ExternalOutputNode)
        {
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode

       
        sf1.setWeight(sf1Weight);
        sf2.setWeight(sf2Weight);
        sf3.setWeight(sf3Weight);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));

        assert(!resultRoot.isSensitive());
    }
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.