Package org.optaplanner.examples.cloudbalancing.solver.move

Examples of org.optaplanner.examples.cloudbalancing.solver.move.CloudComputerChangeMove


    public List<Move> createMoveList(CloudBalance cloudBalance) {
        List<Move> moveList = new ArrayList<Move>();
        List<CloudComputer> cloudComputerList = cloudBalance.getComputerList();
        for (CloudProcess cloudProcess : cloudBalance.getProcessList()) {
            for (CloudComputer cloudComputer : cloudComputerList) {
                moveList.add(new CloudComputerChangeMove(cloudProcess, cloudComputer));
            }
        }
        return moveList;
    }
View Full Code Here

TOP

Related Classes of org.optaplanner.examples.cloudbalancing.solver.move.CloudComputerChangeMove

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.