Rule Execution Server API

ilog.rules.factory
Class IlrTestCondition

java.lang.Object
  extended by ilog.rules.factory.IlrCondition
      extended by ilog.rules.factory.IlrTestCondition
All Implemented Interfaces:
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
 void addBinding(IlrVariable variable)
          Adds a variable binding to this condition.
 void addTest(IlrTest test)
          Adds a test to this condition.
 Enumeration enumerateBindings()
          Gets an enumeration to visit all the variable bindings of this condition.
 Enumeration enumerateTests()
          Gets an enumeration to visit all the tests of this condition.
 int getBindingCount()
          Gets the number of variable bindings.
 IlrVariable[] getBindings()
          Gets the variables bound in this condition.
 int getTestCount()
          Gets the number of tests.
 IlrTest[] getTests()
          Gets the tests of this condition.
 void removeBinding(IlrVariable variable)
          Removes a variable binding from the bindings of this condition.
 void removeTest(IlrTest test)
          Removes a test from this condition.
 
Methods inherited from class ilog.rules.factory.IlrCondition
exploreCondition, getClassName, getObject, getShortClassName, getXOMClassScope, isEventCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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 Enumeration enumerateTests()
Gets an enumeration to visit all the tests of this condition.

Returns:
An enumeration of the tests.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013