Class TriLeftHandSide<A,​B,​C>

  • Type Parameters:
    A - generic type of the first resulting variable
    B - generic type of the second resulting variable
    C - generic type of the third resulting variable
    All Implemented Interfaces:
    Supplier<List<org.drools.model.view.ViewItem<?>>>

    public final class TriLeftHandSide<A,​B,​C>
    extends Object
    Represents the left hand side of a Drools rule, the result of which are three variables. For more, see UniLeftHandSide and BiLeftHandSide.
    • Constructor Detail

      • TriLeftHandSide

        protected TriLeftHandSide​(org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<A> patternVariableA,
                                  org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<B> patternVariableB,
                                  org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<C> patternVariableC,
                                  DroolsVariableFactory variableFactory)
    • Method Detail

      • getPatternVariableA

        protected org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<A> getPatternVariableA()
      • getPatternVariableB

        protected org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<B> getPatternVariableB()
      • getPatternVariableC

        protected org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<C> getPatternVariableC()
      • andTerminate

        public org.optaplanner.core.impl.score.stream.drools.common.AbstractTriConstraintConsequence<A,​B,​C> andTerminate()
      • andTerminate

        public org.optaplanner.core.impl.score.stream.drools.common.AbstractTriConstraintConsequence<A,​B,​C> andTerminate​(ToIntTriFunction<A,​B,​C> matchWeighter)
      • andTerminate

        public org.optaplanner.core.impl.score.stream.drools.common.AbstractTriConstraintConsequence<A,​B,​C> andTerminate​(ToLongTriFunction<A,​B,​C> matchWeighter)
      • andTerminate

        public org.optaplanner.core.impl.score.stream.drools.common.AbstractTriConstraintConsequence<A,​B,​C> andTerminate​(TriFunction<A,​B,​C,​BigDecimal> matchWeighter)
      • get

        public List<org.drools.model.view.ViewItem<?>> get()
      • getVariables

        public org.drools.model.Variable[] getVariables()
      • getConstraintType

        protected static org.drools.model.Index.ConstraintType getConstraintType​(JoinerType type)
      • joinViewItemsWithLogicalAnd

        protected static org.drools.model.view.ViewItem<?> joinViewItemsWithLogicalAnd​(org.optaplanner.core.impl.score.stream.drools.common.PatternVariable<?>... patternVariables)