Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/18/13 10:24:33 (11 years ago)
Author:
jkarder
Message:

#2069:

  • fixed deserialization of the RobocodeProblem
  • added a BattleRunnerDialog that allows to configure some arguments of the battle runner
  • added functionality to save a Solution in a java file
File:
1 edited

Legend:

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

    r9971 r9985  
    6969
    7070    [StorableConstructor]
    71     protected RobocodeProblem(bool deserializing)
    72       : base(deserializing) {
    73       if (deserializing) {
    74         RegisterRobocodePathEvent();
    75       }
    76     }
     71    protected RobocodeProblem(bool deserializing) : base(deserializing) { }
    7772    protected RobocodeProblem(RobocodeProblem original, Cloner cloner)
    7873      : base(original, cloner) {
    79       RegisterRobocodePathEvent();
     74      RegisterEventHandlers();
    8075    }
    8176
     
    9792      Maximization.Value = true;
    9893      InitializeOperators();
     94      RegisterEventHandlers();
    9995    }
    10096
     
    10399    }
    104100
     101    [StorableHook(HookType.AfterDeserialization)]
     102    private void AfterDeserialization() {
     103      RegisterEventHandlers();
     104    }
     105
    105106    private void InitializeOperators() {
    106       Operators.AddRange(
    107         ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeOperator>());
     107      Operators.AddRange(ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeOperator>());
    108108      Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer());
    109109      Operators.Add(new SymbolicExpressionSymbolFrequencyAnalyzer());
     
    111111      ParameterizeOperators();
    112112      ParameterizeAnalyzers();
    113       RegisterRobocodePathEvent();
    114113    }
    115114
    116     private void RegisterRobocodePathEvent() {
     115    private void RegisterEventHandlers() {
    117116      RobocodePathParameter.Value.StringValue.ValueChanged += RobocodePathParameter_ValueChanged;
    118117    }
Note: See TracChangeset for help on using the changeset viewer.