Class SemiNaiveEvalManager
java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.bottomup.sequential.SemiNaiveEvalManager
- All Implemented Interfaces:
EvalManager,EvalManagerWithProvenance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval()Saturate all facts derivable from the program with which this manager has been initialized.getJustification(PositiveAtom fact) Return the last rule used in the justification of the given atom.voidinitialize(Set<Clause> program) Initialize this manager with a program.static Clause
-
Constructor Details
-
SemiNaiveEvalManager
public SemiNaiveEvalManager(boolean collectProv)
-
-
Method Details
-
initialize
Description copied from interface:EvalManagerInitialize this manager with a program.- Specified by:
initializein interfaceEvalManager- Parameters:
program- the program- Throws:
DatalogValidationException- if the program is invalid
-
eval
Description copied from interface:EvalManagerSaturate all facts derivable from the program with which this manager has been initialized.- Specified by:
evalin interfaceEvalManager- Returns:
- the facts
-
getJustification
Description copied from interface:EvalManagerWithProvenanceReturn the last rule used in the justification of the given atom. The returned rule should be ground (variable-free). Return null if the given atom is not a fact or was not derived.- Specified by:
getJustificationin interfaceEvalManagerWithProvenance- Parameters:
fact- the fact- Returns:
- the last rule used to justify that fact
-
stripSemiNaiveClause
-