class ConsolidationScoredPreferenceForSmallHosts extends ConsolidationAlgorithmBase {

    protected double getCloudExpetedCpuUsageAfterHostShutdown(HostResources hostToPowerOff, CloudResources cloudResources) {
        double hostCpu = hostToPowerOff.getSpeed() * hostToPowerOff.getCpus() * hostToPowerOff.getCpuOverprovisioning();
        double expectedcloudCpuAfterShutDown = getCloudCpuCapacity(cloudResources) - hostCpu;
        return cloudResources.getUsedCpu() / expectedcloudCpuAfterShutDown;
    }

}