astra.reasoner.node.BindReasonerNodeFactory 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.Bind;
import astra.term.Term;
public class BindReasonerNodeFactory implements ReasonerNodeFactory {
@Override
public ReasonerNode create(Bind formula, Map bindings, boolean singleResult) {
return new BindReasonerNode(null, formula, bindings, singleResult);
}
@Override
public ReasonerNode create(ReasonerNode parent, Bind formula, Map bindings, boolean singleResult) {
return new BindReasonerNode(parent, formula, bindings, singleResult);
}
}