cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerTimeShared.java
protected boolean allocateMipsShareForVmInternal(Vm vm, List<Double> mipsShareRequested) {
        if (!isAllowedToAllocateMips(mipsShareRequested)) {
            return false;
        }

        setPesInUse(getPesInUse() + mipsShareRequested.size());
        allocateMipsShareForVm(vm, mipsShareRequested);

        return true;
    }
/**
     * Try to allocate the MIPS requested by a VM
     * and update the {@link #getMipsMapRequested()}.
     *
     * @param vm the VM
     * @param mipsShareRequested the list of mips share requested by the vm
     * @return true if successful, false otherwise
     */
Try to allocate the MIPS requested by a VM
and update the  #getMipsMapRequested().

@param vm the VM
@param mipsShareRequested the list of mips share requested by the vm
@return true if successful, false otherwise
Try to allocate the MIPS requested by a VM and update the #getMipsMapRequested () . @param vm the VM @param mipsShareRequested the list of mips share requested by the vm @return true if successful false otherwise
protected boolean allocateMipsShareForVmInternal(Vm vm, List<Double> mipsShareRequested) {
        if (!isAllowedToAllocateMips(mipsShareRequested)) {
            return false;
        }
        setPesInUse(getPesInUse() + mipsShareRequested.size());
        allocateMipsShareForVm(vm, mipsShareRequested);
        return true;
    }
protected boolean allocateMipsShareForVmInternal ( Vm vm , List < Double > mipsShareRequested ) { if ( ! isAllowedToAllocateMips ( mipsShareRequested ) ) { return false ; } setPesInUse ( getPesInUse ( ) + mipsShareRequested . size ( ) ) ; allocateMipsShareForVm ( vm , mipsShareRequested ) ; return true ; }
Try to allocate the MIPS requested by a VM
 and update the {@link #getMipsMapRequested()}.
Try to allocate the MIPS requested by a VM and update the { @link #getMipsMapRequested () } .