astra.reasoner.node.ComparisonReasonerNodeFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-interpreter Show documentation
Show all versions of astra-interpreter Show documentation
Core interpreter artifact for the ASTRA Language
package astra.reasoner.node;
import java.util.Map;
import astra.formula.Comparison;
import astra.term.Term;
public class ComparisonReasonerNodeFactory implements ReasonerNodeFactory {
@Override
public ReasonerNode create(Comparison formula, Map bindings, boolean singleResult) {
return new ComparisonReasonerNode(null, formula, bindings, singleResult);
}
@Override
public ReasonerNode create(ReasonerNode parent, Comparison formula, Map bindings, boolean singleResult) {
return new ComparisonReasonerNode(parent, formula, bindings, singleResult);
}
}