ilog.rules.factory

Class IlrBeforeTest

  • All Implemented Interfaces:
    ilog.rules.factory.IlrSourceElement, IlrTest, java.io.Serializable

    Deprecated. 
    As of IBM Decision Server 7.5, event processing is deprecated.

    @Deprecated
    public final class IlrBeforeTest
    extends IlrBinaryTemporalTest
    This class represents binary temporal tests corresponding to the before construct of the rule 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

      Constructors 
      Constructor and Description
      IlrBeforeTest(IlrValue leftEvent, IlrValue rightEvent)
      Deprecated. 
      Constructs a before test, testing whether an event occurs before another.
      IlrBeforeTest(IlrValue leftEvent, IlrValue rightEvent, IlrValue lowerBound, IlrValue upperBound)
      Deprecated. 
      Constructs a before test, testing whether an event occurs before another in a given time window.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object exploreTest(IlrFactoryExplorer explorer)
      Deprecated. 
      Explores this before test using a factory explorer and returns an object as a result.
      IlrValue getLeftEvent()
      Deprecated. 
      Returns the event on the left-hand side of the operator, that is, the first event in a before test, or the second event in an after test.
      IlrValue getRightEvent()
      Deprecated. 
      Returns the event on the right-hand side of the operator, that is, the second event in a before test, or the first event in an after test.
      void setLeftEvent(IlrValue leftEvent)
      Deprecated. 
      Sets the event on the left-hand side of the operator, that is, the first event in a before test, or the second event in an after test.
      void setRightEvent(IlrValue rightEvent)
      Deprecated. 
      Sets the event on the right-hand side of the operator, that is, the second event in a before test, or the first event in an after test.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrBeforeTest

        public IlrBeforeTest(IlrValue leftEvent,
                     IlrValue rightEvent,
                     IlrValue lowerBound,
                     IlrValue upperBound)
        Deprecated. 
        Constructs a before test, testing whether an event occurs before another in a given time window. The constructed test corresponds to the following construct of the rule language:
        left-event before[lower-bound, upper-bound] right-event
        The test will be satisfied if the difference between the occurrence time of the right-hand side event and that of the left-hand side event falls within the bounds, inclusive. The objects given as the left- and right-hand side events must be events; otherwise, the corresponding get...Event methods will return null. If either bound evaluates to null, this means that there is no minimal or maximal limit to the occurrence time difference.
        Parameters:
        leftEvent - The event on the left-hand side of the before operator.
        rightEvent - The event on the right-hand side of the before operator.
        lowerBound - The minimal delay between the event occurrence times, inclusive, or an IlrValue evaluating to null for minus infinity.
        upperBound - The maximal delay between the event occurrence times, inclusive, or an IlrValue evaluating to null for plus infinity.
        See Also:
        IlrValue.isEvent(), IlrValue.testBefore(ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue)
      • IlrBeforeTest

        public IlrBeforeTest(IlrValue leftEvent,
                     IlrValue rightEvent)
        Deprecated. 
        Constructs a before test, testing whether an event occurs before another. The constructed test corresponds to the following construct of the rule language:
        left-event before right-event
        The test will be satisfied if the difference between the occurrence time of the right-hand side event and that of the left-hand side event is positive or null. The objects given as the left- and right-hand side events must be events; otherwise, the corresponding get...Event methods will return null.
        Parameters:
        leftEvent - The event on the left-hand side of the before operator.
        rightEvent - The event on the right-hand side of the before operator.
        See Also:
        IlrValue.isEvent(), IlrValue.testBefore(ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue)
    • Method Detail

      • getLeftEvent

        public final IlrValue getLeftEvent()
        Deprecated. 
        Description copied from class: IlrBinaryTemporalTest
        Returns the event on the left-hand side of the operator, that is, the first event in a before test, or the second event in an after test. Returns null if the test was constructed with an object which is not an event.
        Specified by:
        getLeftEvent in class IlrBinaryTemporalTest
        Returns:
        The event on the left-hand side of the operator.
      • setLeftEvent

        public final void setLeftEvent(IlrValue leftEvent)
        Deprecated. 
        Description copied from class: IlrBinaryTemporalTest
        Sets the event on the left-hand side of the operator, that is, the first event in a before test, or the second event in an after test. The given object must be an event, otherwise the reader methods will return null.
        Specified by:
        setLeftEvent in class IlrBinaryTemporalTest
        Parameters:
        leftEvent - The event on the left-hand side of the test.
      • getRightEvent

        public final IlrValue getRightEvent()
        Deprecated. 
        Description copied from class: IlrBinaryTemporalTest
        Returns the event on the right-hand side of the operator, that is, the second event in a before test, or the first event in an after test. Returns null if the test was constructed with an object which is not an event.
        Specified by:
        getRightEvent in class IlrBinaryTemporalTest
        Returns:
        The event on the right-hand side of the operator.
      • setRightEvent

        public final void setRightEvent(IlrValue rightEvent)
        Deprecated. 
        Description copied from class: IlrBinaryTemporalTest
        Sets the event on the right-hand side of the operator, that is, the second event in a before test, or the first event in an after test. The given object must be an event, otherwise the reader methods will return null.
        Specified by:
        setRightEvent in class IlrBinaryTemporalTest
        Parameters:
        rightEvent - The event on the right-hand side of the operator.
      • exploreTest

        public java.lang.Object exploreTest(IlrFactoryExplorer explorer)
        Deprecated. 
        Explores this before test using a factory explorer and returns an object as a result.
        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