Package org.drools.analytics.components

Examples of org.drools.analytics.components.Pattern


   * descr && descr2 && descr3 && descr5<br>
   * or<br>
   * descr && descr2 && descr4 && descr5<br>
   */
  public void testAddOrAndOrDescr() {
    Pattern pattern = new Pattern();

    LiteralRestriction literalRestriction = new LiteralRestriction();
    LiteralRestriction literalRestriction2 = new LiteralRestriction();
    LiteralRestriction literalRestriction3 = new LiteralRestriction();
    LiteralRestriction literalRestriction4 = new LiteralRestriction();
View Full Code Here


    session.setGlobal("result", analysisResult);

    String ruleName1 = "Rule 1";
    String ruleName2 = "Rule 2";

    Pattern p1 = new Pattern();
    p1.setRuleName(ruleName1);
    Pattern p2 = new Pattern();
    p2.setRuleName(ruleName2);

    LiteralRestriction lr1 = new LiteralRestriction();
    lr1.setRuleName(ruleName1);
    LiteralRestriction lr2 = new LiteralRestriction();
    lr2.setRuleName(ruleName2);

    PatternPossibility pp1 = new PatternPossibility();
    pp1.setPatternId(p1.getId());
    pp1.setRuleName(ruleName1);
    pp1.add(lr1);

    PatternPossibility pp2 = new PatternPossibility();
    pp2.setPatternId(p2.getId());
    pp2.setRuleName(ruleName2);
    pp2.add(lr2);

    Redundancy r1 = new Redundancy(lr1, lr2);
    Redundancy r2 = new Redundancy(p1, p2);
View Full Code Here

TOP

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

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.