Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/21/13 16:24:41 (11 years ago)
Author:
ascheibe
Message:

#2069 use directory values instead of string values for the robocode path

File:
1 edited

Legend:

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

    r9880 r9892  
    5555      get { return (IValueParameter<Grammar>)Parameters[TankGrammarParameterName]; }
    5656    }
    57     public IFixedValueParameter<StringValue> RobocodePathParameter {
    58       get { return (IFixedValueParameter<StringValue>)Parameters[RobocodePathParamaterName]; }
     57    public IFixedValueParameter<DirectoryValue> RobocodePathParameter {
     58      get { return (IFixedValueParameter<DirectoryValue>)Parameters[RobocodePathParamaterName]; }
    5959    }
    6060    #endregion
     
    7070    public RobocodeProblem()
    7171      : base(new RobocodeEvaluator(), new RampedHalfAndHalfTreeCreator()) {
     72      DirectoryValue robocodeDir = new DirectoryValue();
     73      robocodeDir.Value = @"C:\robocode";
     74
    7275      Parameters.Add(new FixedValueParameter<IntValue>(MaxTankProgramDepthParameterName, "Maximal depth of the Robocode tank program.", new IntValue(6)));
    7376      Parameters.Add(new FixedValueParameter<IntValue>(MaxTankProgramLengthParameterName, "Maximal length of the tank program.", new IntValue(1000)));
    7477      Parameters.Add(new ValueParameter<Grammar>(TankGrammarParameterName, "Grammar for the tank program.", new Grammar()));
    75       Parameters.Add(new FixedValueParameter<StringValue>(RobocodePathParamaterName, "Path of the Robocode installation.", new StringValue("C:/robocode")));
     78      Parameters.Add(new FixedValueParameter<DirectoryValue>(RobocodePathParamaterName, "Path of the Robocode installation.", robocodeDir));
    7679
    7780      Maximization.Value = true;
Note: See TracChangeset for help on using the changeset viewer.