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

org.ggp.base.util.statemachine.StateMachineFactory Maven / Gradle / Ivy

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

import java.util.List;

import org.ggp.base.util.game.Game;
import org.ggp.base.util.gdl.grammar.Gdl;
import org.ggp.base.util.ruleengine.StateMachineRuleEngine;
import org.ggp.base.util.ruleengine.StdRuleEngine;


public interface StateMachineFactory {
    public default T buildInitializedForGame(Game game) {
        return buildInitializedForRules(game.getRules());
    }

    public T buildInitializedForRules(List rules);

    public default StdRuleEngine buildEngineForGame(Game game) {
        return StateMachineRuleEngine.wrap(buildInitializedForGame(game));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy