Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/22/10 04:15:53 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on algorithms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SequentialEngine/3.3/SequentialEngine.cs

    r2834 r2851  
    3636
    3737    /// <summary>
    38     /// Aborts the engine execution.
    39     /// </summary>
    40     /// <remarks>Calls <see cref="EngineBase.Abort"/> of base class <see cref="EngineBase"/> and
    41     /// <see cref="IOperator.Abort"/> of the current <see cref="IOperator"/>.</remarks>
    42     public override void Stop() {
    43       base.Stop();
    44       if (currentOperator != null)
    45         currentOperator.Abort();
    46     }
    47 
    48     /// <summary>
    4938    /// Deals with the next operation, if it is an <see cref="AtomicOperation"/> it is executed,
    5039    /// if it is a <see cref="CompositeOperation"/> its single operations are pushed on the execution stack.
     
    7968      }
    8069    }
     70
     71    protected override void OnCanceledChanged() {
     72      if (Canceled && (currentOperator != null))
     73        currentOperator.Abort();
     74    }
    8175  }
    8276}
Note: See TracChangeset for help on using the changeset viewer.