Class RuleEngine


  • public class RuleEngine
    extends java.lang.Object
    Evaluates the rules of a rule base. This method is thread safe on analyze calls, but not on modification calls.
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String evaluate​(Query query, int traceLevel)
      Evaluates a rule base over a query
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RuleEngine

        public RuleEngine​(RuleBase rules)
    • Method Detail

      • evaluate

        public java.lang.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)