org.egothor.query.runner.enhanced
Class OrRunner

java.lang.Object
  extended by org.egothor.core.query.Runner
      extended by org.egothor.query.runner.OrRunner
          extended by org.egothor.query.runner.enhanced.OrRunner

public class OrRunner
extends OrRunner

This object represents a binary form of a OR b formula. This Runner is used when a user wishes to query for documents containing one word or another. For example, the user might wish to query for documents containing BASS or GUITAR. The form of this query would be given as:

BASS||GUITAR.

Author:
Leo Galambos

Field Summary
 
Fields inherited from class org.egothor.query.runner.OrRunner
a, b
 
Constructor Summary
OrRunner(int model, Runner a, Runner b)
          Constructor for the OrRunner object
 
Method Summary
 int evaluate(long uid)
          Return the calculated similarity.
 
Methods inherited from class org.egothor.query.runner.OrRunner
invalidReason, terms
 
Methods inherited from class org.egothor.core.query.Runner
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrRunner

public OrRunner(int model,
                Runner a,
                Runner b)
Constructor for the OrRunner object

Parameters:
model - Description of the Parameter
a - the Runner for the first query
b - the Runner for the second query
Method Detail

evaluate

public int evaluate(long uid)
Return the calculated similarity. Returns 0 iff both arguments of formula returns non-positive similarities.

Overrides:
evaluate in class OrRunner
Parameters:
uid - the unique ID of the document to check
Returns:
the similarity