class ConsolidationScoredPreferenceForSmallHosts extends ConsolidationAlgorithmBase {

    protected double getCloudExpetedMemoryUsagePercentageAfterHostShutdown(HostResources hostToPowerOff, CloudResources cloudResources) {
        double hostMemory = (hostToPowerOff.getTotalMemoryInBytes() / BYTES_TO_MEGA_BYTES) * hostToPowerOff.getMemoryOverprovisioning();
        double expectedCloudMemoryAfterShutDown = (cloudResources.getMemoryInBytes() / BYTES_TO_MEGA_BYTES) - hostMemory;
        return (cloudResources.getUsedMemory() / BYTES_TO_MEGA_BYTES) / expectedCloudMemoryAfterShutDown;
    }

}