class ScoredClustersAllocationAlgorithmPreferenceForSmallHosts extends AllocationAlgorithmBase {

    protected double calculateHostScore(HostResources hostToStart) {
        double hostCpu = hostToStart.getSpeed() * hostToStart.getCpus() * hostToStart.getCpuOverprovisioning();
        double hostMemory = hostToStart.getTotalMemoryInBytes() * hostToStart.getMemoryOverprovisioning();
        return hostCpu * hostMemory;
    }

}