Class 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 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 evaluate
        traceLevel - 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)