ilog.rules.factory

Class IlrTestCondition

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    IlrClassCondition, IlrEvaluateCondition


    public abstract class IlrTestCondition
    extends IlrCondition
    This abstract class defines tests and bindings for non-temporal rule conditions.

    Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.

    See Also:
    IlrEvaluateCondition, IlrClassCondition, Serialized Form
    • Method Detail

      • addBinding

        public final void addBinding(IlrVariable variable)
        Adds a variable binding to this condition.
        Parameters:
        variable - The variable binding to be added.
      • removeBinding

        public final void removeBinding(IlrVariable variable)
        Removes a variable binding from the bindings of this condition.
        Parameters:
        variable - The variable binding to be removed.
      • getBindingCount

        public final int getBindingCount()
        Gets the number of variable bindings.
        Returns:
        The number of variable bindings.
      • getBindings

        public final IlrVariable[] getBindings()
        Gets the variables bound in this condition.
        Returns:
        An array of variables.
      • enumerateBindings

        public final java.util.Enumeration enumerateBindings()
        Gets an enumeration to visit all the variable bindings of this condition.
        Returns:
        An enumeration of the variable bindings.
      • addTest

        public final void addTest(IlrTest test)
        Adds a test to this condition.
        Parameters:
        test - The test to be added.
      • removeTest

        public final void removeTest(IlrTest test)
        Removes a test from this condition.
        Parameters:
        test - The test to be removed.
      • getTestCount

        public final int getTestCount()
        Gets the number of tests.
        Returns:
        The number of tests.
      • getTests

        public final IlrTest[] getTests()
        Gets the tests of this condition.
        Returns:
        The tests of this condition.
      • enumerateTests

        public final java.util.Enumeration enumerateTests()
        Gets an enumeration to visit all the tests of this condition.
        Returns:
        An enumeration of the tests.

© Copyright IBM Corp. 1987, 2020