ilog.rules.factory
Class IlrTestCondition
- java.lang.Object
-
- ilog.rules.factory.IlrCondition
-
- ilog.rules.factory.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 Summary
Methods Modifier and Type Method and Description voidaddBinding(IlrVariable variable)Adds a variable binding to this condition.voidaddTest(IlrTest test)Adds a test to this condition.java.util.EnumerationenumerateBindings()Gets an enumeration to visit all the variable bindings of this condition.java.util.EnumerationenumerateTests()Gets an enumeration to visit all the tests of this condition.intgetBindingCount()Gets the number of variable bindings.IlrVariable[]getBindings()Gets the variables bound in this condition.intgetTestCount()Gets the number of tests.IlrTest[]getTests()Gets the tests of this condition.voidremoveBinding(IlrVariable variable)Removes a variable binding from the bindings of this condition.voidremoveTest(IlrTest test)Removes a test from this condition.-
Methods inherited from class ilog.rules.factory.IlrCondition
exploreCondition, getClassName, getObject, getShortClassName, getXOMClassScope, isEventCondition
-
-
-
-
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.
-
-