cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/testbeds/heuristics/DatacenterBrokerHeuristicRunner.java
public void createRoundRobinSolutionIfNotCreatedYet(SimulationExperiment exp) {
        if (roundRobinSolution != null) {
            return;
        }

        roundRobinSolution = new CloudletToVmMappingSolution(Heuristic.NULL);
        int i = 0;
        for (final Cloudlet c : exp.getCloudletList()) {
            //cyclically selects a Vm (as in a circular queue)
            roundRobinSolution.bindCloudletToVm(c, exp.getVmList().get(i));
            i = (i + 1) % exp.getVmList().size();
        }
    }
/**
     * Creates a Round-robin mapping between Cloudlets and Vm's from the
     * Cloudlets and Vm's of a given experiment, in the same way as the
     * {@link DatacenterBrokerSimple} does.
     *
     * @param exp the experiment to get the list of Cloudlets and Vm's
     */
Creates a Round-robin mapping between Cloudlets and Vm's from the
Cloudlets and Vm's of a given experiment, in the same way as the
DatacenterBrokerSimple does.

@param exp the experiment to get the list of Cloudlets and Vm's
Creates a Round - robin mapping between Cloudlets and Vm ' s from the Cloudlets and Vm ' s of a given experiment in the same way as the DatacenterBrokerSimple does . @param exp the experiment to get the list of Cloudlets and Vm ' s
public void createRoundRobinSolutionIfNotCreatedYet(SimulationExperiment exp) {
        if (roundRobinSolution != null) {
            return;
        }
        roundRobinSolution = new CloudletToVmMappingSolution(Heuristic.NULL);
        int i = 0;
        for (final Cloudlet c : exp.getCloudletList()) {
            roundRobinSolution.bindCloudletToVm(c, exp.getVmList().get(i));
            i = (i + 1) % exp.getVmList().size();
        }
    }
public void createRoundRobinSolutionIfNotCreatedYet ( SimulationExperiment exp ) { if ( roundRobinSolution != null ) { return ; } roundRobinSolution = new CloudletToVmMappingSolution ( Heuristic . NULL ) ; int i = 0 ; for ( final Cloudlet c : exp . getCloudletList ( ) ) { roundRobinSolution . bindCloudletToVm ( c , exp . getVmList ( ) . get ( i ) ) ; i = ( i + 1 ) % exp . getVmList ( ) . size ( ) ; } }
Creates a Round-robin mapping between Cloudlets and Vm's from the
 Cloudlets and Vm's of a given experiment, in the same way as the
 {@link DatacenterBrokerSimple} does.
Creates a Round - robin mapping between Cloudlets and Vm ' s from the Cloudlets and Vm ' s of a given experiment in the same way as the { @link DatacenterBrokerSimple } does .
//cyclically selects a Vm (as in a circular queue)