class ConsolidationAlgorithmBase extends ClusterManagementDummyAlgorithm {

    public void updateHostUsedResources(VmResources vm, HostResources host) {
        host.setUsedCpu(host.getUsedCpu() + vm.getNumberOfCpus() * vm.getCpuSpeed());
        host.setUsedMemoryInMegaBytes(host.getUsedMemoryInMegaBytes() + vm.getMemoryInMegaBytes());
    }

}