Package lupos.gui.operatorgraph.visualeditor.operators

Examples of lupos.gui.operatorgraph.visualeditor.operators.Operator


  private void handleWhereClause(final SimpleNode node,
      final RetrieveData operator) {
    for (int i = 0; i < node.jjtGetNumChildren(); i++) {
      if (node.jjtGetChild(i) instanceof ASTGroupConstraint) {
        final Operator testOP = (Operator) node.jjtGetChild(i)
        .jjtAccept(this, null);

        operator.addSucceedingOperator(new OperatorIDTuple<Operator>(testOP, 0));
      }
    }
View Full Code Here


    final LinkedHashSet<Operator> templates = new LinkedHashSet<Operator>();

    final HashMap<Item, QueryRDFTerm> rdfHash = new HashMap<Item, QueryRDFTerm>();

    for (int i = 0; i < node.jjtGetNumChildren(); i++) {
      final Operator op = (Operator) node.jjtGetChild(i).jjtAccept(this,
          rdfHash);

      if (op != null)
        templates.add(op);
    }
View Full Code Here

  }

  public Object visit(final ASTUnionConstraint node, final Object data) {
    final Union unionOp = new Union();

    Operator testOP = (Operator) node.jjtGetChild(0).jjtAccept(this, data);

    if (testOP != null)
      unionOp.addSucceedingOperator(new OperatorIDTuple<Operator>(testOP, 0));

    testOP = (Operator) node.jjtGetChild(1).jjtAccept(this, data);
View Full Code Here

    existsContainer.draw(new GraphWrapperOperator(existsContainer),
        (RuleGraph) arg);

    final LinkedList<String> existsVar = new LinkedList<String>();

    final Operator op = (Operator) obj
        .getChildren()
        .get(obj.getChildren().size()-1)
        .accept(this, existsContainer.getRecursiveOperatorGraph());

    for (int i = 0 ; i < obj.getChildren().size()-1; i++){
View Full Code Here

    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

      ((AbstractRuleOperator) this.operator).applyChange(newName);

      if(!newName.equals("")) {
        HashMap<String, Operator> names = (HashMap<String, Operator>) data;
        Operator tmp = names.get(newName);

        if(tmp != null && !tmp.equals(this.operator)) {
          throw new ModificationException("Name already in use!", this.operator);
        }
        else {
          names.put(newName, this.operator);
        }
View Full Code Here

 
  @Override
  protected Operator createOperator(Class<? extends Operator> clazz, Item content) throws Exception {
   
    Operator newOp = null;

 
    newOp = clazz.newInstance();

   
View Full Code Here

    JSONObject saveObject = new JSONObject();

    JSONObject connectionsObject = new JSONObject();

    for(GraphWrapper gw : this.boxes.keySet()) {
      Operator op = (Operator) gw.getElement();
   
//      // Rule
//      if (op instanceof RuleOperator){
//        RuleOperator ro = ( RuleOperator ) op;
//        saveObject.put(ro.getRuleName(), ro.toJSON(connectionsObject));
View Full Code Here

        continue;
      }

      JSONObject opLoadObject = loadObject.getJSONObject(ruleOpName);

      Operator op = null;


     
      if(opLoadObject.has("OP TYPE") && opLoadObject.getString("OP TYPE").equals("PrefixOperator")) {
        op = new PrefixOperator(opLoadObject);
View Full Code Here

    JSONObject saveObject = new JSONObject();

    JSONObject connectionsObject = new JSONObject();

    for(GraphWrapper gw : this.boxes.keySet()) {
      Operator op = (Operator) gw.getElement();
   
      // Rule
      if (op instanceof RuleOperator){
        RuleOperator ro = ( RuleOperator ) op;
       
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.operators.Operator

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.