Changeset 8331 for branches/ScatterSearch (trunk integration)/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
- Timestamp:
- 07/26/12 09:51:13 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r7706 r8331 272 272 public event EventHandler Prepared; 273 273 protected virtual void OnPrepared() { 274 ExecutionTime = TimeSpan.Zero; 275 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<object>() { Runs }).OfType<IStatefulItem>()) { 276 statefulObject.InitializeState(); 277 } 274 278 ExecutionState = ExecutionState.Prepared; 275 ExecutionTime = TimeSpan.Zero;276 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {277 statefulObject.InitializeState();278 }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 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) { 296 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<object>() { Runs }).OfType<IStatefulItem>()) { 298 297 statefulObject.ClearState(); 299 298 } 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.