Rule Execution Server API

ilog.rules.factory
Class IlrTestValue

java.lang.Object
  extended by ilog.rules.factory.IlrValue
      extended by ilog.rules.factory.IlrTestValue
All Implemented Interfaces:
Serializable

public class IlrTestValue
extends IlrValue

This class provides the facility to build a test interpreted as a value. It represents the bridge between the test and the value hierarchies. The statement return (v == 2); is accepted in the IRL language.

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:
Serialized Form

Constructor Summary
IlrTestValue(IlrReflect reflect, IlrTest test)
          Constructs a test value from the given test, within the specified reflect.
 
Method Summary
 Object exploreValue(IlrFactoryExplorer explorer)
          Explores this test value using a factory explorer and returns an object as a result.
 IlrTest getTest()
          Returns the test encapsulated by the value.
 
Methods inherited from class ilog.rules.factory.IlrValue
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, isEventCondition, isNull, multiply, remainder, subtract, testAfter, testAfter, testBefore, testBefore, testEqual, testFalse, testGreaterOrEqual, testGreaterThan, testIn, testInstanceOf, testLessOrEqual, testLessThan, testNotEqual, testNotIn, testOccursin, testTrue, timeof, toNegative, toPositive, toPostfixDecr, toPostfixIncr, toPrefixDecr, toPrefixIncr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrTestValue

public IlrTestValue(IlrReflect reflect,
                    IlrTest test)
Constructs a test value from the given test, within the specified reflect.

Parameters:
reflect - The object model in which classes and class members used by this value are found.
test - The test encapsulated as a value by the built object.
Method Detail

getTest

public IlrTest getTest()
Returns the test encapsulated by the value.

Returns:
The test interpreted as a value.

exploreValue

public Object exploreValue(IlrFactoryExplorer explorer)
Explores this test value using a factory explorer and returns an object as a result.

Specified by:
exploreValue in class IlrValue
Parameters:
explorer - The factory explorer.
Returns:
An object which represents the result of the exploration, or null if the method does not return a value.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013