Class PatternBuilder

    • Constructor Summary

      Constructors 
      Constructor Description
      PatternBuilder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attachAlphaNodes​(BuildContext context, BuildUtils utils, java.util.List<org.drools.base.rule.constraint.AlphaNodeFieldConstraint> alphaConstraints)  
      void build​(BuildContext context, BuildUtils utils, org.drools.base.rule.RuleConditionElement rce)
      Builds and attach if needed the given RuleConditionalElement
      protected void linkAlphaConstraint​(org.drools.base.rule.constraint.AlphaNodeFieldConstraint constraint, java.util.List<org.drools.base.rule.constraint.AlphaNodeFieldConstraint> alphaConstraints)  
      protected void linkBetaConstraint​(org.drools.base.rule.constraint.BetaNodeFieldConstraint constraint, java.util.List<org.drools.base.rule.constraint.BetaNodeFieldConstraint> betaConstraints)  
      boolean requiresLeftActivation​(BuildUtils utils, org.drools.base.rule.RuleConditionElement rce)
      A boolean function that indicates if the builder requires a previous left (tuple) activation in order to corretly build the given component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatternBuilder

        public PatternBuilder()
    • Method Detail

      • linkBetaConstraint

        protected void linkBetaConstraint​(org.drools.base.rule.constraint.BetaNodeFieldConstraint constraint,
                                          java.util.List<org.drools.base.rule.constraint.BetaNodeFieldConstraint> betaConstraints)
      • linkAlphaConstraint

        protected void linkAlphaConstraint​(org.drools.base.rule.constraint.AlphaNodeFieldConstraint constraint,
                                           java.util.List<org.drools.base.rule.constraint.AlphaNodeFieldConstraint> alphaConstraints)
      • attachAlphaNodes

        public void attachAlphaNodes​(BuildContext context,
                                     BuildUtils utils,
                                     java.util.List<org.drools.base.rule.constraint.AlphaNodeFieldConstraint> alphaConstraints)
                              throws org.drools.base.rule.InvalidPatternException
        Throws:
        org.drools.base.rule.InvalidPatternException
      • requiresLeftActivation

        public boolean requiresLeftActivation​(BuildUtils utils,
                                              org.drools.base.rule.RuleConditionElement rce)
        Description copied from interface: ReteooComponentBuilder
        A boolean function that indicates if the builder requires a previous left (tuple) activation in order to corretly build the given component. In other words, if it returns true and no previous TupleSource is already created, an InitialFact pattern must be added with appropriate left input adapter for the network to be correctly built. For instance, NOT / EXISTS / ACCUMULATE are examples of builders that must return true for this method, while PATTERN must return false.
        Specified by:
        requiresLeftActivation in interface ReteooComponentBuilder
        rce - the element to be built
        Returns:
        true if a tuple source is required, false otherwise.