예제 #1
0
 public ExecutorClass(RequestedRecipeClass RequestedRecipe)
 {
     this.ExecutorID      = NextID;
     this.RequestedRecipe = RequestedRecipe;
     this.Status          = ExecutorStatus.Waiting;
     this.Description     = String.Empty;
     this.Battery         = null;
     this.TesterChannel   = null;
     this.Chamber         = null;
     //this.StartTime = null;
     //this.EndTime = DateTime.;
 }
예제 #2
0
 public RequestedSubProgramClass(RequestedProgramClass RequestedProgram, SubProgramClass sp, Int32 Priority)
 {
     this.RequestedProgram = RequestedProgram;
     this.SubProgram       = sp;
     this.Priority         = Priority; //Inherited from requested program
     //RequestedRecipes = new List<RequestedRecipeClass>();
     foreach (var rec in sp.Recipes)
     {
         RequestedRecipeClass RequestedRecipe = new RequestedRecipeClass(this, rec);
         //RequestedRecipe.ValidExecutor.StatusChanged += new EventHandler(Executor_StatusChanged);  //Scheduler subscribe this event instead of request
         RequestedRecipes.Add(RequestedRecipe);
     }
 }