|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.rules.factory.IlrBaseTest
ilog.rules.factory.IlrBinaryTemporalTest
ilog.rules.factory.IlrAfterTest
public final class IlrAfterTest
This class represents binary temporal tests corresponding to the
after construct of the rule language.
Warning: Serialized objects of this class will not be compatible with future JRules releases. The current serialization support is appropriate for short-term storage or RMI between applications running the same version of JRules.
| Constructor Summary | |
|---|---|
IlrAfterTest(IlrValue leftEvent,
IlrValue rightEvent)
Constructs an after test, testing whether an event occurs
before another. |
|
IlrAfterTest(IlrValue leftEvent,
IlrValue rightEvent,
IlrValue lowerBound,
IlrValue upperBound)
Constructs an after test, testing whether an event occurs
before another in a given time window. |
|
| Method Summary | |
|---|---|
Object |
exploreTest(IlrFactoryExplorer explorer)
Explores this after test using a factory explorer and returns
an object as a result. |
IlrValue |
getLeftEvent()
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()
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)
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)
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 ilog.rules.factory.IlrBinaryTemporalTest |
|---|
getFirstEvent, getLowerBound, getSecondEvent, getUpperBound, setFirstEvent, setLowerBound, setSecondEvent, setUpperBound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlrAfterTest(IlrValue leftEvent,
IlrValue rightEvent,
IlrValue lowerBound,
IlrValue upperBound)
after 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 after[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
after operator.rightEvent - The event on the right-hand side of the
after 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.testAfter(ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue)
public IlrAfterTest(IlrValue leftEvent,
IlrValue rightEvent)
after test, testing whether an event occurs
before another. The constructed test corresponds
to the following construct of the rule language:
left-event after 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
after operator.rightEvent - The event on the right-hand side of the
after operator.IlrValue.isEvent(),
IlrValue.testAfter(ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue, ilog.rules.factory.IlrValue)| Method Detail |
|---|
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 Object exploreTest(IlrFactoryExplorer explorer)
after 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.
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||