Esempio n. 1
0
        public ProcessorList GetFreeProcessors()
        {
            ProcessorList processors = new ProcessorList();

            foreach (Processor processor in this.processors)
            {
                if (processor.IsAvailable == true)
                {
                    processors.Add(processor);
                }
            }
            return(processors);
        }
Esempio n. 2
0
        public ProcessorList GetBusyWaitingProcessors()
        {
            ProcessorList processors = new ProcessorList();

            foreach (Processor processor in this.processors)
            {
                if (processor.IsBusy == true && processor.IsBlocked == false)
                {
                    Unitload unitload = (Unitload)processor.Content[0];
                    if (unitload.InTransfer == false && unitload.Operation == null)
                    {
                        processors.Add(processor);
                    }
                }
            }
            return(processors);
        }
Esempio n. 3
0
 public void Add(IProcessorNode <TResult, TSerializer> item)
 {
     ProcessorList.Add(item);
 }