|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrBinaryOperator
This interface represents a binary arithmetic operation performed
by some classes of the rule factory API. A binary operation
takes two objects as input and returns an object as the result. The type
of the result is inferred from the types of the arguments. Internally
when an object of the factory API involving a binary operation is
created, a binary operator is determined and attached to that object.
The evaluate
method can be used to perform the binary
operation.
IlrBinaryValue
Field Summary | |
---|---|
static int |
ADD
This integer constant represents an addition. |
static int |
DIVIDE
This integer constant represents a division. |
static int |
MAX
This integer constant represents a maximum. |
static int |
MIN
This integer constant represents a minimum. |
static int |
MULTIPLY
This integer constant represents a multiplication. |
static int |
REMAINDER
This integer constant represents the remainder of a division. |
static int |
SUBTRACT
This integer constant represents a subtraction. |
Method Summary | |
---|---|
Object |
evaluate(Object arg1,
Object arg2)
Performs the binary operation. |
int |
getKind()
Gets the kind of the binary operation. |
Class |
getResultType()
Gets the result type of the binary operation. |
Field Detail |
---|
static final int ADD
static final int SUBTRACT
static final int MULTIPLY
static final int DIVIDE
static final int REMAINDER
static final int MAX
static final int MIN
Method Detail |
---|
Class getResultType()
null
.int getKind()
Object evaluate(Object arg1, Object arg2)
arg1
- The first argument of the operation.arg2
- The second argument of the operation.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |