Changeset 11924
- Timestamp:
- 02/05/15 18:57:26 (10 years ago)
- Location:
- stable
- Files:
-
- 4 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11790,11815,11878
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Optimization merged: 11790,11815,11878
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r11920 r11924 130 130 <DependentUpon>AlgorithmView.cs</DependentUpon> 131 131 </Compile> 132 <Compile Include="BasicAlgorithmView.cs"> 133 <SubType>UserControl</SubType> 134 </Compile> 135 <Compile Include="BasicAlgorithmView.Designer.cs"> 136 <DependentUpon>BasicAlgorithmView.cs</DependentUpon> 137 </Compile> 132 138 <Compile Include="BatchRunView.cs"> 133 139 <SubType>UserControl</SubType> -
stable/HeuristicLab.Optimization/3.3/Algorithms/BasicAlgorithm.cs
r11790 r11924 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 70 70 try { 71 71 t.Wait(); 72 } 73 catch (AggregateException ex) { 72 } catch (AggregateException ex) { 74 73 try { 75 74 ex.Flatten().Handle(x => x is OperationCanceledException); 76 } 77 catch (AggregateException remaining) { 75 } catch (AggregateException remaining) { 78 76 if (remaining.InnerExceptions.Count == 1) OnExceptionOccurred(remaining.InnerExceptions[0]); 79 77 else OnExceptionOccurred(remaining); … … 87 85 88 86 public override void Pause() { 89 throw new NotSupportedException("Pause is not supported in simple Algorithms.");87 throw new NotSupportedException("Pause is not supported in basic algorithms."); 90 88 } 91 89 92 90 public override void Stop() { 93 //CancellationToken.ThrowIfCancellationRequested() must be called from within the Run method, otherwise stop does nothing 91 // CancellationToken.ThrowIfCancellationRequested() must be called from within the Run method, otherwise stop does nothing 92 // alternatively check the IsCancellationRequested property of the cancellation token 94 93 base.Stop(); 95 94 CancellationTokenSource.Cancel(); … … 107 106 try { 108 107 Run(cancellationToken); 109 } 110 finally { 108 } finally { 111 109 timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed); 112 110 timer.Stop(); -
stable/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj
r11920 r11924 120 120 </ItemGroup> 121 121 <ItemGroup> 122 <Compile Include="Algorithms\BasicAlgorithm.cs" /> 122 123 <Compile Include="Interfaces\ILocalImprovementAlgorithmOperator.cs" /> 123 124 <Compile Include="Interfaces\ISingleObjectivePathRelinker.cs" />
Note: See TracChangeset
for help on using the changeset viewer.