- Timestamp:
- 06/16/11 00:06:54 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Jobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Jobs/EngineJob.cs
r6200 r6419 1 1 using System; 2 using System.Collections.Generic;3 2 using System.Drawing; 4 3 using HeuristicLab.Common; 5 4 using HeuristicLab.Core; 6 using HeuristicLab.Hive;7 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 8 6 … … 65 63 public override void Stop() { 66 64 Item.Stop(); 67 }68 69 public override void Resume(IEnumerable<IJob> childJobs) {70 throw new NotImplementedException();71 65 } 72 66 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Jobs/ItemJob.cs
r6381 r6419 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using System.Drawing; 25 24 using HeuristicLab.Common; … … 113 112 public abstract void Stop(); 114 113 115 public abstract void Resume(IEnumerable<IJob> childJobs);116 117 114 public event EventHandler JobStarted; 118 115 protected virtual void OnJobStarted() { … … 139 136 } 140 137 141 public event EventHandler<EventArgs<IJob>> NewChildJob;142 protected virtual void OnNewChildJob(IJob job) {143 EventHandler<EventArgs<IJob>> handler = NewChildJob;144 if (handler != null) handler(this, new EventArgs<IJob>(job));145 }146 147 public event EventHandler WaitForChildJobs;148 protected virtual void OnWaitForChildJobs() {149 EventHandler handler = WaitForChildJobs;150 if (handler != null) handler(this, EventArgs.Empty);151 }152 153 public event EventHandler DeleteChildJobs;154 protected virtual void OnDeleteChildJobs() {155 EventHandler handler = DeleteChildJobs;156 if (handler != null) handler(this, EventArgs.Empty);157 }158 159 138 public event EventHandler ComputeInParallelChanged; 160 139 protected virtual void OnComputeInParallelChanged() { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Jobs/OptimizerJob.cs
r6381 r6419 113 113 public override void Stop() { 114 114 Item.Stop(); 115 }116 117 public override void Resume(IEnumerable<IJob> childJobs) {118 OnJobStopped();119 115 } 120 116 #endregion
Note: See TracChangeset
for help on using the changeset viewer.