- Timestamp:
- 07/23/17 11:17:18 (7 years ago)
- Location:
- branches/Async
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Async/HeuristicLab.Optimization
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r15232 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 298 298 public event EventHandler Stopped; 299 299 protected virtual void OnStopped() { 300 foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<object>() { Runs }).OfType<IStatefulItem>()) { 301 statefulObject.ClearState(); 302 } 303 runsCounter++; 304 runs.Add(new Run(string.Format("{0} Run {1}", Name, runsCounter), this)); 305 ExecutionState = ExecutionState.Stopped; 306 EventHandler handler = Stopped; 307 if (handler != null) handler(this, EventArgs.Empty); 300 try { 301 foreach ( 302 IStatefulItem statefulObject in 303 this.GetObjectGraphObjects(new HashSet<object>() {Runs}).OfType<IStatefulItem>()) { 304 statefulObject.ClearState(); 305 } 306 runsCounter++; 307 try { 308 runs.Add(new Run(string.Format("{0} Run {1}", Name, runsCounter), this)); 309 } 310 catch (ArgumentException e) { 311 OnExceptionOccurred(new InvalidOperationException("Run creation failed.", e)); 312 } 313 } 314 finally { 315 ExecutionState = ExecutionState.Stopped; 316 EventHandler handler = Stopped; 317 if (handler != null) handler(this, EventArgs.Empty); 318 } 308 319 } 309 320 public event EventHandler<EventArgs<Exception>> ExceptionOccurred;
Note: See TracChangeset
for help on using the changeset viewer.