Search in sources :

Example 21 with ProverConfig

use of suite.lp.Configuration.ProverConfig in project suite by stupidsing.

the class InterpretedProverBuilder method build.

@Override
public Fun<Node, Finder> build(RuleSet ruleSet) {
    return goal -> {
        Node goal1 = SewingGeneralizerImpl.generalize(goal);
        return (source, sink) -> {
            ProverConfig proverConfig1 = new ProverConfig(ruleSet, proverConfig);
            proverConfig1.setSource(source);
            proverConfig1.setSink(sink);
            new Prover(proverConfig1).elaborate(goal1);
        };
    };
}
Also used : Prover(suite.lp.doer.Prover) SewingGeneralizerImpl(suite.lp.sewing.impl.SewingGeneralizerImpl) Finder(suite.lp.search.ProverBuilder.Finder) Builder(suite.lp.search.ProverBuilder.Builder) RuleSet(suite.lp.kb.RuleSet) Fun(suite.util.FunUtil.Fun) ProverConfig(suite.lp.Configuration.ProverConfig) Node(suite.node.Node) Node(suite.node.Node) ProverConfig(suite.lp.Configuration.ProverConfig) Prover(suite.lp.doer.Prover)

Aggregations

ProverConfig (suite.lp.Configuration.ProverConfig)21 RuleSet (suite.lp.kb.RuleSet)12 Test (org.junit.Test)10 SewingProverImpl (suite.lp.sewing.impl.SewingProverImpl)9 ProverFactory (suite.lp.doer.ProverFactory)8 Node (suite.node.Node)7 Builder (suite.lp.search.ProverBuilder.Builder)5 Finder (suite.lp.search.ProverBuilder.Finder)5 Fun (suite.util.FunUtil.Fun)4 Prove_ (suite.lp.doer.ProverFactory.Prove_)3 CompiledProverBuilder (suite.lp.search.CompiledProverBuilder)3 Generalizer (suite.lp.doer.Generalizer)2 Prover (suite.lp.doer.Prover)2 InterpretedProverBuilder (suite.lp.search.InterpretedProverBuilder)2 SewingGeneralizerImpl (suite.lp.sewing.impl.SewingGeneralizerImpl)2 PrintWriter (java.io.PrintWriter)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1