Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 16:46:35 (12 years ago)
Author:
gkronber
Message:

#1847: merged r8084:8205 from trunk into GP move operators branch

Location:
branches/GP-MoveOperators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs

    r7706 r8206  
    272272    public event EventHandler Prepared;
    273273    protected virtual void OnPrepared() {
    274       ExecutionState = ExecutionState.Prepared;
    275274      ExecutionTime = TimeSpan.Zero;
    276275      foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {
    277276        statefulObject.InitializeState();
    278277      }
     278      ExecutionState = ExecutionState.Prepared;
    279279      EventHandler handler = Prepared;
    280280      if (handler != null) handler(this, EventArgs.Empty);
     
    294294    public event EventHandler Stopped;
    295295    protected virtual void OnStopped() {
    296       ExecutionState = ExecutionState.Stopped;
    297296      foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {
    298297        statefulObject.ClearState();
     
    300299      runsCounter++;
    301300      runs.Add(new Run(string.Format("{0} Run {1}", Name, runsCounter), this));
     301      ExecutionState = ExecutionState.Stopped;
    302302      EventHandler handler = Stopped;
    303303      if (handler != null) handler(this, EventArgs.Empty);
Note: See TracChangeset for help on using the changeset viewer.