Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/11 20:52:53 (13 years ago)
Author:
abeham
Message:

#1516

  • fixed code formatting
  • added some license headers
  • removed unnecessary resx file
Location:
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/CachedExternalEvaluator.cs

    r6189 r6519  
    2020#endregion
    2121
    22 
    2322using System.Threading;
    2423using HeuristicLab.Common;
     
    2726using HeuristicLab.Parameters;
    2827using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28
    2929namespace HeuristicLab.Problems.ExternalEvaluation {
    3030
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationServiceClient.cs

    r6470 r6519  
    5252    [StorableConstructor]
    5353    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) {
    5556      RegisterEvents();
    56     }   
     57    }
    5758    public EvaluationServiceClient()
    5859      : base() {
     
    8384          result = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder());
    8485          success = true;
    85         }
    86         catch (InvalidOperationException) {
     86        } catch (InvalidOperationException) {
    8787          throw;
    88         }
    89         catch {
     88        } catch {
    9089          if (tries >= maxTries)
    9190            throw;
     
    104103          Channel.Send(solution);
    105104          success = true;
    106         }
    107         catch (InvalidOperationException) {
     105        } catch (InvalidOperationException) {
    108106          throw;
    109         }
    110         catch {
     107        } catch {
    111108          if (tries >= maxTries)
    112109            throw;
     
    123120        try {
    124121          Channel.Open();
    125         }
    126         catch (Exception e) {
     122        } catch (Exception e) {
    127123          throw new InvalidOperationException(Name + ": The channel could not be opened.", e);
    128124        }
     
    134130      try {
    135131        message = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder());
    136       }
    137       catch { }
     132      } catch { }
    138133      ((Action<QualityMessage>)callback).Invoke(message);
    139134    }
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/EvaluationCache.cs

    r6291 r6519  
    2525using System;
    2626using System.Collections.Generic;
     27using System.Globalization;
     28using System.IO;
    2729using System.Linq;
     30using System.Text.RegularExpressions;
    2831using System.Threading;
    2932using HeuristicLab.Common;
     
    3336using HeuristicLab.Parameters;
    3437using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    35 using HeuristicLab.Analysis;
    36 using System.IO;
    37 using System.Globalization;
    38 using System.Text.RegularExpressions;
     38
    3939namespace HeuristicLab.Problems.ExternalEvaluation {
    4040
     
    8282
    8383    private HashSet<string> activeEvaluations = new HashSet<string>();
    84     private object cacheLock = new object();   
     84    private object cacheLock = new object();
    8585    #endregion
    8686
     
    126126
    127127    #region Persistence
    128     [Storable(Name="Cache")]
     128    [Storable(Name = "Cache")]
    129129    private IEnumerable<KeyValuePair<string, double>> Cache_Persistence {
    130130      get {
     
    194194      bool lockTaken = false;
    195195      bool waited = false;
    196       try {       
     196      try {
    197197        Monitor.Enter(cacheLock, ref lockTaken);
    198198        while (true) {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluator.cs

    r6460 r6519  
    5959    #region Fields
    6060    protected HashSet<IEvaluationServiceClient> activeClients = new HashSet<IEvaluationServiceClient>();
    61     protected object clientLock = new object();   
     61    protected object clientLock = new object();
    6262    #endregion
    6363
Note: See TracChangeset for help on using the changeset viewer.