Changeset 7467 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 02/14/12 09:19:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r7259 r7467 265 265 ExecutionState = ExecutionState.Prepared; 266 266 ExecutionTime = TimeSpan.Zero; 267 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects( ).OfType<IStatefulItem>()) {267 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) { 268 268 statefulObject.InitializeState(); 269 269 } … … 286 286 protected virtual void OnStopped() { 287 287 ExecutionState = ExecutionState.Stopped; 288 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects( ).OfType<IStatefulItem>()) {288 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) { 289 289 statefulObject.ClearState(); 290 290 }
Note: See TracChangeset
for help on using the changeset viewer.