cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerAbstract.java
protected double percentOfMipsToRequest(Vm vm) {
        if (host.getVmsMigratingIn().contains(vm)) {
            /* While the VM is migrating in,
            the destination host only increases CPU usage according
            to the CPU migration overhead.
             */
            return vmMigrationCpuOverhead;
        }

        if (host.getVmsMigratingOut().contains(vm)) {
            /* While the VM is migrating out, the host where it's migrating from
            experiences a performance degradation.
            Thus, the allocated MIPS for that VM is reduced according to the CPU migration
            overhead.*/
            return getMaxCpuUsagePercentDuringOutMigration();
        }

        //VM is not migrating, thus 100% of its requested MIPS will be requested to the Host.
        return 1;
    }
/**
     * Gets the percentage of the MIPS requested by a VM
     * that will be in fact requested to the Host, according to the VM migration
     * status:
     *
     * <ul>
     *  <li>VM is migrating out of this Host: the MIPS requested by VM will be reduced
     *   according to the
     *   {@link #getVmMigrationCpuOverhead() CPU migration overhead}.
     *   The number of MIPS corresponding to the CPU overhead is used
     *   by the Host to perform the migration;</li>
     *  <li>VM is migrating into this Host: only a fraction of its requested MIPS will be
     *   in fact requested to the Host. This amount is computed by reducing the
     *   {@link #getVmMigrationCpuOverhead() CPU migration overhead};</li>
     *  <li>VM is not in migration: 100% of its requested MIPS will be
     *   in fact requested to the Host</li>
     * </ul>
     * @param vm the VM that is requesting MIPS from the Host
     * @return the percentage of MIPS requested by the VM that will be in fact
     * requested to the Host (in scale from [0 to 1], where  is 100%)
     */
Gets the percentage of the MIPS requested by a VM
that will be in fact requested to the Host, according to the VM migration
status.


VM is migrating out of this Host: the MIPS requested by VM will be reduced
according to the
#getVmMigrationCpuOverhead() CPU migration overhead.
The number of MIPS corresponding to the CPU overhead is used
by the Host to perform the migration;
VM is migrating into this Host: only a fraction of its requested MIPS will be
in fact requested to the Host. This amount is computed by reducing the
#getVmMigrationCpuOverhead() CPU migration overhead;
VM is not in migration: 100% of its requested MIPS will be
in fact requested to the Host

@param vm the VM that is requesting MIPS from the Host
@return the percentage of MIPS requested by the VM that will be in fact
requested to the Host (in scale from [0 to 1], where  is 100%)
Gets the percentage of the MIPS requested by a VM that will be in fact requested to the Host according to the VM migration status . VM is migrating out of this Host : the MIPS requested by VM will be reduced according to the #getVmMigrationCpuOverhead () CPU migration overhead . The number of MIPS corresponding to the CPU overhead is used by the Host to perform the migration ; VM is migrating into this Host : only a fraction of its requested MIPS will be in fact requested to the Host . This amount is computed by reducing the #getVmMigrationCpuOverhead () CPU migration overhead ; VM is not in migration : 100% of its requested MIPS will be in fact requested to the Host @param vm the VM that is requesting MIPS from the Host @return the percentage of MIPS requested by the VM that will be in fact requested to the Host ( in scale from [ 0 to 1 ] where is 100% )
protected double percentOfMipsToRequest(Vm vm) {
        if (host.getVmsMigratingIn().contains(vm)) {
            /* While the VM is migrating in,
            the destination host only increases CPU usage according
            to the CPU migration overhead.
             */
            return vmMigrationCpuOverhead;
        }
        if (host.getVmsMigratingOut().contains(vm)) {
            /* While the VM is migrating out, the host where it's migrating from
            experiences a performance degradation.
            Thus, the allocated MIPS for that VM is reduced according to the CPU migration
            overhead.*/
            return getMaxCpuUsagePercentDuringOutMigration();
        }
        return 1;
    }
protected double percentOfMipsToRequest ( Vm vm ) { if ( host . getVmsMigratingIn ( ) . contains ( vm ) ) { /* While the VM is migrating in,
            the destination host only increases CPU usage according
            to the CPU migration overhead.
             */ return vmMigrationCpuOverhead ; } if ( host . getVmsMigratingOut ( ) . contains ( vm ) ) { /* While the VM is migrating out, the host where it's migrating from
            experiences a performance degradation.
            Thus, the allocated MIPS for that VM is reduced according to the CPU migration
            overhead.*/ return getMaxCpuUsagePercentDuringOutMigration ( ) ; } return 1 ; }
Gets the percentage of the MIPS requested by a VM
 that will be in fact requested to the Host, according to the VM migration
 status:
Gets the percentage of the MIPS requested by a VM that will be in fact requested to the Host according to the VM migration status :
//VM is not migrating, thus 100% of its requested MIPS will be requested to the Host.