|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.util.impl.ConstantToken
public class ConstantToken
Simple float constant token for the aggragation function evaluator.
Constructor Summary | |
---|---|
ConstantToken(java.lang.String constantString)
Constructs this object given a string which must be interpreted as a flost number. |
Method Summary | |
---|---|
float |
evaluate(float[] subdistances)
Return the constant |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantToken(java.lang.String constantString) throws java.lang.IllegalArgumentException
constantString
- the float string
java.lang.IllegalArgumentException
Method Detail |
---|
public final float evaluate(float[] subdistances)
evaluate
in interface PatternToken
subdistances
- distnaces that are ignored by the constant.
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 |