Package lupos.gui.operatorgraph.visualeditor.visualrif.guielements.operatorPanel

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.guielements.operatorPanel.UnitermOperatorPanel


      System.out.println("RuleEditorPane.getRuleVariableList():  comp.length "+ comp.length);

      // UnitermOperator
      if( comp[i] instanceof UnitermOperatorPanel ){

        final UnitermOperatorPanel fop = (UnitermOperatorPanel) comp[i];

        for (int j = 0; j < fop.getUnitermOperator().getTerms().size(); j++) {

          if((fop.getUnitermOperator().getTerms().get(j).isVariable()) &&  !this.listContainsElement(varTerms,fop.getUnitermOperator().getTerms().get(j).getValue())){
            varTerms.add(fop.getUnitermOperator().getTerms().get(j));
          }

        }

      } // end FactOperator


      // ListOperator
      if( comp[i] instanceof ListOperatorPanel ){

        final ListOperatorPanel lop = (ListOperatorPanel) comp[i];

        for (int j = 0; j < lop.getListOperator().getTerms().size(); j++) {

          if((lop.getListOperator().getTerms().get(j).isVariable()) &&  !this.listContainsElement(varTerms,lop.getListOperator().getTerms().get(j).getValue())){
            varTerms.add(lop.getListOperator().getTerms().get(j));
          }

        }

      } // end ListOperator


      // FrameOperator
      if( comp[i] instanceof FrameOperatorPanel ){
        System.out.println("EIN Frame!!!");
        final FrameOperatorPanel fop = (FrameOperatorPanel) comp[i];

        for (int j = 0; j < fop.getFrameOperator().getTerms().size(); j++) {

          if((fop.getFrameOperator().getTerms().get(j).isConstant() || fop.getFrameOperator().getTerms().get(j).isVariable()) && !this.listContainsElement(varTerms,fop.getFrameOperator().getTerms().get(j).getValue())){
            varTerms.add(fop.getFrameOperator().getTerms().get(j));
          }

        }

      } // end FrameOperator
View Full Code Here


    for (int i = 0; i < comp.length; i++) {

      // UnitermOperator
      if( comp[i] instanceof UnitermOperatorPanel ){

        final UnitermOperatorPanel fop = (UnitermOperatorPanel) comp[i];

        for (int j = 0; j < fop.getUnitermOperator().getTerms().size(); j++) {

          if(fop.getUnitermOperator().getTerms().get(j).isVariable() && !this.listContainsElement(varTerms,fop.getUnitermOperator().getTerms().get(j).getValue())){
            varTerms.add(fop.getUnitermOperator().getTerms().get(j));
          }

        }

      } // end FactOperator


      // ListOperator
      if( comp[i] instanceof ListOperatorPanel ){

        final ListOperatorPanel lop = (ListOperatorPanel) comp[i];

        for (int j = 0; j < lop.getListOperator().getTerms().size(); j++) {

          if(lop.getListOperator().getTerms().get(j).isVariable() && !this.listContainsElement(varTerms,lop.getListOperator().getTerms().get(j).getValue())){
            varTerms.add(lop.getListOperator().getTerms().get(j));
          }

        }

      } // end ListOperator


      // FrameOperator
      if( comp[i] instanceof FrameOperatorPanel ){

        final FrameOperatorPanel fop = (FrameOperatorPanel) comp[i];

        for (int j = 0; j < fop.getFrameOperator().getTerms().size(); j++) {

          if(fop.getFrameOperator().getTerms().get(j).isVariable() && !this.listContainsElement(varTerms,fop.getFrameOperator().getTerms().get(j).getValue())){
            varTerms.add(fop.getFrameOperator().getTerms().get(j));
          }

        }

      } // end FrameOperator
View Full Code Here

    for (int i = 0; i < comp.length; i++) {

      // UnitermOperator
      if( comp[i] instanceof UnitermOperatorPanel ){

        final UnitermOperatorPanel fop = (UnitermOperatorPanel) comp[i];

        for (int j = 0; j < fop.getUnitermOperator().getTerms().size(); j++) {

          if(!this.listContainsElement(varTerms,fop.getUnitermOperator().getTerms().get(j).getValue())){
            varTerms.add(fop.getUnitermOperator().getTerms().get(j));
          }

        }

      } // end UnitermOperator


      // ListOperator
      if( comp[i] instanceof ListOperatorPanel ){

        final ListOperatorPanel lop = (ListOperatorPanel) comp[i];

        for (int j = 0; j < lop.getListOperator().getTerms().size(); j++) {

          if(!this.listContainsElement(varTerms,lop.getListOperator().getTerms().get(j).getValue())){
            varTerms.add(lop.getListOperator().getTerms().get(j));
          }

        }

      } // end ListOperator


      // FrameOperator
      if( comp[i] instanceof FrameOperatorPanel ){

        final FrameOperatorPanel fop = (FrameOperatorPanel) comp[i];

        for (int j = 0; j < fop.getFrameOperator().getTerms().size(); j++) {

          if(!this.listContainsElement(varTerms,fop.getFrameOperator().getTerms().get(j).getValue())){
            varTerms.add(fop.getFrameOperator().getTerms().get(j));
          }

        }

      } // end FrameOperator
View Full Code Here


  @Override
  public AbstractGuiComponent<Operator> draw(GraphWrapper gw,
      VisualGraph<Operator> parent) {
    this.panel = new UnitermOperatorPanel(parent, gw, this,
         this.startNode,
        this.alsoSubClasses,visualRifEditor);
    return this.panel;
  }
View Full Code Here

    int opY = 0;
    int distance = 0;
   
    if (ato instanceof UnitermOperator) {
      UnitermOperator uo = (UnitermOperator) ato;
      UnitermOperatorPanel uop = uo.getFactOperatorPanel();
      width = uop.getWidth();
      height = uop.getHeight();
      opX = uop.getX();
      opY = uop.getY();
      distance = 90;
    }
    if (ato instanceof FrameOperator){
      FrameOperator fo = (FrameOperator) ato;
      FrameOperatorPanel fop = fo.getFrameOperatorPanel();
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.visualrif.guielements.operatorPanel.UnitermOperatorPanel

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.