Changeset 6103 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 05/03/11 11:04:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r5954 r6103 261 261 protected virtual void OnPrepared() { 262 262 ExecutionTime = TimeSpan.Zero; 263 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects().OfType<IStatefulItem>()) { 264 statefulObject.InitializeState(); 265 } 263 266 ExecutionState = ExecutionState.Prepared; 264 267 EventHandler handler = Prepared; … … 280 283 protected virtual void OnStopped() { 281 284 ExecutionState = ExecutionState.Stopped; 285 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects().OfType<IStatefulItem>()) { 286 statefulObject.ClearState(); 287 } 282 288 runsCounter++; 283 289 runs.Add(new Run(string.Format("{0} Run {1}", Name, runsCounter), this));
Note: See TracChangeset
for help on using the changeset viewer.