Examples of RuleBlock


Examples of net.sourceforge.jFuzzyLogic.rule.RuleBlock

    ArrayList<String> al = new ArrayList<String>(ruleBlocks.keySet());
    Collections.sort(al);
    StringBuffer ruleBlocksStr = new StringBuffer();
    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

Examples of net.sourceforge.jFuzzyLogic.rule.RuleBlock

   * @param fis
   */
  void checkDeMorgan(FIS fis) {
    // De Morgan's laws test
    FunctionBlock fb = fis.getFunctionBlock(null);
    RuleBlock rb = fb.getRuleBlocks().values().iterator().next();
    List<Rule> rules = rb.getRules();
    Rule r1 = rules.get(0);
    Rule r2 = rules.get(1);
    Rule r3 = rules.get(2);
    Rule r4 = rules.get(3);

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.