- Timestamp:
- 05/14/11 16:45:46 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram
-
branches/histogram/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r5954 r6195 260 260 public event EventHandler Prepared; 261 261 protected virtual void OnPrepared() { 262 ExecutionState = ExecutionState.Prepared; 262 263 ExecutionTime = TimeSpan.Zero; 263 ExecutionState = ExecutionState.Prepared; 264 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects().OfType<IStatefulItem>()) { 265 statefulObject.InitializeState(); 266 } 264 267 EventHandler handler = Prepared; 265 268 if (handler != null) handler(this, EventArgs.Empty); … … 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.