Changeset 6519
- Timestamp:
- 07/06/11 20:52:53 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Views/3.3/EvaluationCacheView.Designer.cs
r6265 r6519 1 namespace HeuristicLab.Problems.ExternalEvaluation.Views { 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 namespace HeuristicLab.Problems.ExternalEvaluation.Views { 2 23 partial class EvaluationCacheView { 3 24 /// <summary> … … 53 74 // hits_sizeTextBox 54 75 // 55 this.hits_sizeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 76 this.hits_sizeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 56 77 | System.Windows.Forms.AnchorStyles.Right))); 57 78 this.hits_sizeTextBox.Location = new System.Drawing.Point(59, 26); -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Views/3.3/EvaluationCacheView.cs
r6291 r6519 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 23 using System.ComponentModel; 2 24 using System.Windows.Forms; 3 25 using HeuristicLab.Core.Views; 4 26 using HeuristicLab.MainForm; 5 using System.Threading;6 using System.IO;7 using System.ComponentModel;8 27 9 28 namespace HeuristicLab.Problems.ExternalEvaluation.Views { … … 62 81 } 63 82 #endregion 64 83 65 84 private void saveButton_Click(object sender, EventArgs e) { 66 85 if (saveFileDialog.ShowDialog() == DialogResult.OK) { … … 75 94 worker.RunWorkerAsync(saveFileDialog.FileName); 76 95 } 77 } 96 } 78 97 } 79 98 } -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Views/3.3/HeuristicLab.Problems.ExternalEvaluation.Views-3.3.csproj
r6140 r6519 94 94 </PropertyGroup> 95 95 <ItemGroup> 96 <Reference Include="HeuristicLab.Data.Views-3.3"> 97 <HintPath>..\..\HeuristicLab.Data.Views\3.3\bin\x86\Release\HeuristicLab.Data.Views-3.3.dll</HintPath> 98 </Reference> 99 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86" /> 96 100 <Reference Include="System" /> 97 101 <Reference Include="System.Core"> … … 173 177 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project> 174 178 <Name>HeuristicLab.MainForm-3.3</Name> 179 </ProjectReference> 180 <ProjectReference Include="..\..\HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj"> 181 <Project>{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}</Project> 182 <Name>HeuristicLab.Optimization.Views-3.3</Name> 175 183 </ProjectReference> 176 184 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> … … 203 211 </BootstrapperPackage> 204 212 </ItemGroup> 205 <ItemGroup>206 <EmbeddedResource Include="EvaluationCacheView.resx">207 <DependentUpon>EvaluationCacheView.cs</DependentUpon>208 </EmbeddedResource>209 </ItemGroup>210 213 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 211 214 <PropertyGroup> -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/CachedExternalEvaluator.cs
r6189 r6519 20 20 #endregion 21 21 22 23 22 using System.Threading; 24 23 using HeuristicLab.Common; … … 27 26 using HeuristicLab.Parameters; 28 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 30 -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationServiceClient.cs
r6470 r6519 52 52 [StorableConstructor] 53 53 protected EvaluationServiceClient(bool deserializing) : base(deserializing) { } 54 protected EvaluationServiceClient(EvaluationServiceClient original, Cloner cloner) : base(original, cloner) { 54 protected EvaluationServiceClient(EvaluationServiceClient original, Cloner cloner) 55 : base(original, cloner) { 55 56 RegisterEvents(); 56 } 57 } 57 58 public EvaluationServiceClient() 58 59 : base() { … … 83 84 result = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder()); 84 85 success = true; 85 } 86 catch (InvalidOperationException) { 86 } catch (InvalidOperationException) { 87 87 throw; 88 } 89 catch { 88 } catch { 90 89 if (tries >= maxTries) 91 90 throw; … … 104 103 Channel.Send(solution); 105 104 success = true; 106 } 107 catch (InvalidOperationException) { 105 } catch (InvalidOperationException) { 108 106 throw; 109 } 110 catch { 107 } catch { 111 108 if (tries >= maxTries) 112 109 throw; … … 123 120 try { 124 121 Channel.Open(); 125 } 126 catch (Exception e) { 122 } catch (Exception e) { 127 123 throw new InvalidOperationException(Name + ": The channel could not be opened.", e); 128 124 } … … 134 130 try { 135 131 message = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder()); 136 } 137 catch { } 132 } catch { } 138 133 ((Action<QualityMessage>)callback).Invoke(message); 139 134 } -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/EvaluationCache.cs
r6291 r6519 25 25 using System; 26 26 using System.Collections.Generic; 27 using System.Globalization; 28 using System.IO; 27 29 using System.Linq; 30 using System.Text.RegularExpressions; 28 31 using System.Threading; 29 32 using HeuristicLab.Common; … … 33 36 using HeuristicLab.Parameters; 34 37 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 35 using HeuristicLab.Analysis; 36 using System.IO; 37 using System.Globalization; 38 using System.Text.RegularExpressions; 38 39 39 namespace HeuristicLab.Problems.ExternalEvaluation { 40 40 … … 82 82 83 83 private HashSet<string> activeEvaluations = new HashSet<string>(); 84 private object cacheLock = new object(); 84 private object cacheLock = new object(); 85 85 #endregion 86 86 … … 126 126 127 127 #region Persistence 128 [Storable(Name ="Cache")]128 [Storable(Name = "Cache")] 129 129 private IEnumerable<KeyValuePair<string, double>> Cache_Persistence { 130 130 get { … … 194 194 bool lockTaken = false; 195 195 bool waited = false; 196 try { 196 try { 197 197 Monitor.Enter(cacheLock, ref lockTaken); 198 198 while (true) { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluator.cs
r6460 r6519 59 59 #region Fields 60 60 protected HashSet<IEvaluationServiceClient> activeClients = new HashSet<IEvaluationServiceClient>(); 61 protected object clientLock = new object(); 61 protected object clientLock = new object(); 62 62 #endregion 63 63
Note: See TracChangeset
for help on using the changeset viewer.