Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/13/13 12:11:18 (11 years ago)
Author:
ascheibe
Message:

#2069 removed dead code

File:
1 edited

Legend:

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

    r9879 r9880  
    4343    private const string TankGrammarParameterName = "Grammar";
    4444    private const string RobocodePathParamaterName = "Path";
    45     private const string CoevolutionParameterName = "Coevolution";
    4645    #endregion
    4746
    4847    #region Parameters
    4948    public IFixedValueParameter<IntValue> MaxTankProgramLengthParameter {
    50       get {
    51         return (IFixedValueParameter<IntValue>)
    52           Parameters[MaxTankProgramLengthParameterName];
    53       }
     49      get { return (IFixedValueParameter<IntValue>)Parameters[MaxTankProgramLengthParameterName]; }
    5450    }
    5551    public IFixedValueParameter<IntValue> MaxTankProgramDepthParameter {
    56       get {
    57         return (IFixedValueParameter<IntValue>)
    58           Parameters[MaxTankProgramDepthParameterName];
    59       }
     52      get { return (IFixedValueParameter<IntValue>)Parameters[MaxTankProgramDepthParameterName]; }
    6053    }
    6154    public IValueParameter<Grammar> GrammarParameter {
    62       get {
    63         return (IValueParameter<Grammar>)
    64           Parameters[TankGrammarParameterName];
    65       }
     55      get { return (IValueParameter<Grammar>)Parameters[TankGrammarParameterName]; }
    6656    }
    6757    public IFixedValueParameter<StringValue> RobocodePathParameter {
    68       get {
    69         return (IFixedValueParameter<StringValue>)
    70             Parameters[RobocodePathParamaterName];
    71       }
    72     }
    73     public IFixedValueParameter<BoolValue> CoevolutionParameter {
    74       get {
    75         return (IFixedValueParameter<BoolValue>)
    76             Parameters[CoevolutionParameterName];
    77       }
     58      get { return (IFixedValueParameter<StringValue>)Parameters[RobocodePathParamaterName]; }
    7859    }
    7960    #endregion
     
    8768    }
    8869
    89     // default constructor for the problem
    90     // also creates the fitness evaluation operator (Evaluator),
    91     // and the tree creation operator (RampedHalfAndHalfTreeCreator)
    9270    public RobocodeProblem()
    9371      : base(new RobocodeEvaluator(), new RampedHalfAndHalfTreeCreator()) {
    94       Parameters.Add(
    95          new FixedValueParameter<IntValue>(MaxTankProgramDepthParameterName,
    96            "Maximal depth of the Robocode tank program.",
    97            new IntValue(6)));
    98       Parameters.Add(new FixedValueParameter<IntValue>(MaxTankProgramLengthParameterName,
    99           "Maximal length of the tank program.", new IntValue(1000)));
    100       Parameters.Add(
    101         new ValueParameter<Grammar>(TankGrammarParameterName,
    102           "Grammar for the tank program.",
    103           new Grammar()));
    104       Parameters.Add(new FixedValueParameter<StringValue>(RobocodePathParamaterName,
    105           "Path of the Robocode installation.",
    106           new StringValue("F:/robocode2")));
    107       Parameters.Add(new FixedValueParameter<BoolValue>(CoevolutionParameterName,
    108           "Use Coevolution", new BoolValue(false)));
     72      Parameters.Add(new FixedValueParameter<IntValue>(MaxTankProgramDepthParameterName, "Maximal depth of the Robocode tank program.", new IntValue(6)));
     73      Parameters.Add(new FixedValueParameter<IntValue>(MaxTankProgramLengthParameterName, "Maximal length of the tank program.", new IntValue(1000)));
     74      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")));
    10976
    11077      Maximization.Value = true;
Note: See TracChangeset for help on using the changeset viewer.