Changeset 3501 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 04/22/10 23:56:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/EngineAlgorithm.cs
r3361 r3501 162 162 ExecutionContext context = null; 163 163 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); 169 165 context = new ExecutionContext(context, this, globalScope); 170 foreach (IParameter param in this.Parameters)171 param.ExecutionContext = context;172 166 context = new ExecutionContext(context, operatorGraph.InitialOperator, globalScope); 173 167 } … … 198 192 EventHandler handler = OperatorGraphChanged; 199 193 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();209 194 } 210 195
Note: See TracChangeset
for help on using the changeset viewer.