- Timestamp:
- 08/06/18 18:15:29 (6 years ago)
- Location:
- branches/2839_HiveProjectManagement
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement
- Property svn:mergeinfo changed
-
branches/2839_HiveProjectManagement/HeuristicLab.Optimization
- Property svn:mergeinfo changed
-
branches/2839_HiveProjectManagement/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r15287 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization/3.3/Algorithms/BasicAlgorithm.cs
r15367 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Linq;24 23 using System.Threading; 25 24 using HeuristicLab.Common; … … 80 79 try { 81 80 Run((object)cancellationTokenSource.Token); 82 } 83 catch (OperationCanceledException) { 84 } 85 catch (AggregateException ae) { 81 } catch (OperationCanceledException) { 82 } catch (AggregateException ae) { 86 83 ae.FlattenAndHandle(new[] { typeof(OperationCanceledException) }, e => OnExceptionOccurred(e)); 87 } 88 catch (Exception e) { 84 } catch (Exception e) { 89 85 OnExceptionOccurred(e); 90 86 } … … 104 100 base.Pause(); 105 101 pausePending = true; 106 CancellationTokenSource.Cancel();102 if (CancellationTokenSource != null) CancellationTokenSource.Cancel(); 107 103 } 108 104 … … 112 108 base.Stop(); 113 109 if (ExecutionState == ExecutionState.Paused) OnStopped(); 114 else CancellationTokenSource.Cancel();110 else if (CancellationTokenSource != null) CancellationTokenSource.Cancel(); 115 111 } 116 112 … … 127 123 initialized = true; 128 124 Run(cancellationToken); 129 } 130 finally { 125 } finally { 131 126 timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed); 132 127 timer.Stop(); -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization/3.3/Algorithms/EngineAlgorithm.cs
r15287 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization/3.3/Algorithms/HeuristicOptimizationAlgorithm.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization/3.3/Algorithms/HeuristicOptimizationEngineAlgorithm.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization/3.3/Algorithms/UserDefinedAlgorithm.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.