Exemplo n.º 1
0
        public void Work(DayTime dayTime)
        {
            if (!Queue.Any())
            {
                return;
            }

            if (_stage_counter == 0)
            {
                IWork process = Queue.Dequeue();
                process.SetNextOp();
                OutputBuffer.Enqueue(process);
                _stage_counter = COUNTER_RESET_VALUE;
            }

            _stage_counter--;
        }
Exemplo n.º 2
0
 public void ReceiveFromExternal(IWork workorder)
 {
     OutputBuffer.Enqueue(workorder);
     _mes.AddWorkorder(this.Name, workorder);
 }