Changeset 6725 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs
- Timestamp:
- 09/08/11 16:38:28 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.3/Tasks
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs
r6717 r6725 7 7 namespace HeuristicLab.Clients.Hive { 8 8 [StorableClass] 9 public class Engine Job : ItemJob{9 public class EngineTask : ItemTask { 10 10 [Storable] 11 11 protected IOperation initialOperation; … … 29 29 30 30 #region constructors and cloning 31 public Engine Job() { }32 public Engine Job(IOperation initialOperation, IEngine engine) {31 public EngineTask() { } 32 public EngineTask(IOperation initialOperation, IEngine engine) { 33 33 this.initialOperation = initialOperation; 34 34 this.Item = engine; … … 36 36 37 37 [StorableConstructor] 38 protected Engine Job(bool deserializing) : base(deserializing) { }39 protected Engine Job(EngineJoboriginal, Cloner cloner)38 protected EngineTask(bool deserializing) : base(deserializing) { } 39 protected EngineTask(EngineTask original, Cloner cloner) 40 40 : base(original, cloner) { 41 41 this.initialOperation = cloner.Clone(original.initialOperation); 42 42 } 43 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new Engine Job(this, cloner);44 return new EngineTask(this, cloner); 45 45 } 46 46 #endregion … … 56 56 Item.Start(); 57 57 } 58 58 59 59 public override void Pause() { 60 60 Item.Pause(); … … 86 86 87 87 private void engine_ExceptionOccurred(object sender, EventArgs<Exception> e) { 88 On JobFailed(e);88 OnTaskFailed(e); 89 89 } 90 90 91 91 private void engine_Stopped(object sender, EventArgs e) { 92 On JobStopped();92 OnTaskStopped(); 93 93 } 94 94 95 95 private void Item_Paused(object sender, EventArgs e) { 96 On JobPaused();96 OnTaskPaused(); 97 97 } 98 98 … … 106 106 107 107 private void Item_Started(object sender, EventArgs e) { 108 On JobStarted();108 OnTaskStarted(); 109 109 } 110 110 … … 134 134 get { return HeuristicLab.Common.Resources.VSImageLibrary.Operator; } 135 135 } 136 136 137 137 public override string ItemName { 138 get { return "Engine Job"; }138 get { return "EngineTask"; } 139 139 } 140 140
Note: See TracChangeset
for help on using the changeset viewer.