Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/13/13 15:27:42 (11 years ago)
Author:
ascheibe
Message:

#2069 improved interpreter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/RobocodeEvaluator.cs

    r9880 r9881  
    2020#endregion
    2121
    22 using System.Threading;
    2322using HeuristicLab.Common;
    2423using HeuristicLab.Core;
     
    3736    private const string TankProgramParameterName = "TankProgram";
    3837    private const string RobocodePathParamaterName = "Path";
    39 
    40     //TODO: this should be removed
    41     public static SemaphoreSlim semaphore = new SemaphoreSlim(10);
    4238
    4339    #region Parameters
     
    6561
    6662    public override IOperation Apply() {
    67       semaphore.Wait();
    68 
    6963      ISymbolicExpressionTree tree = TankProgramParameter.ActualValue;
    7064      string path = RobocodePathParameter.ActualValue.Value;
    7165      QualityParameter.ActualValue = new DoubleValue(Interpreter.EvaluateTankProgram(tree, path));
    72 
    73       semaphore.Release();
    7466
    7567      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.