Changeset 4118 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionProblem.cs
- Timestamp:
- 07/27/10 19:54:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionProblem.cs
r4098 r4118 183 183 184 184 [StorableConstructor] 185 pr ivate SymbolicRegressionProblem(bool deserializing) : base() { }185 protected SymbolicRegressionProblem(bool deserializing) : base(deserializing) { } 186 186 public SymbolicRegressionProblem() 187 187 : base() { … … 213 213 UpdateEstimationLimits(); 214 214 InitializeOperators(); 215 AttachEventHandlers(); 215 RegisterParameterEvents(); 216 RegisterParameterValueEvents(); 216 217 } 217 218 … … 219 220 SymbolicRegressionProblem clone = (SymbolicRegressionProblem)base.Clone(cloner); 220 221 clone.operators = operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 221 clone.AttachEventHandlers(); 222 clone.RegisterParameterEvents(); 223 clone.RegisterParameterValueEvents(); 222 224 return clone; 223 225 } … … 303 305 #region Helpers 304 306 [StorableHook(HookType.AfterDeserialization)] 305 private void AttachEventHandlers() { 306 // Start BackwardsCompatibility3.3 (remove with 3.4) 307 private void AfterDeserializationHook() { 308 // BackwardsCompatibility3.3 309 #region Backwards compatible code (remove with 3.4) 307 310 if (operators == null) InitializeOperators(); 308 // End BackwardsCompatibility3.3311 #endregion 309 312 RegisterParameterEvents(); 310 313 RegisterParameterValueEvents();
Note: See TracChangeset
for help on using the changeset viewer.