Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/10 05:22:47 (14 years ago)
Author:
swagner
Message:

Continued work on algorithm batch processing (#947).

File:
1 edited

Legend:

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

    r3226 r3262  
    5656          currentOperator = operation.Operator;
    5757          ExecutionStack.Push(operation.Operator.Execute((IExecutionContext)operation));
    58           currentOperator = null;
    5958        }
    6059        catch (Exception ex) {
    6160          ExecutionStack.Push(operation);
    6261          OnExceptionOccurred(ex);
    63           Stop();
     62          Pause();
    6463        }
    6564        if (operation.Operator.Breakpoint)
    66           Stop();
     65          Pause();
    6766      }
    6867    }
    6968
    70     protected override void OnCanceledChanged() {
    71       if (Canceled && (currentOperator != null))
    72         currentOperator.Abort();
     69    public override void Pause() {
     70      base.Pause();
     71      if (currentOperator != null) currentOperator.Abort();
     72    }
     73    public override void Stop() {
     74      base.Stop();
     75      if (currentOperator != null) currentOperator.Abort();
    7376    }
    7477  }
Note: See TracChangeset for help on using the changeset viewer.