Interface PatternFilter

  • All Superinterfaces:, XMLizable
    All Known Implementing Classes:
    DummyPatternFilter, TotalCostPatternFilter

    public interface PatternFilter
    extends XMLizable
    A Pattern Filter is a set of logic that eliminates matched patterns that do not satisfy the conditions set out in a Pattern Filter. PatternFilter interface contains the methods common to all pattern filters. This interface extends the XMLizable interface. All the pattern filters should implement this interface.
    • Field Detail


        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • evaluate

        boolean evaluate(LineItemSet input,
                         PromotionContext context)
        This method checks if the LineItemSet passed as input satisfies the condition specified in the filter.
        input - LineItemSet
        context - PromotionContext
        boolean true if condition satisfied; false otherwise