Package org.drools.analytics.components

Examples of org.drools.analytics.components.RulePossibility


    PatternPossibility pp1 = new PatternPossibility();
    pp1.setRuleName(ruleName1);
    PatternPossibility pp2 = new PatternPossibility();
    pp2.setRuleName(ruleName1);

    RulePossibility rp1 = new RulePossibility();
    rp1.setRuleName(ruleName1);
    rp1.add(pp1);
    rp1.add(pp2);

    PatternPossibility pp3 = new PatternPossibility();
    pp3.setRuleName(ruleName2);

    RulePossibility rp2 = new RulePossibility();
    rp2.setRuleName(ruleName2);
    rp2.add(pp3);

    Redundancy redundancy1 = new Redundancy(pp1, pp3);

    PartialRedundancy pr1 = new PartialRedundancy(rp1, rp2, redundancy1);
    PartialRedundancy pr2 = new PartialRedundancy(rp2, rp1, redundancy1);
View Full Code Here


    }
  }

  private void createRulePossibilities() {
    for (Set<AnalyticsComponent> list : ruleSolver.getPossibilityLists()) {
      RulePossibility possibility = new RulePossibility();

      possibility.setRuleId(ruleSolver.getRule().getId());
      possibility.setRuleName(ruleSolver.getRule().getRuleName());

      for (AnalyticsComponent descr : list) {
        PatternPossibility patternPossibility = (PatternPossibility) descr;
        possibility.add(patternPossibility);
      }

      rulePossibilities.add(possibility);
    }
  }
View Full Code Here

    PatternPossibility pp1 = new PatternPossibility();
    pp1.setRuleName(ruleName1);
    PatternPossibility pp2 = new PatternPossibility();
    pp2.setRuleName(ruleName2);

    RulePossibility rp1 = new RulePossibility();
    rp1.setRuleId(r1.getId());
    rp1.setRuleName(ruleName1);
    rp1.add(pp1);

    RulePossibility rp2 = new RulePossibility();
    rp2.setRuleId(r2.getId());
    rp2.setRuleName(ruleName2);
    rp2.add(pp2);

    Redundancy redundancy1 = new Redundancy(pp1, pp2);
    Redundancy redundancy2 = new Redundancy(r1, r2);

    data.add(r1);
View Full Code Here

TOP

Related Classes of org.drools.analytics.components.RulePossibility

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.