Exemplo n.º 1
0
        public double UpdateVmsProcessing(double currentTime)
        {
            double smallerTime = double.MaxValue;

            foreach (Vm vm in VmList)
            {
                double time = vm.UpdateVmProcessing(
                    currentTime, VmScheduler.GetAllocatedMipsForVm(vm));

                if (time > 0 && time < smallerTime)
                {
                    smallerTime = time;
                }
            }
            return(smallerTime);
        }
Exemplo n.º 2
0
 public List <double> GetAllocatedMipsForVm(Vm vm)
 {
     return(VmScheduler.GetAllocatedMipsForVm(vm));
 }