Class BaseEvaluator

    • Constructor Detail

      • BaseEvaluator

        public BaseEvaluator()
    • Method Detail

      • getOperator

        public Operator getOperator()
        Description copied from interface: Evaluator
        Returns the operator representation object for this evaluator
        Specified by:
        getOperator in interface Evaluator
        Specified by:
        getOperator in interface org.kie.api.runtime.rule.Evaluator
      • getValueType

        public ValueType getValueType()
        Description copied from interface: Evaluator
        Returns the type of the values this evaluator operates upon.
        Specified by:
        getValueType in interface Evaluator
        Returns:
      • getCoercedValueType

        public ValueType getCoercedValueType()
        Description copied from interface: Evaluator
        Returns the value type this evaluator will coerce operands to, during evaluation. This is useful for operators like "memberOf", that always convert to Object when evaluating, independently of the source operand value type.
        Specified by:
        getCoercedValueType in interface Evaluator
        Returns:
      • isTemporal

        public boolean isTemporal()
        Description copied from interface: Evaluator
        Returns true if this evaluator implements a temporal evaluation, i.e., a time sensitive evaluation whose properties of matching only events within an specific time interval can be used for determining event expirations automatically.
        Specified by:
        isTemporal in interface Evaluator
        Specified by:
        isTemporal in interface org.kie.api.runtime.rule.Evaluator
        Returns:
        true if the evaluator is a temporal evaluator.
      • getInterval

        public Interval getInterval()
        Description copied from interface: Evaluator
        In case this is a temporal evaluator, returns the interval in which this evaluator may match the target fact
        Specified by:
        getInterval in interface Evaluator
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object