public ProcessorList GetFreeProcessors() { ProcessorList processors = new ProcessorList(); foreach (Processor processor in this.processors) { if (processor.IsAvailable == true) { processors.Add(processor); } } return(processors); }
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); }
public void Add(IProcessorNode <TResult, TSerializer> item) { ProcessorList.Add(item); }