Package org.optaplanner.core.impl.domain.solution.descriptor

Examples of org.optaplanner.core.impl.domain.solution.descriptor.SolutionDescriptor.processAnnotations()


    public static SolutionDescriptor buildSolutionDescriptor(Class<? extends Solution> solutionClass,
            Class<?> ... entityClasses) {
        DescriptorPolicy descriptorPolicy = new DescriptorPolicy();
        SolutionDescriptor solutionDescriptor = new SolutionDescriptor(solutionClass);
        solutionDescriptor.processAnnotations(descriptorPolicy);
        for (Class<?> entityClass : entityClasses) {
            EntityDescriptor entityDescriptor = new EntityDescriptor(
                    solutionDescriptor, entityClass);
            solutionDescriptor.addEntityDescriptor(entityDescriptor);
            entityDescriptor.processAnnotations(descriptorPolicy);
View Full Code Here


        if (solutionClass == null) {
            throw new IllegalArgumentException("Configure a <solutionClass> in the solver configuration.");
        }
        DescriptorPolicy descriptorPolicy = new DescriptorPolicy();
        SolutionDescriptor solutionDescriptor = new SolutionDescriptor(solutionClass);
        solutionDescriptor.processAnnotations(descriptorPolicy);
        if (ConfigUtils.isEmptyCollection(entityClassList)) {
            throw new IllegalArgumentException(
                    "Configure at least 1 <entityClass> in the solver configuration.");
        }
        for (Class<?> entityClass : entityClassList) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.