Examples of toStringFCL()


Examples of net.sourceforge.jFuzzyLogic.FIS.toStringFCL()

      if (textVar.getValue().length()==0)
      {

        String fileName = element.jGetSourcePath()+"fuzzy.fcl";
        fis = FIS.load(fileName,false);
        textVar.setValue(fis.toStringFCL());

      }else
      {
        fis = FIS.createFromString(textVar.getValue(),false);
      }
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.toStringFCL()

    for( Iterator it = al.iterator(); it.hasNext(); ) {
      String ruleSetName = (String) it.next();
      FuzzyRuleSet ruleSet = getFuzzyRuleSet(ruleSetName);

      // Convert ruleSet to string (using FLC?)
      if( useFCL ) out.append(ruleSet.toStringFCL());
      else out.append(ruleSet.toString());
    }

    return out.toString();
  }
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.toStringFCL()

    optimizationDeltaJump.optimize(true);

    //---
    // Save optimized fuzzyRuleSet to file
    //---
    System.out.println(fuzzyRuleSet.toStringFCL());
    Gpr.toFile("fcl/qualify_optimized.fcl", fuzzyRuleSet.toStringFCL());

    System.out.println("ParameterOptimizationDemo: End");
  }
}
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.toStringFCL()

    //---
    // Save optimized fuzzyRuleSet to file
    //---
    System.out.println(fuzzyRuleSet.toStringFCL());
    Gpr.toFile("fcl/qualify_optimized.fcl", fuzzyRuleSet.toStringFCL());

    System.out.println("ParameterOptimizationDemo: End");
  }
}
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.FuzzyRuleSet.toStringFCL()

      // System.out.println(fuzzyRuleSet);
    }

    // Print ruleSet
    if( show ) System.out.println(fuzzyRuleSet);
    System.out.println(fuzzyRuleSet.toStringFCL());
  }
}
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.LinguisticTerm.toStringFcl()

        // Add fuzzyfiers
        fuzzifiers.append("FUZZIFY " + var.getName() + "\n");
        for( Iterator<String> itlt = var.iteratorLinguisticTermNamesSorted(); itlt.hasNext(); ) {
          String ltName = itlt.next();
          LinguisticTerm linguisticTerm = var.getLinguisticTerm(ltName);
          fuzzifiers.append("\t" + linguisticTerm.toStringFcl() + "\n");
        }
        fuzzifiers.append("END_FUZZIFY\n\n");

      } else {
        // Add output variables
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.LinguisticTerm.toStringFcl()

        // Add defuzzyfiers
        defuzzifiers.append("DEFUZZIFY " + var.getName() + "\n");
        for( Iterator<String> itlt = var.iteratorLinguisticTermNamesSorted(); itlt.hasNext(); ) {
          String ltName = itlt.next();
          LinguisticTerm linguisticTerm = var.getLinguisticTerm(ltName);
          defuzzifiers.append("\t" + linguisticTerm.toStringFcl() + "\n");
        }
        defuzzifiers.append("\t" + var.getDefuzzifier().toStringFcl() + "\n");
        defuzzifiers.append("\tDEFAULT := " + (Double.isNaN(var.getDefaultValue()) ? "NC" : Double.toString(var.getDefaultValue())) + ";\n");
        var.estimateUniverse();
        defuzzifiers.append("\tRANGE := (" + var.getUniverseMin() + " .. " + var.getUniverseMax() + ");\n");
View Full Code Here

Examples of net.sourceforge.jFuzzyLogic.rule.RuleBlock.toStringFcl()

    for( Iterator<String> it = al.iterator(); it.hasNext(); ) {
      String ruleSetName = it.next();
      RuleBlock ruleBlock = getFuzzyRuleBlock(ruleSetName);

      // Convert ruleSet to string (using FLC?)
      ruleBlocksStr.append(ruleBlock.toStringFcl());
    }

    // Build the whole thing
    return "FUNCTION_BLOCK " + name + "\n\n" //
        + varsIn + "\n" //
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.