cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/brokers/DatacenterBrokerSimple1.java
protected Vm selectVmForWaitingCloudlet(Cloudlet cloudlet) {
        if (cloudlet.isBindToVm() && getVmExecList().contains(cloudlet.getVm())) {
            return cloudlet.getVm();
        }

        /*If user didn't bind this cloudlet to a specific Vm
        or if the bind VM was not created, try the next Vm on the list of created*/
        return getVmFromCreatedList(getNextVmIndex());
    }
/**
     * Defines the policy used to select a Vm to host a Cloudlet
     * that is waiting to be created.
     * <br>It applies a Round-Robin policy to cyclically select
     * the next Vm from the list of waiting VMs.
     *
     * @param cloudlet the cloudlet that needs a VM to be placed into
     * @return the selected Vm for the cloudlet or {@link Vm#NULL} if
     * no suitable VM was found
     */
Defines the policy used to select a Vm to host a Cloudlet
that is waiting to be created.
It applies a Round-Robin policy to cyclically select
the next Vm from the list of waiting VMs.

@param cloudlet the cloudlet that needs a VM to be placed into
@return the selected Vm for the cloudlet or  Vm#NULL if
no suitable VM was found
Defines the policy used to select a Vm to host a Cloudlet that is waiting to be created . It applies a Round - Robin policy to cyclically select the next Vm from the list of waiting VMs . @param cloudlet the cloudlet that needs a VM to be placed into @return the selected Vm for the cloudlet or Vm#NULL if no suitable VM was found
protected Vm selectVmForWaitingCloudlet(Cloudlet cloudlet) {
        if (cloudlet.isBindToVm() && getVmExecList().contains(cloudlet.getVm())) {
            return cloudlet.getVm();
        }
        /*If user didn't bind this cloudlet to a specific Vm
        or if the bind VM was not created, try the next Vm on the list of created*/
        return getVmFromCreatedList(getNextVmIndex());
    }
protected Vm selectVmForWaitingCloudlet ( Cloudlet cloudlet ) { if ( cloudlet . isBindToVm ( ) && getVmExecList ( ) . contains ( cloudlet . getVm ( ) ) ) { return cloudlet . getVm ( ) ; } /*If user didn't bind this cloudlet to a specific Vm
        or if the bind VM was not created, try the next Vm on the list of created*/ return getVmFromCreatedList ( getNextVmIndex ( ) ) ; }
Defines the policy used to select a Vm to host a Cloudlet
 that is waiting to be created.
Defines the policy used to select a Vm to host a Cloudlet that is waiting to be created .