Package lupos.gui.operatorgraph.visualeditor.visualrif.operators

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.operators.AndContainer


  @Override
  public Object visit(final Conjunction obj, final Object arg) throws RIFException {
    System.out.println("visit(Conjunction obj, Object arg)");

    final AndContainer andContainer = new AndContainer();
    andContainer.setVisualRifEditor(this.visualRifEditor);

    final AbstractGuiComponent<Operator> recrusiveOperatorGraph = andContainer.draw(new GraphWrapperOperator(andContainer),
        (RuleGraph) arg);
    for (int i = 0; i < obj.getChildren().size(); i++) {
      final Operator operator = (Operator) obj.getChildren().get(i).accept(this, andContainer.getRecursiveOperatorGraph());
      andContainer.addOperator(operator);
    }
    return andContainer;
  }
View Full Code Here


//          rootListRight.add(gwo);
//        }

        // And
        if ( left instanceof AndContainer ){
          final AndContainer andContainer = (AndContainer) left;
          final GraphWrapperOperator gwo = new GraphWrapperOperator(andContainer);
          rootListLeft.add(gwo);
        }

        if ( right instanceof AndContainer ){
          final AndContainer andContainer = (AndContainer) right;
          final GraphWrapperOperator gwo = new GraphWrapperOperator(andContainer);
          rootListRight.add(gwo);
        }

        // OR
View Full Code Here

      // AND
      if (operatorObject.has("OP TYPE")
          && operatorObject.getString("OP TYPE").equals(
              "and")) {
        final AndContainer andContainer = new AndContainer();
        andContainer.setVisualRifEditor(this.visualRifEditor);
        andContainer.fromJSON(operatorObject.getJSONObject("OPERATORGRAPH"));
        op = andContainer;
      }

      // Or
      if (operatorObject.has("OP TYPE")
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.visualrif.operators.AndContainer

Copyright © 2018 www.massapicom. 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.