Examples of GraphWrapperOperator


Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

  private ListOperator listOperator;
  private boolean variable, constant, uniterm, list;

  // Constructor
  public ClassificationOperatorPanel(final VisualGraph<Operator> parent, final Operator parentOp, final Operator childOp){
    super(parent, new GraphWrapperOperator(parentOp), childOp, false);

    // Variable to Variable
    if ( (parentOp instanceof VariableOperator) && (childOp instanceof VariableOperator) ) {

      final VariableOperator parentVO = ( VariableOperator ) parentOp;
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

  @Override
  protected void createNewOperatorContainer(final AbstractContainer oc) {
    oc.setVisualRifEditor(this.visualRifEditor);
    System.out.println("RuleGraph.createNewOperatorContainer(AbstractContainer oc)");
    if ( oc.getGUIComponent() == null ){
      oc.draw(new GraphWrapperOperator(oc),
          this);
      System.out.println("oc.getGUIComponent() == null!!!!!!!!!!!!!!!!!!!!");
    }
    if( this.isRecursiveOperatorGraph() ) {
      this.getOperatorContainer().addOperator(oc);
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

        child.setChild(true);
        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);
        this.annotationLabels.put(child, classificationOperatorPanel);
        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }
      if (opIDTuple.getOperator() instanceof ConstantOperator){
        final ConstantOperator child = (ConstantOperator) opIDTuple.getOperator(); // get current children
        child.setChild(true);

        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);

        this.annotationLabels.put(child, classificationOperatorPanel);

        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }

      if (opIDTuple.getOperator() instanceof VariableOperator){
        final VariableOperator child = (VariableOperator) opIDTuple.getOperator(); // get current children
        child.setChild(true);

        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);

        this.annotationLabels.put(child, classificationOperatorPanel);

        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }

      if (opIDTuple.getOperator() instanceof ListOperator){
        final ListOperator child = (ListOperator) opIDTuple.getOperator(); // get current children
        child.setChild(true);

        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);

        this.annotationLabels.put(child, classificationOperatorPanel);

        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }
    }
    return predicates;
  }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

    public Term prepareToCreateUnitermTerm(final UnitermOperator unitermOperator, final String[] comboBoxEntries) {
      final Term term = new Term();
      term.setUniterm(true);
      term.setAbstractTermOperator(unitermOperator);
      term.setComboEntries(comboBoxEntries);
      term.setSucceedingOperator(new GraphWrapperOperator(unitermOperator));
      this.addSucceedingOperator(new OperatorIDTuple<Operator>(unitermOperator, 0));
      unitermOperator.addPrecedingOperator(this);
      return term;
    }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

        final String[] comboBoxEntries) {
      final Term term = new Term();
      term.setList(true);
      term.setAbstractTermOperator(listOperator);
      term.setComboEntries(comboBoxEntries);
      term.setSucceedingOperator(new GraphWrapperOperator(listOperator));
      this.addSucceedingOperator(new OperatorIDTuple<Operator>(listOperator, 0));
      listOperator.addPrecedingOperator(this);
      return term;
    }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

        final String[] comboBoxEntries) {
      final Term term = new Term();
      term.setFrame(true);
      term.setAbstractTermOperator(listOperator);
      term.setComboEntries(comboBoxEntries);
      term.setSucceedingOperator(new GraphWrapperOperator(listOperator));
      this.addSucceedingOperator(new OperatorIDTuple<Operator>(listOperator, 0));
      listOperator.addPrecedingOperator(this);
      return term;
    }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

          }
          // create predicate panel...
          final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, op);
          this.annotationLabels.put(op, classificationOperatorPanel);
          // add predicate panel to hash table with its GraphWrapper...
          predicates.put(new GraphWrapperOperator(op), classificationOperatorPanel);
      }
      for(final Operator op : this.getTermSucceedingElements()) {
        final GraphWrapper gw = new GraphWrapperOperator(this);
        final GraphWrapper childGW = new GraphWrapperOperator(op);
        System.out.println("AbstractTermOperator.drawAnnotations() : this.getTermSucceedingElements()");
        if (op instanceof AbstractTermOperator){
          final AbstractTermOperator child = (AbstractTermOperator) op; // get current children
          child.setChild(true);
        }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.GraphWrapperOperator

        child.setChild(true);
        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);
        this.annotationLabels.put(child, classificationOperatorPanel);
        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }
      if (opIDTuple.getOperator() instanceof ConstantOperator){
        final ConstantOperator child = (ConstantOperator) opIDTuple.getOperator(); // get current children
        child.setChild(true);
        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);
        this.annotationLabels.put(child, classificationOperatorPanel);
        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }
      if (opIDTuple.getOperator() instanceof VariableOperator){
        final VariableOperator child = (VariableOperator) opIDTuple.getOperator(); // get current children
        child.setChild(true);
        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);
        this.annotationLabels.put(child, classificationOperatorPanel);
        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }
      if (opIDTuple.getOperator() instanceof ListOperator){
        final ListOperator child = (ListOperator) opIDTuple.getOperator(); // get current children
        child.setChild(true);
        // create predicate panel...
        final ClassificationOperatorPanel classificationOperatorPanel = new ClassificationOperatorPanel(parent, this, child);
        this.annotationLabels.put(child, classificationOperatorPanel);
        // add predicate panel to hash table with its GraphWrapper...
        predicates.put(new GraphWrapperOperator(child), classificationOperatorPanel);
      }
    }
    return predicates;
  }
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.