Example #1
0
        public override void ComputeShares <_T0>(ICollection <_T0> schedulables, Resource totalResources
                                                 )
        {
            if (schedulables.IsEmpty())
            {
                return;
            }
            Schedulable earliest = null;

            foreach (Schedulable schedulable in schedulables)
            {
                if (earliest == null || schedulable.GetStartTime() < earliest.GetStartTime())
                {
                    earliest = schedulable;
                }
            }
            earliest.SetFairShare(Resources.Clone(totalResources));
        }