cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerTimeShared.java
private void allocatePesListForVm(Map.Entry<Vm, List<Double>> entry) {
        final Vm vm = entry.getKey();
        final Iterator<Pe> hostPesIterator = getWorkingPeList().iterator();
        //Iterate over the list of MIPS requested by each VM PE
        for (final double requestedMipsForVmPe : entry.getValue()) {
            final double allocatedMipsForVmPe = allocateMipsFromHostPesToGivenVirtualPe(vm, requestedMipsForVmPe, hostPesIterator);
            if(requestedMipsForVmPe > 0.1 && allocatedMipsForVmPe <= 0.1){
                logMipsUnavailable(vm, requestedMipsForVmPe, allocatedMipsForVmPe);
            }
        }
    }
/**
     * Allocates Host PEs for a given VM.
     * @param entry an entry from the {@link #getMipsMapAllocated()} containing a VM and
     *              the list of MIPS to be allocated for each of its PEs
     */
Allocates Host PEs for a given VM.
@param entry an entry from the  #getMipsMapAllocated() containing a VM and
the list of MIPS to be allocated for each of its PEs
Allocates Host PEs for a given VM . @param entry an entry from the #getMipsMapAllocated () containing a VM and the list of MIPS to be allocated for each of its PEs
private void allocatePesListForVm(Map.Entry<Vm, List<Double>> entry) {
        final Vm vm = entry.getKey();
        final Iterator<Pe> hostPesIterator = getWorkingPeList().iterator();
        for (final double requestedMipsForVmPe : entry.getValue()) {
            final double allocatedMipsForVmPe = allocateMipsFromHostPesToGivenVirtualPe(vm, requestedMipsForVmPe, hostPesIterator);
            if(requestedMipsForVmPe > 0.1 && allocatedMipsForVmPe <= 0.1){
                logMipsUnavailable(vm, requestedMipsForVmPe, allocatedMipsForVmPe);
            }
        }
    }
private void allocatePesListForVm ( Map . Entry < Vm , List < Double > > entry ) { final Vm vm = entry . getKey ( ) ; final Iterator < Pe > hostPesIterator = getWorkingPeList ( ) . iterator ( ) ; for ( final double requestedMipsForVmPe : entry . getValue ( ) ) { final double allocatedMipsForVmPe = allocateMipsFromHostPesToGivenVirtualPe ( vm , requestedMipsForVmPe , hostPesIterator ) ; if ( requestedMipsForVmPe > 0.1 && allocatedMipsForVmPe <= 0.1 ) { logMipsUnavailable ( vm , requestedMipsForVmPe , allocatedMipsForVmPe ) ; } } }
Allocates Host PEs for a given VM.
Allocates Host PEs for a given VM .
//Iterate over the list of MIPS requested by each VM PE