Package org.drools.planner.examples.nurserostering.solver.move

Examples of org.drools.planner.examples.nurserostering.solver.move.AssignmentSwitchMove


        List<Move> moveList = new ArrayList<Move>();
        for (ListIterator<Assignment> leftIt = assignmentList.listIterator(); leftIt.hasNext();) {
            Assignment leftAssignment = leftIt.next();
            for (ListIterator<Assignment> rightIt = assignmentList.listIterator(leftIt.nextIndex()); rightIt.hasNext();) {
                Assignment rightAssignment = rightIt.next();
                moveList.add(new AssignmentSwitchMove(leftAssignment, rightAssignment));
            }
        }
        return moveList;
    }
View Full Code Here

TOP

Related Classes of org.drools.planner.examples.nurserostering.solver.move.AssignmentSwitchMove

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.