Package org.drools.planner.core.annotations

Examples of org.drools.planner.core.annotations.PlanningVariableClass


    public BruteForceSolutionIterator(BruteForceSolverScope bruteForceSolverScope) {
        this.bruteForceSolverScope = bruteForceSolverScope; // TODO move startingSolution etc out of here
        Collection<? extends Object> facts = bruteForceSolverScope.getWorkingSolution().getFacts();
        for (Object fact : facts) {
            PlanningVariableClass planningVariableClass = fact.getClass().getAnnotation(PlanningVariableClass.class);
            if (planningVariableClass != null) {
                PlanningVariableHandler planningVariableHandler = new PlanningVariableHandler(fact, planningVariableClass, facts);
                list.add(planningVariableHandler);
            }
        }
View Full Code Here

TOP

Related Classes of org.drools.planner.core.annotations.PlanningVariableClass

Copyright © 2018 www.massapicom. 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.