Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/13 15:11:53 (11 years ago)
Author:
ascheibe
Message:

#2069

  • renamed path parameter to robocode path
  • made number of rounds configurable
File:
1 edited

Legend:

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

    r9892 r9926  
    3838    private const string BestSolutionParameterName = "Best solution";
    3939    private const string ResultsParameterName = "Results";
    40     private const string RobocodePathParamaterName = "Path";
     40    private const string RobocodePathParamaterName = "RobocodePath";
     41    private const string NrOfRoundsParameterName = "NrOfRounds";
    4142
    4243    public bool EnabledByDefault {
     
    6061      get { return (ILookupParameter<DirectoryValue>)Parameters[RobocodePathParamaterName]; }
    6162    }
     63    public ILookupParameter<IntValue> NrOfRoundsParameter {
     64      get { return (ILookupParameter<IntValue>)Parameters[NrOfRoundsParameterName]; }
     65    }
    6266    #endregion
    6367
     
    7377      Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The result collection of the algorithm."));
    7478      Parameters.Add(new LookupParameter<DirectoryValue>(RobocodePathParamaterName, "Path of the Robocode installation."));
     79      Parameters.Add(new LookupParameter<IntValue>(NrOfRoundsParameterName, "Nr. of Rounds a Robot has to fight against each opponent."));
    7580    }
    7681
     
    9297
    9398      // create a solution instance
    94       var bestSolution = new Solution(bestTree, RobocodePathParameter.ActualValue.Value);
     99      var bestSolution = new Solution(bestTree, RobocodePathParameter.ActualValue.Value, NrOfRoundsParameter.ActualValue.Value);
    95100      // store the new solution in the best solution parameter
    96101      BestSolutionParameter.ActualValue = bestSolution;
Note: See TracChangeset for help on using the changeset viewer.