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

org.ggp.base.util.ruleengine.RuleEngineState Maven / Gradle / Ivy

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

import java.util.Set;

import org.ggp.base.util.gdl.grammar.GdlSentence;

public interface RuleEngineState> {
    /**
     * It is recommended that every state return the same Translator instance
     * when this is called, so that there is exactly one Translator per
     * originating RuleEngine. RuleEngine#toNativeState relies on this to
     * operate efficiently.
     */
    Translator getTranslator();

    //TODO: Fix the warning here; casting shouldn't be necessary, I think
    default Set toGdlState() {
        return getTranslator().getGdlState((State) this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy