Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/10 23:56:52 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/EngineAlgorithm.cs

    r3361 r3501  
    162162        ExecutionContext context = null;
    163163        if (operatorGraph.InitialOperator != null) {
    164           if (Problem != null) {
    165             context = new ExecutionContext(context, Problem, globalScope);
    166             foreach (IParameter param in Problem.Parameters)
    167               param.ExecutionContext = context;
    168           }
     164          if (Problem != null) context = new ExecutionContext(context, Problem, globalScope);
    169165          context = new ExecutionContext(context, this, globalScope);
    170           foreach (IParameter param in this.Parameters)
    171             param.ExecutionContext = context;
    172166          context = new ExecutionContext(context, operatorGraph.InitialOperator, globalScope);
    173167        }
     
    198192      EventHandler handler = OperatorGraphChanged;
    199193      if (handler != null) handler(this, EventArgs.Empty);
    200     }
    201     protected override void OnStopped() {
    202       if (Problem != null) {
    203         foreach (IParameter param in Problem.Parameters)
    204           param.ExecutionContext = null;
    205       }
    206       foreach (IParameter param in Parameters)
    207         param.ExecutionContext = null;
    208       base.OnStopped();
    209194    }
    210195
Note: See TracChangeset for help on using the changeset viewer.