예제 #1
0
 public bool Remove(BaseJob job)
 {
     return(_predecesorJobs.Remove(job));
 }
예제 #2
0
 public bool Contains(BaseJob job)
 {
     return(_predecesorJobs.Contains(job));
 }
예제 #3
0
 public void Add(BaseJob job)
 {
     _predecesorJobs.Add(job);
 }
 /// <summary>
 /// Each job added must be the predesor of the previous job added.
 /// Except for the first job added which should have not predecesors
 /// </summary>
 /// <param name="job"></param>
 public void AddJob(BaseJob job)
 {
     _toScheduleChain.Insert(0, job);
     endIndex = 1;
 }