Inheritance: IProcessingState
Exemple #1
0
 public void Process(Processing process, out IProcessingState timeoutState)
 {
     process.Modules.CurrentAnalysisIndex++;
     if (process.Modules.CurrentAnalysisIndex < process.Modules.Amount())
     {
         timeoutState = new ProcessAnalysis();
     }
     else
     {
         timeoutState = new Idle(5);
     }
 }
Exemple #2
0
 public void Process(Processing process, out IProcessingState timeoutState)
 {
     timeoutState = new Idle(5);
     Thread.Sleep(_sleepTime);
 }
Exemple #3
0
 public Processing(ProcessSync communication)
 {
     this._communication = communication;
     TimeoutState = new Idle(5);
     Stop = false;
 }
 public void Process(Processing process, out IProcessingState timeoutState)
 {
     timeoutState = new Idle(5);
 }