|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.util.impl.ArithmeticOperatorToken
public class ArithmeticOperatorToken
Arithmetic operators like "+, -, *, /" for aggregation function evaluator.
Nested Class Summary | |
---|---|
protected static class |
ArithmeticOperatorToken.OperatorType
Operator type |
Field Summary | |
---|---|
protected PatternToken |
operand1
First operand |
protected PatternToken |
operand2
Second operand |
protected ArithmeticOperatorToken.OperatorType |
operator
Operator type |
Constructor Summary | |
---|---|
ArithmeticOperatorToken(PatternToken operand1,
java.lang.String operator,
PatternToken operand2)
Constructs the object given two already created operands and operator string: "+", "-", "*", "/". |
Method Summary | |
---|---|
float |
evaluate(float[] subdistances)
Evalutes the arithmetic operator on its operands given a specific subdistances for the two meta objects compared |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final PatternToken operand1
protected final ArithmeticOperatorToken.OperatorType operator
protected final PatternToken operand2
Constructor Detail |
---|
public ArithmeticOperatorToken(PatternToken operand1, java.lang.String operator, PatternToken operand2) throws java.lang.IllegalArgumentException
operand1
- first operandoperator
- operator function "+", "-", "*", "/".operand2
- second operand
java.lang.IllegalArgumentException
Method Detail |
---|
public final float evaluate(float[] subdistances)
evaluate
in interface PatternToken
subdistances
- specific subdistances for the two meta objects compared
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |