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/RobocodeProblem.cs

    r9892 r9926  
    4242    private const string MaxTankProgramDepthParameterName = "MaxProgramDepth";
    4343    private const string TankGrammarParameterName = "Grammar";
    44     private const string RobocodePathParamaterName = "Path";
     44    private const string RobocodePathParamaterName = "RobocodePath";
     45    private const string NrOfRoundsParameterName = "NrOfRounds";
    4546    #endregion
    4647
     
    5758    public IFixedValueParameter<DirectoryValue> RobocodePathParameter {
    5859      get { return (IFixedValueParameter<DirectoryValue>)Parameters[RobocodePathParamaterName]; }
     60    }
     61    public IFixedValueParameter<IntValue> NrOfRoundsParameter {
     62      get { return (IFixedValueParameter<IntValue>)Parameters[NrOfRoundsParameterName]; }
    5963    }
    6064    #endregion
     
    7781      Parameters.Add(new ValueParameter<Grammar>(TankGrammarParameterName, "Grammar for the tank program.", new Grammar()));
    7882      Parameters.Add(new FixedValueParameter<DirectoryValue>(RobocodePathParamaterName, "Path of the Robocode installation.", robocodeDir));
     83      Parameters.Add(new FixedValueParameter<IntValue>(NrOfRoundsParameterName, "Nr. of Rounds a Robot has to fight against each opponent.", new IntValue(3)));
    7984
    8085      Maximization.Value = true;
Note: See TracChangeset for help on using the changeset viewer.