Changeset 8155
- Timestamp:
- 06/28/12 17:39:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r7706 r8155 272 272 public event EventHandler Prepared; 273 273 protected virtual void OnPrepared() { 274 ExecutionState = ExecutionState.Prepared;275 274 ExecutionTime = TimeSpan.Zero; 276 275 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) { 277 276 statefulObject.InitializeState(); 278 277 } 278 ExecutionState = ExecutionState.Prepared; 279 279 EventHandler handler = Prepared; 280 280 if (handler != null) handler(this, EventArgs.Empty); … … 294 294 public event EventHandler Stopped; 295 295 protected virtual void OnStopped() { 296 ExecutionState = ExecutionState.Stopped;297 296 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) { 298 297 statefulObject.ClearState(); … … 300 299 runsCounter++; 301 300 runs.Add(new Run(string.Format("{0} Run {1}", Name, runsCounter), this)); 301 ExecutionState = ExecutionState.Stopped; 302 302 EventHandler handler = Stopped; 303 303 if (handler != null) handler(this, EventArgs.Empty);
Note: See TracChangeset
for help on using the changeset viewer.