Class ClauseEvaluator
java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.bottomup.ClauseEvaluator
This class provides a way to derive all the new facts that are derivable from a given rule, given
an initial fact that unifies with the first atom in the body of the clause. It is the workhorse
of the bottom-up evaluation engines.
-
Constructor Summary
ConstructorDescriptionClauseEvaluator
(SemiNaiveClauseAnnotator.SemiNaiveClause cl, BiConsumer<PositiveAtom, ClauseSubstitution> newFact, BiFunction<AnnotatedAtom, ClauseSubstitution, Iterable<PositiveAtom>> getFacts) -
Method Summary
-
Constructor Details
-
ClauseEvaluator
public ClauseEvaluator(SemiNaiveClauseAnnotator.SemiNaiveClause cl, BiConsumer<PositiveAtom, ClauseSubstitution> newFact, BiFunction<AnnotatedAtom, ClauseSubstitution, Iterable<PositiveAtom>> getFacts)
-
-
Method Details
-
evaluate
-
main
-