Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/11 16:38:28 (13 years ago)
Author:
ascheibe
Message:

#1233 more renaming for more consistency

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  
    77namespace HeuristicLab.Clients.Hive {
    88  [StorableClass]
    9   public class EngineJob : ItemJob {
     9  public class EngineTask : ItemTask {
    1010    [Storable]
    1111    protected IOperation initialOperation;
     
    2929
    3030    #region constructors and cloning
    31     public EngineJob() { }
    32     public EngineJob(IOperation initialOperation, IEngine engine) {
     31    public EngineTask() { }
     32    public EngineTask(IOperation initialOperation, IEngine engine) {
    3333      this.initialOperation = initialOperation;
    3434      this.Item = engine;
     
    3636
    3737    [StorableConstructor]
    38     protected EngineJob(bool deserializing) : base(deserializing) { }
    39     protected EngineJob(EngineJob original, Cloner cloner)
     38    protected EngineTask(bool deserializing) : base(deserializing) { }
     39    protected EngineTask(EngineTask original, Cloner cloner)
    4040      : base(original, cloner) {
    4141      this.initialOperation = cloner.Clone(original.initialOperation);
    4242    }
    4343    public override IDeepCloneable Clone(Cloner cloner) {
    44       return new EngineJob(this, cloner);
     44      return new EngineTask(this, cloner);
    4545    }
    4646    #endregion
     
    5656      Item.Start();
    5757    }
    58    
     58
    5959    public override void Pause() {
    6060      Item.Pause();
     
    8686
    8787    private void engine_ExceptionOccurred(object sender, EventArgs<Exception> e) {
    88       OnJobFailed(e);
     88      OnTaskFailed(e);
    8989    }
    9090
    9191    private void engine_Stopped(object sender, EventArgs e) {
    92       OnJobStopped();
     92      OnTaskStopped();
    9393    }
    9494
    9595    private void Item_Paused(object sender, EventArgs e) {
    96       OnJobPaused();
     96      OnTaskPaused();
    9797    }
    9898
     
    106106
    107107    private void Item_Started(object sender, EventArgs e) {
    108       OnJobStarted();
     108      OnTaskStarted();
    109109    }
    110110
     
    134134      get { return HeuristicLab.Common.Resources.VSImageLibrary.Operator; }
    135135    }
    136    
     136
    137137    public override string ItemName {
    138       get { return "EngineJob"; }
     138      get { return "EngineTask"; }
    139139    }
    140140
Note: See TracChangeset for help on using the changeset viewer.