- Timestamp:
- 07/25/10 01:04:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.FeatureSelection/3.3/FeatureSelectionProblem.cs
r4082 r4098 81 81 get { return EvaluatorParameter.Value; } 82 82 } 83 private List<IOperator> operators;84 83 public override IEnumerable<IOperator> Operators { 85 84 get { return operators; } … … 87 86 #endregion 88 87 88 [Storable] 89 private List<IOperator> operators; 90 91 [StorableConstructor] 92 private FeatureSelectionProblem(bool deserializing) : base() { } 89 93 public FeatureSelectionProblem() 90 94 : base() { … … 101 105 ParameterizeEvaluator(); 102 106 103 Initialize(); 104 } 105 106 [StorableConstructor] 107 private FeatureSelectionProblem(bool deserializing) : base() { } 107 InitializeOperators(); 108 AttachEventHandlers(); 109 } 108 110 109 111 [StorableHook(HookType.AfterDeserialization)] … … 115 117 public override IDeepCloneable Clone(Cloner cloner) { 116 118 FeatureSelectionProblem clone = (FeatureSelectionProblem)base.Clone(cloner); 117 clone.Initialize(); 119 clone.operators = operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 120 clone.AttachEventHandlers(); 118 121 return clone; 119 122 } … … 165 168 166 169 #region Helpers 167 private void Initialize() { 168 InitializeOperators(); 170 private void AttachEventHandlers() { 171 // Start BackwardsCompatibility3.3 (remove with 3.4) 172 if (operators == null) InitializeOperators(); 173 // End BackwardsCompatibility3.3 169 174 RegisterParameterEvents(); 170 175 RegisterParameterValueEvents();
Note: See TracChangeset
for help on using the changeset viewer.