|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.query.ConstantQuery
public class ConstantQuery
A Query that always returns a constant numeric value.
Field Summary | |
---|---|
private float |
val
|
Constructor Summary | |
---|---|
ConstantQuery(float val)
Creates a ConstantQuery that returns the specified val on execution. |
Method Summary | |
---|---|
float |
execute(anl.aida.core.ScoredTermsCollection stc)
Executes this query on the specified ScoredTermsCollection
and returns a numeric value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float val
Constructor Detail |
---|
public ConstantQuery(float val)
val
- the constant value to returnMethod Detail |
---|
public float execute(anl.aida.core.ScoredTermsCollection stc)
Query
ScoredTermsCollection
and returns a numeric value.
execute
in interface Query
stc
- the collection to execute against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |