cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/allocationpolicies/power/PowerVmAllocationPolicyMigrationBestFitStaticThreshold.java
@Override
    protected Optional<PowerHost> findHostForVmInternal(Vm vm, Stream<PowerHost> hostStream) {
        /*It's ignoring the super class to intentionally avoid the additional filtering performed there
        * and to apply a different method to select the Host to place the VM.*/
        return hostStream.max(Comparator.comparingDouble(PowerHost::getUtilizationOfCpuMips));
    }
/**
     * Gets the Host having the least available MIPS capacity (max used MIPS).
     *
     * <p>This method is ignoring the additional filtering performed by the super class.
     * This way, Host selection is performed ignoring energy consumption.
     * However, all the basic filters defined in the super class are ensured, since
     * this method is called just after they are applied.
     * </p>
     *
     * @param vm {@inheritDoc}
     * @param hostStream {@inheritDoc}
     * @return {@inheritDoc}
     */
Gets the Host having the least available MIPS capacity (max used MIPS).
This method is ignoring the additional filtering performed by the super class.
This way, Host selection is performed ignoring energy consumption.
However, all the basic filters defined in the super class are ensured, since
this method is called just after they are applied.

@param vm
@param hostStream
@return
Gets the Host having the least available MIPS capacity ( max used MIPS ) . This method is ignoring the additional filtering performed by the super class . This way Host selection is performed ignoring energy consumption . However all the basic filters defined in the super class are ensured since this method is called just after they are applied . @param vm @param hostStream @return
@Override
    protected Optional<PowerHost> findHostForVmInternal(Vm vm, Stream<PowerHost> hostStream) {
        /*It's ignoring the super class to intentionally avoid the additional filtering performed there
        * and to apply a different method to select the Host to place the VM.*/
        return hostStream.max(Comparator.comparingDouble(PowerHost::getUtilizationOfCpuMips));
    }
@ Override protected Optional < PowerHost > findHostForVmInternal ( Vm vm , Stream < PowerHost > hostStream ) { /*It's ignoring the super class to intentionally avoid the additional filtering performed there
        * and to apply a different method to select the Host to place the VM.*/ return hostStream . max ( Comparator . comparingDouble ( PowerHost :: getUtilizationOfCpuMips ) ) ; }
Gets the Host having the least available MIPS capacity (max used MIPS).
Gets the Host having the least available MIPS capacity ( max used MIPS ) .