|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrValue
public abstract class IlrValue
This abstract class represents a value of the rule language. Any expression in the rule language is a value.
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.
Method Summary | |
---|---|
IlrBinaryValue |
add(IlrValue value)
Creates a value to represent the expression this + value . |
IlrBinaryValue |
divide(IlrValue value)
Creates a value to represent the expression this / value . |
abstract Object |
exploreValue(IlrFactoryExplorer explorer)
Explores this value using a factory explorer and returns an object to represent the result of the exploration. |
IlrFieldValue |
getField(String fieldName)
Creates a value to represent a field value of this object. |
IlrReflect |
getReflect()
Gets the reflect object of this value. |
Class |
getType()
Deprecated. Replaced by getXOMType() |
IlrType |
getXOMType()
Gets the class type of this value. |
IlrMethodInvocation |
invokeEquals(IlrValue arg)
Creates an IlrMethodInvocation object representing the
invocation of the equals method on this value. |
boolean |
isConstant()
Tests whether this value is a constant value, that is, an instance of the subclass IlrConstantValue . |
boolean |
isEvent()
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
boolean |
isEventCondition()
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
boolean |
isNull()
Tests whether this value represents the null object. |
IlrBinaryValue |
multiply(IlrValue value)
Creates a value to represent the expression this * value . |
IlrBinaryValue |
remainder(IlrValue value)
Creates a value to represent the expression this % value . |
IlrBinaryValue |
subtract(IlrValue value)
Creates a value to represent the expression this - value . |
IlrAfterTest |
testAfter(IlrValue otherEvent)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
IlrAfterTest |
testAfter(IlrValue otherEvent,
IlrValue lowerBound,
IlrValue upperBound)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
IlrBeforeTest |
testBefore(IlrValue otherEvent)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
IlrBeforeTest |
testBefore(IlrValue otherEvent,
IlrValue lowerBound,
IlrValue upperBound)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
IlrBinaryTest |
testEqual(IlrValue arg)
Creates a test to represent this value tested to be equal to the value passed as the argument. |
IlrNotTest |
testFalse()
Creates a test to represent this value tested to be false . |
IlrBinaryTest |
testGreaterOrEqual(IlrValue arg)
Creates a test to represent this value tested to be greater than or equal to the value passed as the argument. |
IlrBinaryTest |
testGreaterThan(IlrValue arg)
Creates a test to represent this value tested to be greater than the value passed as the argument. |
IlrBinaryTest |
testIn(IlrValue arg)
Creates a test to represent this value tested to be contained in the value passed as the argument. |
IlrInstanceOfTest |
testInstanceOf(IlrClassTypeValue arg)
Creates a test to represent this value tested to be an instance of the value passed as the argument. |
IlrBinaryTest |
testLessOrEqual(IlrValue arg)
Creates a test to represent this value tested to be less than or equal to the value passed as the argument. |
IlrBinaryTest |
testLessThan(IlrValue arg)
Creates a test to represent this value tested to be less than the value passed as the argument. |
IlrBinaryTest |
testNotEqual(IlrValue arg)
Creates a test to represent this value tested to be not equal to the value passed as the argument. |
IlrBinaryTest |
testNotIn(IlrValue arg)
Creates a test to represent this value tested to be not contained in the value passed as the argument. |
IlrOccursinTest |
testOccursin(IlrValue lowerBound,
IlrValue upperBound)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
IlrUnaryTest |
testTrue()
Creates a test to represent this value tested to be true . |
IlrEventTimeValue |
timeof()
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
IlrUnaryValue |
toNegative()
Creates a value to represent the expression -this . |
IlrUnaryValue |
toPositive()
Creates a value to represent the expression +this . |
IlrUnaryValue |
toPostfixDecr()
Creates a value to represent the expression this-- . |
IlrUnaryValue |
toPostfixIncr()
Creates a value to represent the expression this++ . |
IlrUnaryValue |
toPrefixDecr()
Creates a value to represent the expression --this . |
IlrUnaryValue |
toPrefixIncr()
Creates a value to represent the expression ++this . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final IlrReflect getReflect()
public final boolean isConstant()
IlrConstantValue
.
true
if this value is constant. Otherwise,
it returns false
.public final boolean isNull()
null
object.
The value null
is represented by the constant object
IlrFactoryConstants.NULL
, so this method checks the
equality to this constant object.
true
if this value is null
.
Otherwise, it returns false
.public final IlrFieldValue getField(String fieldName)
fieldName
- The name of the field.
public final IlrMethodInvocation invokeEquals(IlrValue arg)
IlrMethodInvocation
object representing the
invocation of the equals
method on this value.
arg
- The argument of the equals
method.
public final IlrUnaryValue toPositive()
+this
.
This operation does not change the value, but creates another value
to represent the + this
expression.
public final IlrUnaryValue toNegative()
-this
.
public final IlrUnaryValue toPrefixIncr()
++this
.
public final IlrUnaryValue toPrefixDecr()
--this
.
public final IlrUnaryValue toPostfixIncr()
this++
.
public final IlrUnaryValue toPostfixDecr()
this--
.
public final IlrBinaryValue add(IlrValue value)
this + value
.
value
- The second value.
public final IlrBinaryValue subtract(IlrValue value)
this - value
.
value
- The second value.
public final IlrBinaryValue multiply(IlrValue value)
this * value
.
value
- The second value.
public final IlrBinaryValue divide(IlrValue value)
this / value
.
value
- The second value.
public final IlrBinaryValue remainder(IlrValue value)
this % value
.
value
- The second value.
public boolean isEventCondition()
true
if this value is, or is bound to, the result of
an event condition, and false
otherwise.public final boolean isEvent()
true
if this value is an event, and
false
otherwise.public final IlrEventTimeValue timeof()
timeof(this)
.
It returns null
if this value is not an event.
timeof
expression, when allowed; and
null
otherwise.public final IlrOccursinTest testOccursin(IlrValue lowerBound, IlrValue upperBound)
occursin
test, testing that the event
corresponding to this value has occurred in the given time interval.
It returns null
if this value is not an event.
lowerBound
- The minimal value for the event occurrence time,
inclusive, for the test to be satisfied. An IlrValue
evaluating to null
means that there is no minimum and is
thus equivalent to minus infinity.upperBound
- The maximal value for the event occurrence time,
inclusive, for the test to be satisfied. An IlrValue
evaluating to null
means that there is no maximum and is
thus equivalent to plus infinity.
occursin
test, when allowed; and
null
otherwise.public final IlrBeforeTest testBefore(IlrValue otherEvent, IlrValue lowerBound, IlrValue upperBound)
before
test, testing that the events
corresponding to this value and the given other value have occurred with a
delay included in the given time interval. Returns null
if
this value, or the other given value, is not an event.
otherEvent
- The value corresponding to the event occurring after
this one.lowerBound
- The minimal delay between the event occurrence times,
inclusive, for the test to be satisfied. An IlrValue
evaluating to null
means that there is no minimum and is
thus equivalent to minus infinity.upperBound
- The maximal delay between the event occurrence times,
inclusive, for the test to be satisfied. An IlrValue
evaluating to null
means that there is no maximum and is
thus equivalent to plus infinity.
before
test, when allowed; and
null
otherwise.public final IlrBeforeTest testBefore(IlrValue otherEvent)
before
test, testing that the event corresponding
to this value has occurred before the event corresponding to the given
other value. It returns null
if this value, or the other given
value, is not an event.
otherEvent
- The value corresponding to the event occurring after
this one.
before
test, when allowed; and
null
otherwise.public final IlrAfterTest testAfter(IlrValue otherEvent, IlrValue lowerBound, IlrValue upperBound)
after
test, testing that the events
corresponding to this value and the given other value have occurred with a
delay included in the given time interval. It returns null
if
this value, or the other given value, is not an event.
otherEvent
- The value corresponding to the event occurring before
this one.lowerBound
- The minimal delay between the event occurrence times,
inclusive, for the test to be satisfied. An IlrValue
evaluating to null
means that there is no minimum and is
thus equivalent to minus infinity.upperBound
- The maximal delay between the event occurrence times,
inclusive, for the test to be satisfied. An IlrValue
evaluating to null
means that there is no maximum and is
thus equivalent to plus infinity.
after
test, when allowed; and
null
otherwise.public final IlrAfterTest testAfter(IlrValue otherEvent)
after
test, testing that the event corresponding
to this value has occurred after the event corresponding to the given
other value. It returns null
if this value, or the other given
value, is not an event.
otherEvent
- The value corresponding to the event occurring before
this one.
after
test, when allowed; and
null
otherwise.public final IlrUnaryTest testTrue()
true
.
public final IlrNotTest testFalse()
false
.
not
test.public final IlrBinaryTest testEqual(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrBinaryTest testNotEqual(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrBinaryTest testGreaterThan(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrBinaryTest testGreaterOrEqual(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrBinaryTest testLessThan(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrBinaryTest testLessOrEqual(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrInstanceOfTest testInstanceOf(IlrClassTypeValue arg)
arg
- A class type value.
public final IlrBinaryTest testIn(IlrValue arg)
arg
- The second argument of the binary test.
public final IlrBinaryTest testNotIn(IlrValue arg)
arg
- The second argument of the binary test.
public final Class getType()
getXOMType()
null
, it means that this value is not
well formed, and the type of the value cannot be inferred.
null
if
this value is not well formed.public final IlrType getXOMType()
null
, it means that this value is not
well formed, and the type of the value cannot be inferred.
null
if
this value is not well formed.public abstract Object exploreValue(IlrFactoryExplorer explorer)
exploreValue
methods
of the factory explorer according to the concrete type of this
value. In cases of expressions, it invokes one of the
exploreExpression
methods of the explorer.
explorer
- The factory explorer used to explore
this value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |