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

org.ggp.base.util.gdl.model.SentenceDomainModelFactory Maven / Gradle / Ivy

There is a newer version: 0.0.15
Show newest version
package org.ggp.base.util.gdl.model;

import java.util.List;
import java.util.Map;

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

public class SentenceDomainModelFactory {
    private SentenceDomainModelFactory() {
    }

    public static ImmutableSentenceDomainModel createWithCartesianDomains(List description) throws InterruptedException {
        //TODO: Require somehow that the input to this has come through the
        //VariableConstrainer already
        ImmutableSentenceFormModel formModel = SentenceFormModelFactory.create(description);

        SentenceFormsFinder sentenceFormsFinder = new SentenceFormsFinder(formModel.getDescription());
        Map domains = sentenceFormsFinder.findCartesianDomains();

        return ImmutableSentenceDomainModel.create(formModel, domains);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy