Class RuleEngine
- java.lang.Object
-
- com.yahoo.prelude.semantics.engine.RuleEngine
-
public class RuleEngine extends Object
Evaluates the rules of a rule base. This method is thread safe on analyze calls, but not on modification calls.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description RuleEngine(RuleBase rules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
evaluate(Query query, int traceLevel)
Evaluates a rule base over a query
-
-
-
Constructor Detail
-
RuleEngine
public RuleEngine(RuleBase rules)
-
-
Method Detail
-
evaluate
public String evaluate(Query query, int traceLevel)
Evaluates a rule base over a query- Parameters:
query
- the query to evaluatetraceLevel
- the level of tracing to do- Returns:
- the error caused by analyzing the query, or null if there was no error If there is an error, this query is destroyed (unusable)
-
-