cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/brokers/DatacenterBrokerAbstract.java
protected boolean processVmCreateResponseFromDatacenter(SimEvent ev) {
        final Vm vm = (Vm) ev.getData();
        boolean vmCreated = false;
        vmCreationAcks++;

        //if the VM was successfully created in the requested Datacenter
        if (vm.isCreated()) {
            processSuccessVmCreationInDatacenter(vm, vm.getHost().getDatacenter());
            vmCreated = true;
        } else {
            processFailedVmCreationInDatacenter(vm, lastSelectedDc);
        }

        // all the requested VMs have been created
        if (vmWaitingList.isEmpty()) {
            requestDatacentersToCreateWaitingCloudlets();
            notifyOnCreationOfWaitingVmsFinishListeners();
        } else if (getVmCreationRequests() == getVmCreationAcks()) {
            requestCreationOfWaitingVmsToFallbackDatacenter();
        }

        return vmCreated;
    }
/**
     * Process the ack received from a Datacenter to a broker's request for
     * creation of a Vm in that Datacenter.
     *
     * @param ev a CloudSimEvent object
     * @return true if the VM was created successfully, false otherwise
     * @pre ev != null
     * @post $none
     */
Process the ack received from a Datacenter to a broker's request for
creation of a Vm in that Datacenter.

@param ev a CloudSimEvent object
@return true if the VM was created successfully, false otherwise
@pre ev != null
@post $none
Process the ack received from a Datacenter to a broker ' s request for creation of a Vm in that Datacenter . @param ev a CloudSimEvent object @return true if the VM was created successfully false otherwise @pre ev ! = null @post $none
protected boolean processVmCreateResponseFromDatacenter(SimEvent ev) {
        final Vm vm = (Vm) ev.getData();
        boolean vmCreated = false;
        vmCreationAcks++;
        if (vm.isCreated()) {
            processSuccessVmCreationInDatacenter(vm, vm.getHost().getDatacenter());
            vmCreated = true;
        } else {
            processFailedVmCreationInDatacenter(vm, lastSelectedDc);
        }
        if (vmWaitingList.isEmpty()) {
            requestDatacentersToCreateWaitingCloudlets();
            notifyOnCreationOfWaitingVmsFinishListeners();
        } else if (getVmCreationRequests() == getVmCreationAcks()) {
            requestCreationOfWaitingVmsToFallbackDatacenter();
        }
        return vmCreated;
    }
protected boolean processVmCreateResponseFromDatacenter ( SimEvent ev ) { final Vm vm = ( Vm ) ev . getData ( ) ; boolean vmCreated = false ; vmCreationAcks ++ ; if ( vm . isCreated ( ) ) { processSuccessVmCreationInDatacenter ( vm , vm . getHost ( ) . getDatacenter ( ) ) ; vmCreated = true ; } else { processFailedVmCreationInDatacenter ( vm , lastSelectedDc ) ; } if ( vmWaitingList . isEmpty ( ) ) { requestDatacentersToCreateWaitingCloudlets ( ) ; notifyOnCreationOfWaitingVmsFinishListeners ( ) ; } else if ( getVmCreationRequests ( ) == getVmCreationAcks ( ) ) { requestCreationOfWaitingVmsToFallbackDatacenter ( ) ; } return vmCreated ; }
Process the ack received from a Datacenter to a broker's request for
 creation of a Vm in that Datacenter.
Process the ack received from a Datacenter to a broker ' s request for creation of a Vm in that Datacenter .
//if the VM was successfully created in the requested Datacenter // all the requested VMs have been created