ilog.rules.factory

Class IlrIntervalValue

  • All Implemented Interfaces:
    java.io.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 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 java.lang.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.

© Copyright IBM Corp. 1987, 2017