|
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 ilog.rules.factory.IlrBinaryValue
public class IlrBinaryValue
This class represents a binary arithmetic expression of the rule language.
The field kind
specifies the kind of operation involved
to compute the binary value, its possible values are defined in the
interface IlrBinaryOperator
. The binary operation
itself is performed by an IlrBinaryOperator
. An instance
of this class determines its binary operator using the types of the
arguments and the kind. If a binary operator can not be determined,
the binary operation is not a valid expression.
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 Summary | |
---|---|
IlrBinaryValue(int kind,
IlrValue first,
IlrValue second)
Constructs a binary expression from two values. |
Method Summary | |
---|---|
Object |
exploreValue(IlrFactoryExplorer explorer)
Explores this binary value using a factory explorer and returns an object as a result. |
IlrValue |
getFirstArgument()
Gets the first argument of this expression. |
int |
getKind()
Gets the kind of the expression. |
IlrBinaryOperator |
getOperator()
Gets the binary operator that is used to compute the binary value. |
IlrValue |
getSecondArgument()
Gets the second argument of this expression. |
void |
setFirstArgument(IlrValue first)
Changes the first argument of this expression. |
void |
setKind(int kind)
Sets the kind of this expression. |
void |
setSecondArgument(IlrValue second)
Changes the second argument of this expression. |
Methods inherited from class ilog.rules.factory.IlrValue |
---|
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, isEventCondition, isNull, multiply, remainder, subtract, testAfter, testAfter, testBefore, testBefore, testEqual, testFalse, testGreaterOrEqual, testGreaterThan, testIn, testInstanceOf, testLessOrEqual, testLessThan, testNotEqual, testNotIn, testOccursin, testTrue, timeof, toNegative, toPositive, toPostfixDecr, toPostfixIncr, toPrefixDecr, toPrefixIncr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrBinaryValue(int kind, IlrValue first, IlrValue second)
kind
- The type of the binary operation as defined
in IlrBinaryOperator
.first
- The first argument value.second
- The second argument value.Method Detail |
---|
public int getKind()
IlrBinaryOperator
.
public void setKind(int kind)
IlrBinaryOperator
.
kind
- The kind of this expression.public IlrValue getFirstArgument()
public void setFirstArgument(IlrValue first)
first
- The first argument of this expression.public IlrValue getSecondArgument()
public void setSecondArgument(IlrValue second)
second
- The second argument of this expression.public IlrBinaryOperator getOperator()
null
if the binary
value is not valid.public Object exploreValue(IlrFactoryExplorer explorer)
exploreValue
in class IlrValue
explorer
- The factory explorer.
null
if the method does not return a value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |