HostDynamicWorkload extends Host { public double getMaxUtilizationAmongVmsPes(Vm vm) { return PeList.getMaxUtilizationAmongVmsPes(getPeList(), vm); } HostDynamicWorkload(
			int id,
			RamProvisioner ramProvisioner,
			BwProvisioner bwProvisioner,
			long storage,
			List<? extends Pe> peList,
			VmScheduler vmScheduler); @Override double updateVmsProcessing(double currentTime); List<Vm> getCompletedVms(); double getMaxUtilization(); double getMaxUtilizationAmongVmsPes(Vm vm); double getUtilizationOfRam(); double getUtilizationOfBw(); double getUtilizationOfCpu(); double getPreviousUtilizationOfCpu(); double getUtilizationOfCpuMips(); double getUtilizationMips(); double getPreviousUtilizationMips(); List<HostStateHistoryEntry> getStateHistory(); void addStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean isActive);  }
@Test public void testGetMaxUtilizationAmongVmsPes() { Vm vm0 = new Vm(0, 0, MIPS / 2, 1, 0, 0, 0, "", null); Vm vm1 = new Vm(1, 0, MIPS / 2, 1, 0, 0, 0, "", null); assertTrue(peList.get(0).getPeProvisioner().allocateMipsForVm(vm0, MIPS / 3)); assertTrue(peList.get(1).getPeProvisioner().allocateMipsForVm(vm1, MIPS / 5)); assertEquals((MIPS / 3) / MIPS, host.getMaxUtilizationAmongVmsPes(vm0), 0.001); assertEquals((MIPS / 5) / MIPS, host.getMaxUtilizationAmongVmsPes(vm1), 0.001); }