class ConsolidationScoredPreferenceForSmallHosts extends ConsolidationAlgorithmBase {

    @Override
    protected boolean internalCanPowerOffAnotherHostInCloud(CloudResources cloudResources) {
        double cpuUsagePercentage = cloudCpuUsagePercentage(cloudResources);
        if (cpuUsagePercentage > 0.7) {
            return false;
        }
        double memoryUsagePercentage = cloudMemoryUsagePercentage(cloudResources);
        return memoryUsagePercentage < 0.7;
    }

}