cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerAbstract.java
private double actualVmTotalRequestedMips(Vm vm) {
        final double totalVmRequestedMips =
                getMipsMapAllocated()
                    .getOrDefault(vm, new ArrayList<>())
                    .stream()
                    .reduce(0.0, Double::sum);

        /*If the VM is migrating in or out this Host,
        there is a migration overhead.
        Considering the overhead is 10%,
        if it's migrating in, it's just allocated just this 10%
        for the migration process.
        If it's migrating out, it's allocated 90% for the VM,
        and 10% for the migration process.

        The line below computes the original
        requested MIPS (which correspond to 100%)
        */
        return totalVmRequestedMips / percentOfMipsToRequest(vm);
    }
/**
     * Gets the sum of MIPS requested by each VM PE, including
     * the CPU overhead if the VM is in migration to this Host.
     *
     * <p>For instance, if the migration overhead is 10% and
     * the total requested MIPS of a VM is 1000 MIPS,
     * it will be allocated just 900 MIPS, but from this values, this method
     * returns the 1000 MIPS, which is the actual MIPS being
     * used by the Host (900 by the VM and 100 by migration overhead).</p>
     *
     * @param vm the VM to get the actual requested MIPS across all PEs
     * @return the actual requested MIPS sum across all VM PEs,
     * including the CPU overhead of the VM is in migration to this Host
     */
Gets the sum of MIPS requested by each VM PE, including
the CPU overhead if the VM is in migration to this Host.

For instance, if the migration overhead is 10% and
the total requested MIPS of a VM is 1000 MIPS,
it will be allocated just 900 MIPS, but from this values, this method
returns the 1000 MIPS, which is the actual MIPS being
used by the Host (900 by the VM and 100 by migration overhead).

@param vm the VM to get the actual requested MIPS across all PEs
@return the actual requested MIPS sum across all VM PEs,
including the CPU overhead of the VM is in migration to this Host
Gets the sum of MIPS requested by each VM PE including the CPU overhead if the VM is in migration to this Host . For instance if the migration overhead is 10% and the total requested MIPS of a VM is 1000 MIPS it will be allocated just 900 MIPS but from this values this method returns the 1000 MIPS which is the actual MIPS being used by the Host ( 900 by the VM and 100 by migration overhead ) . @param vm the VM to get the actual requested MIPS across all PEs @return the actual requested MIPS sum across all VM PEs including the CPU overhead of the VM is in migration to this Host
private double actualVmTotalRequestedMips(Vm vm) {
        final double totalVmRequestedMips =
                getMipsMapAllocated()
                    .getOrDefault(vm, new ArrayList<>())
                    .stream()
                    .reduce(0.0, Double::sum);
        /*If the VM is migrating in or out this Host,
        there is a migration overhead.
        Considering the overhead is 10%,
        if it's migrating in, it's just allocated just this 10%
        for the migration process.
        If it's migrating out, it's allocated 90% for the VM,
        and 10% for the migration process.
        The line below computes the original
        requested MIPS (which correspond to 100%)
        */
        return totalVmRequestedMips / percentOfMipsToRequest(vm);
    }
private double actualVmTotalRequestedMips ( Vm vm ) { final double totalVmRequestedMips = getMipsMapAllocated ( ) . getOrDefault ( vm , new ArrayList < > ( ) ) . stream ( ) . reduce ( 0.0 , Double :: sum ) ; /*If the VM is migrating in or out this Host,
        there is a migration overhead.
        Considering the overhead is 10%,
        if it's migrating in, it's just allocated just this 10%
        for the migration process.
        If it's migrating out, it's allocated 90% for the VM,
        and 10% for the migration process.

        The line below computes the original
        requested MIPS (which correspond to 100%)
        */ return totalVmRequestedMips / percentOfMipsToRequest ( vm ) ; }
Gets the sum of MIPS requested by each VM PE, including
 the CPU overhead if the VM is in migration to this Host.
Gets the sum of MIPS requested by each VM PE including the CPU overhead if the VM is in migration to this Host .