@Deprecated public final class IlrBeforeTest extends IlrBinaryTemporalTest
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.
| 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. |
| 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. |
getFirstEvent, getLowerBound, getSecondEvent, getUpperBound, setFirstEvent, setLowerBound, setSecondEvent, setUpperBoundpublic IlrBeforeTest(IlrValue leftEvent, IlrValue rightEvent, IlrValue lowerBound, IlrValue upperBound)
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-eventget...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.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.IlrValue.isEvent(),
IlrValue.testBefore(ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue)public IlrBeforeTest(IlrValue leftEvent, IlrValue rightEvent)
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-eventnull. The objects given as the left- and
right-hand side events must be events; otherwise, the corresponding
get...Event methods will return null.leftEvent - The event on the left-hand side of the
before operator.rightEvent - The event on the right-hand side of the
before operator.IlrValue.isEvent(),
IlrValue.testBefore(ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue)public final IlrValue getLeftEvent()
IlrBinaryTemporalTestbefore test, or the second event in an
after test.
Returns null if the test was constructed with an object
which is not an event.getLeftEvent in class IlrBinaryTemporalTestpublic final void setLeftEvent(IlrValue leftEvent)
IlrBinaryTemporalTestbefore test, or the second event in an
after test.
The given object must be an event, otherwise the reader methods will
return null.setLeftEvent in class IlrBinaryTemporalTestleftEvent - The event on the left-hand side of the test.public final IlrValue getRightEvent()
IlrBinaryTemporalTestbefore test, or the first event in an
after test.
Returns null if the test was constructed with an object
which is not an event.getRightEvent in class IlrBinaryTemporalTestpublic final void setRightEvent(IlrValue rightEvent)
IlrBinaryTemporalTestbefore test, or the first event in an
after test.
The given object must be an event, otherwise the reader methods will
return null.setRightEvent in class IlrBinaryTemporalTestrightEvent - The event on the right-hand side of the operator.public java.lang.Object exploreTest(IlrFactoryExplorer explorer)
before test using a factory explorer and returns
an object as a result.explorer - The factory explorer.null if the method does not return a value.© Copyright IBM Corp. 1987, 2017