cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerTimeShared.java
private double allocatedAvailableMipsFromHostPeToVirtualPe(Vm vm, Pe hostPe) {
        final double availableMips = getAvailableMipsFromHostPe(hostPe);
        if (availableMips <= 0){
           return 0;
        }

        /*
        * If the selected Host PE doesn't have the available MIPS requested by the current
        * vPE, allocate the MIPS that is available in that PE for the vPE
        * and try to find another Host PE to allocate the remaining MIPS required by the
        * current vPE.
        */
        allocateMipsFromHostPeForVm(vm, hostPe, availableMips);
        return availableMips;
    }
/**
     * Try to allocate the MIPS available in a given Physical PE
     * to a vPE. This method is used when the MIPS requested
     * by a vPE is not entirely available at a Physical PE.
     * This all, this method allocates the available capacity to the vPE.
     *
     * @param vm the VM to allocate MIPS from one of its vPEs.
     * @param hostPe the Physical PE to allocated MIPS from
     * @return true if all requested MIPS of the vPE is available at the physical PE
     * and was allocated, false otherwise
     *
     * @see #allocateAllVmPeRequestedMipsFromHostPe(org.cloudbus.cloudsim.vms.Vm, org.cloudbus.cloudsim.resources.Pe, double)
     */
Try to allocate the MIPS available in a given Physical PE
to a vPE. This method is used when the MIPS requested
by a vPE is not entirely available at a Physical PE.
This all, this method allocates the available capacity to the vPE.

@param vm the VM to allocate MIPS from one of its vPEs.
@param hostPe the Physical PE to allocated MIPS from
@return true if all requested MIPS of the vPE is available at the physical PE
and was allocated, false otherwise


Try to allocate the MIPS available in a given Physical PE to a vPE . This method is used when the MIPS requested by a vPE is not entirely available at a Physical PE . This all this method allocates the available capacity to the vPE . @param vm the VM to allocate MIPS from one of its vPEs . @param hostPe the Physical PE to allocated MIPS from @return true if all requested MIPS of the vPE is available at the physical PE and was allocated false otherwise
private double allocatedAvailableMipsFromHostPeToVirtualPe(Vm vm, Pe hostPe) {
        final double availableMips = getAvailableMipsFromHostPe(hostPe);
        if (availableMips <= 0){
           return 0;
        }
        /*
        * If the selected Host PE doesn't have the available MIPS requested by the current
        * vPE, allocate the MIPS that is available in that PE for the vPE
        * and try to find another Host PE to allocate the remaining MIPS required by the
        * current vPE.
        */
        allocateMipsFromHostPeForVm(vm, hostPe, availableMips);
        return availableMips;
    }
private double allocatedAvailableMipsFromHostPeToVirtualPe ( Vm vm , Pe hostPe ) { final double availableMips = getAvailableMipsFromHostPe ( hostPe ) ; if ( availableMips <= 0 ) { return 0 ; } /*
        * If the selected Host PE doesn't have the available MIPS requested by the current
        * vPE, allocate the MIPS that is available in that PE for the vPE
        * and try to find another Host PE to allocate the remaining MIPS required by the
        * current vPE.
        */ allocateMipsFromHostPeForVm ( vm , hostPe , availableMips ) ; return availableMips ; }
Try to allocate the MIPS available in a given Physical PE
 to a vPE.
Try to allocate the MIPS available in a given Physical PE to a vPE .