Changeset 4681 for branches/CloningRefactoring/HeuristicLab.Problems.OneMax/3.3/Analyzers/BestOneMaxSolutionAnalyzer.cs
- Timestamp:
- 10/29/10 19:40:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Problems.OneMax/3.3/Analyzers/BestOneMaxSolutionAnalyzer.cs
r4068 r4681 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.Common; 30 31 31 32 namespace HeuristicLab.Problems.OneMax { … … 35 36 [Item("BestOneMaxSolutionAnalyzer", "An operator for analyzing the best solution for a OneMax problem.")] 36 37 [StorableClass] 37 class BestOneMaxSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer {38 public class BestOneMaxSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer { 38 39 public LookupParameter<BoolValue> MaximizationParameter { 39 40 get { return (LookupParameter<BoolValue>)Parameters["Maximization"]; } … … 55 56 } 56 57 58 [StorableConstructor] 59 protected BestOneMaxSolutionAnalyzer(bool deserializing) : base(deserializing) { } 60 protected BestOneMaxSolutionAnalyzer(BestOneMaxSolutionAnalyzer original, Cloner cloner) : base(original, cloner) { } 57 61 public BestOneMaxSolutionAnalyzer() 58 62 : base() { … … 63 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the Onemax solution should be stored.")); 64 68 Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution.")); 69 } 70 71 public override IDeepCloneable Clone(Cloner cloner) { 72 return new BestOneMaxSolutionAnalyzer(this, cloner); 65 73 } 66 74
Note: See TracChangeset
for help on using the changeset viewer.