All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ggp.base.util.statemachine.sancho.SanchoRuleEngineFactory Maven / Gradle / Ivy

The newest version!
package org.ggp.base.util.statemachine.sancho;

import java.util.List;

import org.ggp.base.util.gdl.grammar.Gdl;
import org.ggp.base.util.ruleengine.RuleEngineFactory;

public class SanchoRuleEngineFactory implements RuleEngineFactory {
    public static final String VERSION = "2017.08.13";
    public static final SanchoRuleEngineFactory INSTANCE = new SanchoRuleEngineFactory();
    private SanchoRuleEngineFactory() {
        // Singleton
    }

    @Override
    public ForwardDeadReckonPropnetRuleEngine buildEngineForRules(List rules) {
        ForwardDeadReckonPropnetRuleEngine engine =
                new ForwardDeadReckonPropnetRuleEngine();
        engine.initialize(rules);
        engine.enableGreedyRollouts(false, true);

        engine.optimizeStateTransitionMechanism(System.currentTimeMillis()+5000);

        return engine;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy