|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.rules.compiler.CompiledRule
public class CompiledRule
A compiled rule.
| Constructor Summary | |
|---|---|
CompiledRule(List<RuleElement> elements,
IPredicate headPredicate,
Configuration configuration)
Constructor. |
|
| Method Summary | |
|---|---|
IRelation |
evaluate()
Evaluate the rule. |
IRelation |
evaluateIteratively(IFacts deltas)
Evaluate the rule using deltas (see semi-naive evaluation) to more intelligently seek out tuples that have not already been computed. |
List<IVariable> |
getVariablesBindings()
If this compiled rule represents a query, then return the variables bindings of the result relation. |
IPredicate |
headPredicate()
If this compiled rule represents a rule, then return the head predicate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompiledRule(List<RuleElement> elements,
IPredicate headPredicate,
Configuration configuration)
elements - The rule elements produced by the rule compiler.headPredicate - The head predicate of the original rule.| Method Detail |
|---|
public IRelation evaluate()
throws EvaluationException
evaluate in interface ICompiledRuleEvaluationException
public IRelation evaluateIteratively(IFacts deltas)
throws EvaluationException
ICompiledRule
evaluateIteratively in interface ICompiledRuledeltas - The collection of recently discovered facts.
EvaluationExceptionpublic IPredicate headPredicate()
ICompiledRule
headPredicate in interface ICompiledRulepublic List<IVariable> getVariablesBindings()
ICompiledRule
getVariablesBindings in interface ICompiledRule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||