Rule Execution Server API

ilog.rules.factory
Class IlrIntervalValue

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

public class IlrIntervalValue
extends IlrValue

This class implements a value that models an interval of Number.

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

Constructor Summary
IlrIntervalValue(IlrReflect reflect, IlrValue left, IlrValue right, boolean leftopen, boolean rightopen)
          Creates a value modelling an interval of Number.
 
Method Summary
 Object exploreValue(IlrFactoryExplorer explorer)
          Explores this interval value using a factory explorer and returns an object as a result.
 boolean getLeftOpen()
          Returns a boolean indicating whether the left limit is excluded from the interval or not.
 IlrValue getLeftValue()
          Returns the value representing the left limit of the interval.
 boolean getRightOpen()
          Returns a boolean indicating whether the right limit is excluded from the interval or not.
 IlrValue getRightValue()
          Returns the value representing the right limit of the interval.
 
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

IlrIntervalValue

public IlrIntervalValue(IlrReflect reflect,
                        IlrValue left,
                        IlrValue right,
                        boolean leftopen,
                        boolean rightopen)
Creates a value modelling an interval of Number. The limits are modelled by IlrValue objects.

Parameters:
reflect - A reflect.
left - The left value.
right - The right value.
leftopen - A boolean that tells whether the left limit is included or excluded from the interval.
rightopen - A boolean that tells whether the right limit is included or excluded from the interval.
Method Detail

getLeftOpen

public boolean getLeftOpen()
Returns a boolean indicating whether the left limit is excluded from the interval or not.

Returns:
true if the left limit is excluded from the interval.

getRightOpen

public boolean getRightOpen()
Returns a boolean indicating whether the right limit is excluded from the interval or not.

Returns:
true if the right limit is excluded from the interval.

getLeftValue

public IlrValue getLeftValue()
Returns the value representing the left limit of the interval.

Returns:
The value given as the left bound of the interval.

getRightValue

public IlrValue getRightValue()
Returns the value representing the right limit of the interval.

Returns:
The value given as the right bound of the interval.

exploreValue

public Object exploreValue(IlrFactoryExplorer explorer)
Explores this interval 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