|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.util.impl.ArithmeticFunctionToken
public class ArithmeticFunctionToken
This is class for arithmethic functions, like "log", for aggregation function evaluator.
Nested Class Summary | |
---|---|
protected static class |
ArithmeticFunctionToken.FunctionType
Function type |
Field Summary | |
---|---|
protected ArithmeticFunctionToken.FunctionType |
function
Function type |
protected PatternToken |
operand
Operand |
Constructor Summary | |
---|---|
ArithmeticFunctionToken(java.lang.String functionString,
PatternToken operand)
Currently, this class recognizes only the "log" function, which is "ln" in fact. |
Method Summary | |
---|---|
float |
evaluate(float[] subdistances)
Apply the arithmetic function on the argument evaluated on the passed subdistances. |
static boolean |
isFunctionString(java.lang.String functionString)
This static method should be in compliance with types recognized by consructor - LOG (for ln), LOG10 (for log_10). |
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 ArithmeticFunctionToken.FunctionType function
protected final PatternToken operand
Constructor Detail |
---|
public ArithmeticFunctionToken(java.lang.String functionString, PatternToken operand) throws java.lang.IllegalArgumentException
functionString
- string to be parsedoperand
- already created token
java.lang.IllegalArgumentException
Method Detail |
---|
public static boolean isFunctionString(java.lang.String functionString)
functionString
- string to check
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 |