Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e64534db authored by CHAROENSIT Akira's avatar CHAROENSIT Akira
Browse files

(build pass)

parent 51afd0ee
No related branches found
No related tags found
1 merge request!68Resolve "add explanation module"
Pipeline #1144365 failed
......@@ -46,6 +46,22 @@ public abstract class AbstractStaticGRIBasedExplainer_TrackerGRI<ExplanationType
*/
GRIRuleTransformer ruleTransformer = GRIRuleTransformer.instance();
Predicate<Atom> belongsToInitialFactbase;
/**
* Sets the initial KB and compute the GRI
*
* @param inputKB the current kb
*/
public AbstractStaticGRIBasedExplainer_TrackerGRI(KnowledgeBase inputKB) {
this.inputKB = inputKB;
this.intialAtoms = new HashSet<Atom>();
inputKB.getFactBase().getAtoms().forEach(intialAtoms::add);
var trackedChase = DefaultChaseForExplanations.chaseForTracker(this.inputKB);
this.griKBChase = trackedChase.chase();
this.griTracker = trackedChase.tracker();
}
/**
* Sets the initial KB and compute the GRI
*
......@@ -60,6 +76,7 @@ public abstract class AbstractStaticGRIBasedExplainer_TrackerGRI<ExplanationType
var trackedChase = DefaultChaseForExplanations.chaseForTracker(this.inputKB);
this.griKBChase = trackedChase.chase();
this.griTracker = trackedChase.tracker();
this.solver=solver;
}
public void pipeline() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment