Changeset 9947 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/BestSolutionAnalyzer.cs
- Timestamp:
- 09/11/13 15:21:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/BestSolutionAnalyzer.cs
r9926 r9947 40 40 private const string RobocodePathParamaterName = "RobocodePath"; 41 41 private const string NrOfRoundsParameterName = "NrOfRounds"; 42 private const string EnemiesParameterName = "Enemies"; 42 43 43 44 public bool EnabledByDefault { … … 64 65 get { return (ILookupParameter<IntValue>)Parameters[NrOfRoundsParameterName]; } 65 66 } 67 public ILookupParameter<ICheckedItemList<StringValue>> EnemiesParameter { 68 get { return (ILookupParameter<ICheckedItemList<StringValue>>)Parameters[EnemiesParameterName]; } 69 } 66 70 #endregion 67 71 … … 78 82 Parameters.Add(new LookupParameter<DirectoryValue>(RobocodePathParamaterName, "Path of the Robocode installation.")); 79 83 Parameters.Add(new LookupParameter<IntValue>(NrOfRoundsParameterName, "Nr. of Rounds a Robot has to fight against each opponent.")); 84 Parameters.Add(new LookupParameter<ICheckedItemList<StringValue>>(EnemiesParameterName, "The enemies that should be battled.")); 80 85 } 81 86 … … 97 102 98 103 // create a solution instance 99 var bestSolution = new Solution(bestTree, RobocodePathParameter.ActualValue.Value, NrOfRoundsParameter.ActualValue.Value );104 var bestSolution = new Solution(bestTree, RobocodePathParameter.ActualValue.Value, NrOfRoundsParameter.ActualValue.Value, EnemiesParameter.ActualValue); 100 105 // store the new solution in the best solution parameter 101 106 BestSolutionParameter.ActualValue = bestSolution;
Note: See TracChangeset
for help on using the changeset viewer.