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

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


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

    final RuleOperator ro = new RuleOperator();
    ro.setVisualRifEditor(this.visualRifEditor);
    ro.initRule();

    ro.setUnVisitedObject(obj);
    return ro;
  }
View Full Code Here


          rootList.add(gwo);
        }

        // Rule
        if ( rootNodes[i] instanceof RuleOperator ){
          final RuleOperator ro = (RuleOperator) rootNodes[i];

          final GraphWrapperOperator gwo = new GraphWrapperOperator(ro);
          ro.getRulePanel().getRuleEditorPane().evaluate(ro.getUnVisitedObject(),this.vrg);
          rootList.add(gwo);
        }else{

          rootList.add(new GraphWrapperOperator(rootNodes[i]));
        }
View Full Code Here

   
//    Iterator<String> keyIt = loadObject.keys();

//    HashMap<String, GraphWrapperEditable> tmp = new HashMap<String, GraphWrapperEditable>();

    RuleOperator op = null;

//    JSONObject opLoadObject = loadObject.getJSONObject(ruleOpName);
   
    JSONObject canvasInfo = loadObject.getJSONObject("CANVASINFO");
   
    JSONArray positionArray = canvasInfo.getJSONArray("POSITION");
   
    JSONObject ruleEditorPane = loadObject.getJSONObject("RULEEDITORPANE");



      if( canvasInfo.has("OP TYPE") && canvasInfo.getString("OP TYPE").equals("RuleOperator") ) {
       
       
       
        op = new RuleOperator(ruleOpName, loadObject);
        op.setDocumentName(documentName);
        op.setVisualRifEditor(this.visualRifEditor);
        op.setDocumentName(documentName);
        op.initRule();
        op.getRulePanel().getRuleEditorPane().fromJSON(ruleEditorPane);

      }

      this.addOperator(positionArray.getInt(0), positionArray.getInt(1), op);
     
View Full Code Here

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

  private void createOperator(final T newOp) {
    /* Document */
    // add Rule
    if ( newOp instanceof RuleOperator){
      final RuleOperator ro =  (RuleOperator) newOp;
      this.createNewRule(ro);
    }

    // add Prefix
    if ( newOp instanceof PrefixOperator ){
View Full Code Here

TOP

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

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.